Hi,
Can you post an error message and the plugin version?
If you are using the development version (v4.x), it has an issue when more than 10 items are called which affects Pro users.
Thanks for the quick response!
Amazon Auto Links
Version 3.12.0 | By Michael Uno (miunosoft)
Amazon Auto Links Pro
Version 3.3.0 | By Michael Uno (miunosoft)
ERROR message on my post.
“There has been a critical error on your website.
Learn more about debugging in WordPress.”
Hi, that message is too vague for the developer to know the cause. The exact PHP error message would help and it can be found in PHP error log. You may want to temporarily enable the site debug mode by giving true to the WP_DEBUG constant. A log file will be created in the wp-content directory.
In the meantime, you can try older version of the plugin to see if the same problem occurs. The previous version v3.11.1 is here. You can find the other version in this page as well.
Understood. Here’s the error log. Thanks.
[14-Feb-2020 15:09:04 UTC] PHP Fatal error: Uncaught Error: Cannot unset string offsets in /home/digiuiwt/wholesomeone.com/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/http/AmazonAutoLinks_HTTPClient_Base.php:297
Stack trace:
#0 /home/digiuiwt/wholesomeone.com/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/http/AmazonAutoLinks_HTTPClient_Base.php(249): AmazonAutoLinks_HTTPClient_Base->_getHTTPResponseWithCache(Array, Array, ‘86400’)
#1 /home/digiuiwt/wholesomeone.com/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/http/AmazonAutoLinks_HTTPClient_Base.php(171): AmazonAutoLinks_HTTPClient_Base->getResponses()
#2 /home/digiuiwt/wholesomeone.com/wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/url/output/AmazonAutoLinks_UnitOutput_url.php(126): AmazonAutoLinks_HTTPClient_Base->get()
#3 /home/digiuiwt/wholesomeone.com/wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/url/output/AmazonAutoLinks_UnitOutput_url.php(42 in /home/digiuiwt/wholesomeone.com/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/http/AmazonAutoLinks_HTTPClient_Base.php on line 297
Thanks for posting the error.
Are you using a custom build of the plugin or third-party extension plugin?
The error can hardly occur unless the structure of the plugin cache is modified.
No customizations. Is there anything you recommend I do to attempt to correct things?
Can you try the development version (v4.0.0b08)? It should remove the error.
However, it is not something that completely solves the root problem.
After installing and activating the development version, go to Dashboard -> Amazon Auto Links -> Tools -> Error Log. And find an entry that says “The cache data is corrupted.” Then can you post that part of the log here?
Thank you.
The dev version 4.0 corrected things after I re-selected the default template! Thanks!
In the error log it reads as….
The cache data is corrupted.
2020-02-19 10:29:38 AAL_79cd6f2c0b786bcdf39407eb8c3fc2f0 https://webservices.amazon.com/paapi5/searchitems string 1
https://wholesomeone.com/condition/osteoarthritis-natural-treatments
Thanks for posting the error log.
Not sure why you get a string value there.
The new version 4.0.0 defaults to not compress caches for HTTP requests. This might solve the issue. (this behavior can be changed via Dashboard -> Amazon Auto Links ->Settings -> Cache -> Compress).
Please keep an eye on the error log and if you keep getting the corrupted cache message, let me know because it should not be left unfixed.