sirhc
Members-
Posts
18 -
Joined
-
Last visited
Everything posted by sirhc
-
two processwire installation, in other subdirectories
sirhc replied to sirhc's topic in General Support
Ok, i got it working by just moving the main installation to the root. Then te htaccess condition in my first post works. -
two processwire installation, in other subdirectories
sirhc replied to sirhc's topic in General Support
Thanks for all your advice! But I do hope that someone is able to help me with my initial question ? -
two processwire installation, in other subdirectories
sirhc replied to sirhc's topic in General Support
@virtualgadjo the main website will be a React application, without an actual CMS, and will be managed by other people than the blog. -
two processwire installation, in other subdirectories
sirhc replied to sirhc's topic in General Support
Thanks for your answer @virtualgadjo. The reason for this is that in the near future the main website is getting another cms, but the blog wont be migrated -
two processwire installation, in other subdirectories
sirhc replied to sirhc's topic in General Support
Yes, that is easier haha, i have this currently setup. But i want to have the SEO benefits of having it on the same domain. -
Hi there, I have this problem where i have two subdirectories in my webroot, with two installs of processwire. /main/ is serving the main site and lives on www.example.com /blog/ is a fresh install and needs to be in control over whatever happens on www.example.com/blog/ I tried this rule in my htaccess file in the /main/ folder RewriteCond %{REQUEST_URI} !^/blog/ But i get the regular 404 page of the main installation. I hope someone can help me with this, to redirect te /blog/ page to the blog processwire installation.
-
@adrian ah that's fantastic! Thanks for your fast reply!
-
Hi @adrian, great module! I am wondering if there is an option to include the system fields into the export, or help me with some code that I can add to the module to do this? If this is not possible, some help getting me to include the page id into the export is also great. Hope anyone can help! Thanks.
-
Hi @ryan, Figured this is a better place to post this question; Im using your facebook login module, works as a charm. But, when I have a link provided on my facebook account, and try to login within the facebook web-view (clicking link on the facebook page on mobile). Im getting a 'Invalid request (no Facebook state)' error. Any idea how to solve this? Thanks in advance.
-
Hi all, Im looking for a selector that gets the pages added a specific time frame (eg. from yesterday 9:00pm to today 9:00pm). Is there a existing selector im missing or does someone now a good solution for this? Thanks in advance .
-
Thanks for your reply. Indeed there was some misunderstanding. I got your solution working now and should be fine for now. Thanks @horst .
-
Hi @horst, Im looking for an exact same solution, website is showing images, but can not be accessed through going directly to the URL. I tried your solution, but also the page where the image is displayed is getting a 404 response for this image. I also have de pwimg.php as a template and page /pwimg/ instead of a 'normal' php file, is that maybe a problem? I hope you can help me with this! Thnx.
-
Hi all, Im trying to install this core module and got the error of not having the ImageMagick library installed. But if im checking for the version of my ImageMagick installed on my server via SSH im getting this response; identify -version Version: ImageMagick 6.9.4-9 Q16 i386 2016-06-21 http://www.imagemagick.org Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC Delegates (built-in): bzlib freetype gslib jng jpeg png ps tiff xml zlib Does this even mean the library is installed? And if yes, why cant i install my module? Pleaassee help me Greetz.
- 1 reply
-
- imagick
- imagemagick
-
(and 3 more)
Tagged with:
-
Thanks @Zeka, im looking into the ImageMagick solution.
- 2 replies
-
- image
- out of memory
-
(and 2 more)
Tagged with:
-
Hi, I have a big image in my image field and want to resize it to 2280px before showing it to the user. Most images are fine and showing as expected, but with one I have the following error; Error: Out of memory (allocated 159383552) (tried to allocate 12288 bytes) (line 243 of /htdocs/process/wire/core/ImageSizerEngineGD.php) Why is this with one image and not with the other ones, and how to solve this? Greetz.
- 2 replies
-
- image
- out of memory
-
(and 2 more)
Tagged with:
-
Hi all, Im working on a photography website where users can comment and like on photos (which are pages). I solved the comment part with the comment module, but I also want a 'like' system. Which includes; - Like a photo. Like count on the photo adds up. - If user has a few favourite photos, i would like a 'Favourites' section on the user profile page, with all of the liked photos. - Apart from the likes, i would like to have a page 'Most liked photos of this week', so each week the community can see the photos with the most likes that week. I came across the Like plug-in, but i would like to have a little more tailored solution and keep it to logged-in users only and be able to see all of the liked photos of a user. Any idea how to keep track of the likes and build a 'Most liked this week' page? Help would be appreciated! Thnx.
-
500 internal server error in backend fields setup page
sirhc replied to sirhc's topic in API & Templates
I solved my problem. Recently I changed my PHP version to 7.1, which caused it to break. It works fine on 7.0! -
Hi all, I got a Internal Server Error when accessing de /setup/fields in my back end... Also when i try to reach it through the page tree, i can't edit the 'fields' page, same error. I do modify a image field through the api, i don't know if that has something to do with it, below the code i use to upload an image through the api, I deleted the parts that are not important. If anyone can help me that would be great. To clarify; the code below works fine, my image and page is created as expected, the only thing is that I can't access my /setup/fields/ page in my CMS anymore due to the Internal Server Error. <?php if($input->post->submit) { $photoPage = new Page(); // create new page object $photoPage->template = 'photo'; // set template $photoPage->parent = wire('pages')->get('/foto/'); // set the parent $photoPage->name = urlBuilder($input->title_photo); // give it a name used in the url for the page $photoPage->title = $input->title_photo; // set page title (not neccessary but recommended) $photoPage->save(); // next: process photo upload // Set a temporary upload location where the submitted files are stored during form processing $upload_path = $config->paths->assets . "files/photos/"; // New wire upload $file_upload = new WireUpload('file_upload'); // References the name of the field in the HTML form that uploads the photo $file_upload->setMaxFiles(1); $file_upload->setOverwrite(true); $file_upload->setDestinationPath($upload_path); $file_upload->setValidExtensions(array('jpg', 'jpeg', 'png', 'gif')); // execute upload and check for errors $files = $file_upload->execute(); // Run a count($files) test to make sure there are actually files; if so, proceed; if not, generate getErrors() if(!count($files)) { $file_upload->error("Sorry, but you need to add a photo!"); return false; } //success //echo 'photos stored';exit; $photoPage->save(); //$session->redirect($locationPage->url); } else { ?> <section class="add-location"> <div class="container"> <div class="row"> <div class="col-xs-12"> <h2>Spot toevoegen</h2> <form id="add-form" action="" enctype="multipart/form-data" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $max_file_size; ?>" /> <div class="col-xs-12 col-md-6"> <label for="fileselect">Upload jouw foto:</label> <p> <input type="file" name="file_upload" id="file_upload" accept="image/*" class="inputfile" /> <label for="file_upload"> <span></span> <strong><i class="fa fa-upload" aria-hidden="true"></i> Kies je foto…</strong> </label> </p> </div> <input type="submit" name="submit" value="Upload" /> </div> </form> </div> </div> </div> </div> <?php } } include('./includes/foot.php');?>