Posts by peteperch4

    I added required="true" to the g-recaptcha-response which seems to have worked.


    When the user clicks submit without ticking the box the field gets shown as required and from there they need to fill it in for it to submit properly.


    What I've found is that the form actually submits when the recaptcha isn't ticked and the message goes straight to spam however once they tick the recaptcha and hit send again the message is sent and they are shown a success message. Not ideal but works ok.


    Code
    1. <perch:input type="hidden" id="g-recaptcha-response" class="g-recaptcha-response" required="true"/>

    Thanks Clive that's really helpful to know. Are there any other anti-spam solutions you would use or is this is the best available for Perch?


    I had used the built in honeypot solution previously but found too much spam was getting through.

    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?

    Hi


    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

    PHP
    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

    PHP
    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



    Code
    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?


    Thanks

    Hi


    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.


    Code
    1. Redirect 301 /news-events/post.php?s=small-scale-post-blog-link https://example.co.uk/news-events/post.php?s=small-scale-post-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