WPIntell

Source evidence

Plugin Generates Critical Error

BoldGrid Easy SEO – Simple and Effective SEO · support · 2022-05-05T19:45:00+00:00

mixedsentiment
highseverity
0.95relevance
9replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 34 rows with source links

14.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
jahrat resolved
The error below is repeatedly generated on my site. Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/…/wp-content/plugins/boldgrid-easy-seo/includes/class-boldgrid-seo-util.php:173 How do we get rid of this error on our website? There is a stack trace available to send to you. This topic was modified 4 years ago by jahrat . The page I need help with: [ log in to see the link] Hi @jahrat Thanks for reaching out, I’m sorry to hear about the repeated errors. It would definitely be helpful to see that full stack trace. If you’re not comfortable sharing here on the public forum, you do have a premium BoldGrid account, so you can contact us privately via your BoldGrid Central Account: https://www.boldgrid.com/central/account/help/premium or you can send it to us at support (at) boldgrid.com The error you mentioned indicates that something unusual is happening with the wp-query on your pages , and we haven’t included logic to catch that problem, so there is definitely some update we should make to avoid this error. Here’s a potential solution you can try, if you’re comfortable making a minor change to the plugin code. On line 169 of that file, /boldgrid-easy-seo/includes/class-boldgrid-seo-util.php it currently reads: if ( $query->is_404 ) { You can change that to: if ( ( $query->is_404 ) || ( ! isset( $query->posts ) ) ) { And that should prevent the error. That being said, I can’t tell what might have caused such an unusual error without knowing more details. If you can send over that stack trace, and if possible a list of your active plugins and theme, and any steps you take to produce the error, we’d be very grateful! This reply was modified 4 years ago by Jesse Owens . Reason: update code fix Thanks @jessecowens , I made the adjustment using the replacement file sent to me. The site is now running with the new file. As soon as the reports are generated I will update this case. Thanks for the quick response. That is great news, we are happy to hear that the updated code worked for you! Jesse is working on putting together a patch for Easy SEO that contains the fix and hopefully we can get that update released soon. Thank you for helping us find this bug and please let us know if you run into any other issues! Hello @jessecowens @joe9663 The error still exists. I sent the new report to you via email. Please review and advise. Thanks. Sorry to hear that the bug is back and thank you for sending those error messages. It looks like there might also be a potential conflict with the Download Manager plugin installed on your website. We installed that plugin in a testing environment alongside Easy SEO, but so far we have not been able to replicate the error message you are getting. Did you make any additional settings changes that we need to make to Download Manager plugin installed on your website? Does the error still happen if you temporarily deactivate Download Manager? Hello @joe9663 I will deactivate the Download Manager and let the system generate the log. As soon as I get the report I will update this thread. Thanks. hello @joe9663 I deactivated the Downloads plugin and ran the report. The error was no longer there so we do indeed have a conflict with Download Manager. I sent you the Download Manager settings information via email. Thank you for sending us that info @jahrat ! We are investigating the problem and hopefully we can get a patch released for this issue soon. Thank you again for all your help! Hello @jessecowens @joe9663 , The errors have been absent in the last couple of reports run with all plugins activated. I will close this ticket now. Thanks for all your assistance.

Comments

9 shown
Jesse Owens 2022-05-05T21:13:00+00:00

Hi @jahrat Thanks for reaching out, I’m sorry to hear about the repeated errors. It would definitely be helpful to see that full stack trace. If you’re not comfortable sharing here on the public forum, you do have a premium BoldGrid account, so you can contact us privately via your BoldGrid Central Account: https://www.boldgrid.com/central/account/help/premium or you can send it to us at support (at) boldgrid.com The error you mentioned indicates that something unusual is happening with the wp-query on your pages , and we haven’t included logic to catch that problem, so there is definitely some update we should make to avoid this error. Here’s a potential solution you can try, if you’re comfortable making a minor change to the plugin code. On line 169 of that file, /boldgrid-easy-seo/includes/class-boldgrid-seo-util.php it currently reads: if ( $query->is_404 ) { You can change that to: if ( ( $query->is_404 ) || ( ! isset( $query->posts ) ) ) { And that should prevent the error. That being said, I can’t tell what might have caused such an unusual error without knowing more details. If you can send over that stack trace, and if possible a list of your active plugins and theme, and any steps you take to produce the error, we’d be very grateful! This reply was modified 4 years ago by Jesse Owens . Reason: update code fix

jahrat 2022-05-06T16:47:00+00:00

Thanks @jessecowens , I made the adjustment using the replacement file sent to me. The site is now running with the new file. As soon as the reports are generated I will update this case. Thanks for the quick response.

Joseph W 2022-05-06T17:04:00+00:00

That is great news, we are happy to hear that the updated code worked for you! Jesse is working on putting together a patch for Easy SEO that contains the fix and hopefully we can get that update released soon. Thank you for helping us find this bug and please let us know if you run into any other issues!

jahrat 2022-05-08T22:29:00+00:00

Hello @jessecowens @joe9663 The error still exists. I sent the new report to you via email. Please review and advise. Thanks.

Joseph W 2022-05-09T19:30:00+00:00

Sorry to hear that the bug is back and thank you for sending those error messages. It looks like there might also be a potential conflict with the Download Manager plugin installed on your website. We installed that plugin in a testing environment alongside Easy SEO, but so far we have not been able to replicate the error message you are getting. Did you make any additional settings changes that we need to make to Download Manager plugin installed on your website? Does the error still happen if you temporarily deactivate Download Manager?

jahrat 2022-05-09T21:41:00+00:00

Hello @joe9663 I will deactivate the Download Manager and let the system generate the log. As soon as I get the report I will update this thread. Thanks.

jahrat 2022-05-10T06:15:00+00:00

hello @joe9663 I deactivated the Downloads plugin and ran the report. The error was no longer there so we do indeed have a conflict with Download Manager. I sent you the Download Manager settings information via email.

Joseph W 2022-05-10T19:26:00+00:00

Thank you for sending us that info @jahrat ! We are investigating the problem and hopefully we can get a patch released for this issue soon. Thank you again for all your help!

jahrat 2022-05-30T05:22:00+00:00

Hello @jessecowens @joe9663 , The errors have been absent in the last couple of reports run with all plugins activated. I will close this ticket now. Thanks for all your assistance.