Jump to content

Peter Knight

  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by Peter Knight

  1. Thanks @kongondo

    I found a fix for it although I don't understand the issue root cause.

    Discovered that editing the page url slug fixes this. Even if I just add an extra letter. Once the page saves, I can view it.

    Not wanting to have to do this manually to 50+ pages, I wondered what would happen if I changed the name (Settings > Name) of the parent for the 50 posts. That worked too and seems to have 'fixed' the 50 pages.

    It must be something related to the Page Path History module or something similar.

    • Like 1
  2. Hi guys

    is there a checklist of items I should consider for diagnosing a series of pages which display a 404 error?

    Basically I have built a Blog and all my posts are under a folder called 'Posts'. Some of these pages successfully display while others display a 404 page. 

    This is what I have confirmed so far...

    1. All pages are within the same root folder 'Posts'
    2. All pages have the same template and fields completed
    3. All pages have the same properties under Settings > Who can access this page
    4. Pages have no redirects in place
    5. Pages have no special characters or anything funky in the URL slug

    There are no errors showing in the log either so I am stuck 😕


  3. Hi all

    My .htaccess file is correctly redirecting all requests to

    1. https://
    2. www.

    That's great until I want to work locally.

    I thought I had seen a blog post by Ryan where there was a new config setting to ignore both of these if working from localhost?

    I can't find it now so wondering if I was imagining 😕



  4. If an image is added to a site via the rich text field, do we have a way to apply a custom wrapper or mini template to it?

    IE I want to apply some markup srcset to some user added images. I can only seem to achieve this when the image markup is in the template itself.


    I can probably achieve this with RepeaterMatrix and by creating a specific Images field (and images template) but outside of that ?


  5. 25 minutes ago, jonatan said:

    Do you know what CRM solution they ended up using? 🙂

    They ended up using SugarCRM as the cost of HubSpot was too expensive. But they never used the SugarCRM API (if there is one) so it was just a stand alone service with no real website integration. Sure, the webforms went into their SugarCRM database but it was a PITA and client regretted using SugarCRM too. The UX/UI was pretty poor.

  6. 10 hours ago, jonatan said:

    Old Post but.. Any news since 2018 on this? 

    I have an upcoming client which say that they need to run WP because of Hubspot CRM integration... I haven't been given any further clues though about exactly why though yet.. Anyone using it or similar? 😊

    Probably due to some plug in they believe they need.

    My own client never signed up to HubSpot in the end.

    • Thanks 1
  7. Hi

    One of my clients says that they created a new news item and that subsequently all their previous news items disappeared (front end and back-end)

    The first thing I usually do here is to

    1. check the backend and see if they mistakenly set the wrong template on a folder 
    2. check the Trash folder for any deleted items
    3. search the entire PW backend for stray news items in the folders they should not be in

    In all three instances I cannot find any evidence of these news items on their live server.

    Any tips on where I might be failing to look? Unfortunately, I don't have any type of activity / changes log module installed.

    On a side note, a backup I have from last week has the full list of news items pages. Ultimately I can just restore this but I'd prefer to do a little digging first.


  8. 2 minutes ago, adrian said:

    There were some changes to module settings and functionality so no guarantees on this I'm afraid. There were just too many bugs in the old version that I got beyond caring about ensuring backward compatibility and I was installing on a new site. I think you should test on a dev site first to see if it breaks anything before running on a production site.

    Fair enough. Thanks 🙂

  9. 39 minutes ago, adrian said:

    I believe it is also fixed in: https://github.com/adrianbj/MarkupSEO/commits/various-fixes-enhancements

    As far as I know, this is the most improved version of the original module available - lots of bug fixes and improvements. That said, I am not maintaining it anymore, but if anyone wants to keep it going, I would start from that version. Otherwise, take a look at SEOMaestro.

    Thanks Adrian. When installed, does this version inherit the existing settings etc?

  10. 32 minutes ago, BitPoet said:

    You could either use the fork by esl51 or incorporate the fix yourself (changing the "count" in line 245 to "!empty"). Maybe someone actively using the module could talk with @Nico Knoll about maintining the module on GitHub? There's already a pull request that fixes this waiting in the repo.

    Cheers BitPoet. That worked.

    Is there a similar fix for the next error that appears?


    Notice: Trying to get property 'httpUrl' of non-object in /var/www/vhosts/domain.com/httpdocs/site/assets/cache/FileCompiler/site/modules/MarkupSEO/MarkupSEO.module on line 248



  11. I'm getting the following error. Having posted it in the GitHub I realise I should post it here instead.

    Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/domain.com/httpdocs/site/assets/cache/FileCompiler/site/modules/MarkupSEO/MarkupSEO.module on line 245

    I know MarkupSEO is an old and relatively discontinued Module these days but was hoping to fix by upgrading both PHP and PW to latter versions.

    I am now running ProcessWire 3.0.148 © 2020 and PHP 7.3.13

    Issue persists.

  12. I'm using Amazon CloudFront for the first time and have everything setup properly (almost).

    When I run my URL through a GTMetrix speed test, I repeatedly get a 'Minimise redirects' advisory notice.

    Below is just a sample of the results.

    It looks like my /site/ assets are successfully delivered via the CDN URL but are then are redirected back to the source css/img/js on my server.

    Obviously that defeats the purpose of a CDN 😐

    Any ideas on what might be the cause of this?

    My .htaccess file is the default one supplied with Processwire and I'm running

    • ProCache v3.1.8
    • ProcessWire 3.0.148 © 2020



    Have also attached  a screen grab of the Cloudfront setup:



    BTW happy to DM the actual URL to interested parties. Just can't add it here.

  13. Is anyone here using WEBP as their output image format and what is your server / environment setup?

     I know there's support for it in PW lately and decided to investigate.

    Found it quite difficult to do this on a practical level. IE My current VPS is Cent OS 6 and Plesk and unless I'm wrong, WEBP is not supported by either.

    Which host and setup are you on that allows you to run WebP?


    • Like 1
  14. That's the Module I'm looking at Dragan. Nothing there about auto-locking. Some good options regarding timings etc but no auto-lock.

    I was sure I was locked out of an install recently when I failed a login 3+ times.

  15. 55 minutes ago, Jonathan Sachse Mikkelsen said:


    If anyone has any idea of what might be the problem I would be super grateful. I've scoured this thread for any relevant solutions, but so far still no emails 😞

    Are you using an SMTP service to send emails through? IE PostmarkApp, MailGun, SendinGrid etc

  16. On 11/4/2019 at 6:23 PM, dragan said:

    Why do you need to test them so often?

    The obvious advice would be: Test them on the development instance of the site.

    Depending on embed method (A-D), a query string may or may not work.

    Perhaps with a hook that checks for user-role?

    $this->addHookBefore('FormBuilderProcessor::emailForm', $this, 'testEmails');
    protected function testEmails(HookEvent $event) {
    	/* @var InputfieldForm $form */
    	$form = $event->arguments(0);
        if ($user->hasRole("email-tester") && $config->emailTesting === true) {
     	    $recipient = $form->getChildByName('recipient');
    	    $recipient = 'foo@admin.com'; // or put inside $config too
            // some re-definition of the landing page, e.g. add query string or pseudo-landing page, or real-landing-page-url + url-segments /test-only/


    Thanks @dragan. Nice idea re. checking via user role.


    Why do you need to test them so often?

    The forms generate a significant amount of web leads and are under heavy usage. Typically any enquiry needs to successfully route through all of the following which all need to be working perfectly

    1. the website itself and the form
    2. any SMTP configuration module
    3. Our SMTP mail delivery service
    4. Client's end email address

    We had an incident recently whereby the SMTP mail delivery service had a bounce from a client email address due to an IT outage. It then incorrectly flagged an organisation as inactive and stopped sending all future leads. The represents wasted leads but also wastage of AdWords budget etc.

    So essentially it's an SLA thing for reassurance to make sure everything is working.

    • Like 1
  17. I have a few web forms which require testing on a weekly basis and I don't want the recipients (administrators) to receive these test emails.

    What would be a good way to test approx 15 forms from the front end and have the test delivered a list of secondary administrator recipients?

    I'm thinking that I could have some kind of config file which watches for a trigger word or email and then understands that it's a test and to bypass the normal admins?

    All of the forms ask for an email address so I could setup an email such as 'testform@email.not' etc which my config file (hook?) would watch for.

    Or is there a better way to do this?

    Additionally, I have a few extra requirements...

    1. Forms should goto an alternative success page. This is because I don't want my test to skew my Google Analytics conversion tracking
    2. Forms would need to be tested from the front-end and not the PW admin area

    Any advice appreciated.

    BTW I realise this should be posted in the proper FormBuilder support forum. I am in the process of renewing my license for access to that support forum.


  18. On 5/16/2019 at 8:50 PM, ceberlin said:

    same trouble with MAMP / MAC + PHP 7.3..... reverting to 7.2 solved it

    No joy for me on any version of PHP (7.2.1, 7.1.31, 7.0.33 or previous)

     I'll reboot, clear caches and try again tomorrow. Interestingly I also cannot download any new versions of PHP 


    Connecting to the update server failed, please try again later.


  • Create New...