Posts by peteperch4

    Abit more information on this the MySQL server is 5.7.31 and perch_content_custom works whenever the wildcard is removed and I put in a specific path to one of the sub pages. Not sure if this can be fixed on this version of perch or if I need to update to the newest version?


    I have been using perch_content_custom to list sub pages under a certain main section so for example I have a programmes main page which has 5 sub pages underneath it. On the programmes main page I was using a perch_content_custom to pull content from a region from those 5 sub pages to show an image and title of those pages within the programmes main page. Then the user would click these to navigate to those sub pages.

    This is not all of a sudden now not working.

    Here's the code I have been using

    1. <?php
    2. perch_content_custom('Main Content', array(
    3. 'page'=>'/programmes/*',
    4. 'template'=>'programme_list.html',
    5. ));
    6. ?>

    I also tried using this code

    1. <?php
    2. perch_content_custom('Main Content', [
    3. 'page' => '/programmes/*',
    4. 'template'=>'programme_list.html'
    5. ]);
    6. ?>

    I am using PHP 7.2 and have tried using 7.3 it's perch version 2.8.34

    Am I missing something from the above code? Is there something which needs switched on at server level to make it work which has maybe been switched off?

    Thanks in advance for any help.

    I would love to see Perch continue to be developed to v4 but I understand that isn't possible now.

    I think Perch is a fantastic CMS which is perfect for so many of the sites I and many others work on. The fact it allows you to admin as much or as little of a site as you want (with so many fantastic out of the box content editing options) and still keep streamlined markup without having to download multiple plugins for performance is great.

    I for one would be happy to continue to use Perch on my sites as long as there was some sort of guarantee that the first party add ons provided and the core were kept compatible with the latest PHP version and there were security patches if there were ever any issues. If there were any important support issues, like those listed in the posts above it would be great to hear from Drew also.

    I'm having the same problem working from localhost on a site built with perch 2. I haven't updated to perch 3 and debug says the following

    authenticate(): ">Activating via CURL
    authenticate(): "> {"result":"FAILURE"}
    authenticate(): ">Activation: failed
    authenticate(): ">Writing auth fail to log.
    get(): "> [27] SELECT DISTINCT settingID, settingValue FROM perch2_settings WHERE userID=0
    Queries: 1
    Memory: 1.1509

    1. Array
    2. ( [type] => 2 [message] => http_build_query(): Parameter 1 expected to be Array or Object. Incorrect value given [file] => /perch/core/lib/PerchAuthenticatedUser.class.php [line] => 196
    3. )

    Just wondering how I stop the Blog post url from changing whenever I change a blog post title?

    Within perch settings I have set the blog post path to /news-events/post.php?s={postSlug} and then the slug format to {postTitle} is there anything within settings that I can add that will set the blog post URL and make it so that it doesn't change after the title is updated?



    There might be a simple solution to this that I'm missing but I am trying to redirect a blog post link to an amended blog post link (my client emailed the wrong blog post url out) I've tried a 301 redirect in the .htaccess file but this isn't working. I've around another 60 301s in the .htaccess file that are working fine but this one isn't. Would you know could this be a perch problem or is it .htaccess and is there a way to fix it?

    Thanks in advance for any help with this.

    1. Redirect 301 /news-events/post.php?s=small-scale-post-blog-link

    Just a suggestion for the CKeditor plugin. It would be great if when adding a file or image through CKeditor for the user to be able to upload images or files into the assets folder or to be able to choose assets from the assets folder.

    I know the built in editor does this but I think CKeditor is slightly more powerful and depending on what my client needs to be able to do in the text editor I usually find myself having to use CKeditor.

    Recently I've been getting messages from clients asking about being able to create recurring events so that they don't have to enter events which happen each week twice or sometimes 4 times having multiple instances of the same event with just a different date. Would this be something that might be looked at in future?

    Other than that I think the events app works really well.

    That's it working now again. The tech support I spoke to said fileinfo was enabled on the server but when I contacted them today again they said it wasn't enabled, now it's switched on and now it's working. Sorry about that.

    Here's some of the diagnostics. The size of file I'm uploading is 1.9mb

    GD: Yes

    ImageMagick: No

    PHP max upload size: 512M

    PHP max form post size: 512M

    PHP memory limit: 256M

    Total max uploadable file size: 256M

    Resource folder writeable: Yes

    Session timeout: 24 minutes

    Native JSON: Yes

    Filter functions: Yes

    Transliteration functions: Yes

    Ah ok.

    So when adding a pdf asset via a region I either drag and drop the pdf file into the upload box or use the choose file method. Rather than uploading to the asset list it just refreshes but without the uploaded pdf. I've tried adding a pdf via the assets area as well and it's the same thing, once I click submit the page refreshes, but the pdf isn't added to the assets list.

    Just a suggestion for the blog app.

    Could extra functionality be added to the authors part of the blog that allows authors to be added via the blog app instead of having to make them a user in the CMS?

    I've had a couple of clients recently who have one website manager (they upload all the content, mainly blog content) but there are many different authors of the blog posts. Each time they want a new author added it becomes quite time consuming creating a user account, logging in, saving a blog post as that person and then editing their author profile, then deleting that user again. It's particularly time consuming with Paranoid mode is switched on.

    Would really love to see this added.


    Recently my client hasn't been able to upload pdfs, image files are fine it's just pdfs and word docs. finfo is enabled on the server so I don't think it's that. I got in touch with my host and they said that there was an error message

    PHP Warning: escapeshellcmd() has been disabled for security reasons in /public_html/perch/core/lib/PerchAuthenticatedUser.class.php on line 135

    They have disabled escapeshellcmd() on the server for security reasons. Is this the reason pdfs now won't upload? If so is there any workaround for this?

    Any help is much appreciated.