There has been a critical error on this website.
-
Hi,
My project is under development and was going well until I woke up yesterday morning to some pages being totally broken.Some unit are broken and throwing errors on pages where they are displayed.
Example: Nursery – Amazon Discounts (online-home.ca)
I can edit the unit, access all plugins options and menus but unable to display on a page or renew cache.
I cannot add unit by category either… I cannot see anything from the usual categories.
Current Selection
There has been a critical error on this website.
I’ve deployed a brand new install with only the AAL plugins (free/pro) and it does the same thing. Same result with default themes.
Auto Amazon Links: Version 5.4.2
Auto Amazon Links Pro: Version 4.1.1The page I need help with: [log in to see the link]
-
I must precise that if I disable AAL plugins, the pages load just fine.
- This reply was modified 7 months, 1 week ago by gastrikhell.
Hi,
Could you post your PHP version? It can be found by going to Dashboard -> Tools -> Site Health -> Info.
Also, I want you to turn on the WordPress debug mode and post the log created under the
wp-content
directory. You also need to enable the debug log.The steps to enable the debug mode:
- Access your WordPress files: You can do this via FTP or through your web host’s file manager.
- Locate the wp-config.php file: This is usually in the root directory of your WordPress installation.
- Open the wp-config.php file: You can do this in any text editor.
- Find the line that says
define('WP_DEBUG', false);
: If this line doesn’t exist, you can add it just before the line that says/* That's all, stop editing! Happy publishing. */
. - Change
false
totrue
: The line should now readdefine('WP_DEBUG', true);
. - Save and close the file: The changes you made will take effect immediately.
The steps to enable the debug log:
- Open the wp-config.php file again as you did before.
- Add the following line just below the
define('WP_DEBUG', true);
line:
define('WP_DEBUG_LOG', true);
- Save and close the file.
Do these before activating the plugin and observe the added log entries after activating the plugin and loading the unit page.
PHP version 8.2.18 (Supports 64bit values)
See below result from my site page/link posted above:
Fatal error: Uncaught ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty in /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/AmazonAutoLinks_DOM.php:170 Stack trace: #0 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/AmazonAutoLinks_DOM.php(170): DOMDocument->loadHTML() #1 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/AmazonAutoLinks_DOM.php(132): AmazonAutoLinks_DOM->_loadHTML() #2 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/AmazonAutoLinks_DOM.php(65): AmazonAutoLinks_DOM->loadDOMFromHTML() #3 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/scraper/AmazonAutoLinks_ScraperDOM_Base.php(66): AmazonAutoLinks_DOM->loadDOMFromHTMLElement() #4 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/category/utility/AmazonAutoLinks_ScraperDOM_BestsellerProducts_Base.php(35): AmazonAutoLinks_ScraperDOM_Base->__construct() #5 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/category/event/filter/AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher.php(254): AmazonAutoLinks_ScraperDOM_BestsellerProducts_Base->__construct() #6 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/category/event/filter/AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher.php(185): AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher->___getProductsScraped() #7 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/category/event/filter/AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher.php(136): AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher->___getProductsFromURLs() #8 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/category/event/filter/AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher.php(36): AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher->___getFoundProducts() #9 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/_common/event/filter/AmazonAutoLinks_Unit_UnitType_Common_Event_Filter_ProductsFetcher_Base.php(53): AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher->_getItemsFromSource() #10 /homepages/18/d1003138455/htdocs/wp-includes/class-wp-hook.php(324): AmazonAutoLinks_Unit_UnitType_Common_Event_Filter_ProductsFetcher_Base->replyToGet() #11 /homepages/18/d1003138455/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters() #12 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/_common/output/_abstract/AmazonAutoLinks_UnitOutput_Base.php(625): apply_filters() #13 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/_common/output/_abstract/AmazonAutoLinks_UnitOutput_Base.php(292): AmazonAutoLinks_UnitOutput_Base->fetch() #14 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/_common/_abstract/AmazonAutoLinks_Unit_UnitType_Loader_Base.php(188): AmazonAutoLinks_UnitOutput_Base->get() #15 /homepages/18/d1003138455/htdocs/wp-includes/class-wp-hook.php(324): AmazonAutoLinks_Unit_UnitType_Loader_Base->replyToGetUnitOutput() #16 /homepages/18/d1003138455/htdocs/wp-includes/plugin.php(256): WP_Hook->apply_filters() #17 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/main/output/AmazonAutoLinks_Output.php(169): apply_filters_ref_array() #18 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/main/output/AmazonAutoLinks_Output.php(141): AmazonAutoLinks_Output->___getOutputByUnitType() #19 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/main/output/AmazonAutoLinks_Output.php(118): AmazonAutoLinks_Output->___getOutputByID() #20 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/main/output/AmazonAutoLinks_Output.php(84): AmazonAutoLinks_Output->___getOutput() #21 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/main/output/AmazonAutoLinks_Main_Output_Loader.php(31): AmazonAutoLinks_Output->get() #22 /homepages/18/d1003138455/htdocs/wp-includes/class-wp-hook.php(324): AmazonAutoLinks_Main_Output_Loader->replyToGetOutput() #23 /homepages/18/d1003138455/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters() #24 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/gutenberg/unit_block/AmazonAutoLinks_GutenbergBlock_UnitBlock.php(102): apply_filters() #25 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/gutenberg/unit_block/AmazonAutoLinks_GutenbergBlock_UnitBlock.php(95): AmazonAutoLinks_GutenbergBlock_UnitBlock->___getOutputFrontend() #26 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/gutenberg/_common/AmazonAutoLinks_GutenbergBlock_Dynamic_Base.php(54): AmazonAutoLinks_GutenbergBlock_UnitBlock->_renderBlock() #27 /homepages/18/d1003138455/htdocs/wp-includes/class-wp-block.php(463): AmazonAutoLinks_GutenbergBlock_Dynamic_Base->replyToRenderDynamicBlock() #28 /homepages/18/d1003138455/htdocs/wp-includes/blocks.php(1705): WP_Block->render() #29 /homepages/18/d1003138455/htdocs/wp-includes/blocks.php(1743): render_block() #30 /homepages/18/d1003138455/htdocs/wp-includes/class-wp-hook.php(324): do_blocks() #31 /homepages/18/d1003138455/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters() #32 /homepages/18/d1003138455/htdocs/wp-includes/blocks/post-content.php(48): apply_filters() #33 /homepages/18/d1003138455/htdocs/wp-includes/class-wp-block.php(463): render_block_core_post_content() #34 /homepages/18/d1003138455/htdocs/wp-includes/class-wp-block.php(443): WP_Block->render() #35 /homepages/18/d1003138455/htdocs/wp-includes/blocks.php(1705): WP_Block->render() #36 /homepages/18/d1003138455/htdocs/wp-includes/blocks.php(1743): render_block() #37 /homepages/18/d1003138455/htdocs/wp-includes/block-template.php(260): do_blocks() #38 /homepages/18/d1003138455/htdocs/wp-includes/template-canvas.php(12): get_the_block_template_html() #39 /homepages/18/d1003138455/htdocs/wp-includes/template-loader.php(106): include(‘/homepages/18/d…’) #40 /homepages/18/d1003138455/htdocs/wp-blog-header.php(19): require_once(‘/homepages/18/d…’) #41 /homepages/18/d1003138455/htdocs/index.php(17): require(‘/homepages/18/d…’) #42 {main} thrown in?/homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/AmazonAutoLinks_DOM.php?on line?170
This is from a working page (https://s1003138452.online-home.ca/amazon-devices-accessories/
Deprecated: Creation of dynamic property AmazonAutoLinksPro_Template_Column::$aUnitOptions is deprecated in /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links-pro/template/column/class/AmazonAutoLinksPro_Template_Column.php on line 35
Deprecated: Creation of dynamic property AmazonAutoLinksPro_Template_Column::$aTemplateOptions is deprecated in /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links-pro/template/column/class/AmazonAutoLinksPro_Template_Column.php on line 37
Thanks for your help.
Thank you for the log. I’m afraid this topic gets locked by the forum moderator as it is a problem of Pro.
In case your license has expired and cannot reach the technical support, edit the AmazonAutoLinksPro_Template_Column.php file and add these lines on line 32.
protected $aUnitOptions = array(); protected $aTemplateOptions = array();
So the code will look like
static protected $aStructure_UnitOptions = array( 'id' => null, '_labels' => null, ); protected $aUnitOptions = array(); protected $aTemplateOptions = array(); public function __construct( $aUnitOptions, $aTemplateOptions ) {
I see that the pro plugin had an update available. I supposed you added your solution to my probleme because I see the code you provided already in the config.
Editing?amazon-auto-links-pro/template/column/class/AmazonAutoLinksPro_Template_Column.php?(active)
Line 27 to 36:
static protected $aStructure_UnitOptions = array(
‘id’ => null,
‘_labels’ => null,
);
protected $aUnitOptions = array();
protected $aTemplateOptions = array();
public function __construct( $aUnitOptions, $aTemplateOptions ) {I purchased my pro licence 2-3 weeks ago. I suppose I have support included? How can we continue this support thread else where?
Here is the debug with corrected code for https://s1003138452.online-home.ca/nursery/:Fatal error: Uncaught ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty in /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/AmazonAutoLinks_DOM.php:170 Stack trace: #0 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/AmazonAutoLinks_DOM.php(170): DOMDocument->loadHTML() #1 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/AmazonAutoLinks_DOM.php(132): AmazonAutoLinks_DOM->_loadHTML() #2 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/AmazonAutoLinks_DOM.php(65): AmazonAutoLinks_DOM->loadDOMFromHTML() #3 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/scraper/AmazonAutoLinks_ScraperDOM_Base.php(66): AmazonAutoLinks_DOM->loadDOMFromHTMLElement() #4 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/category/utility/AmazonAutoLinks_ScraperDOM_BestsellerProducts_Base.php(35): AmazonAutoLinks_ScraperDOM_Base->__construct() #5 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/category/event/filter/AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher.php(254): AmazonAutoLinks_ScraperDOM_BestsellerProducts_Base->__construct() #6 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/category/event/filter/AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher.php(185): AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher->___getProductsScraped() #7 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/category/event/filter/AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher.php(136): AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher->___getProductsFromURLs() #8 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/category/event/filter/AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher.php(36): AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher->___getFoundProducts() #9 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/_common/event/filter/AmazonAutoLinks_Unit_UnitType_Common_Event_Filter_ProductsFetcher_Base.php(53): AmazonAutoLinks_Unit_Category_Event_Filter_ProductsFetcher->_getItemsFromSource() #10 /homepages/18/d1003138455/htdocs/wp-includes/class-wp-hook.php(324): AmazonAutoLinks_Unit_UnitType_Common_Event_Filter_ProductsFetcher_Base->replyToGet() #11 /homepages/18/d1003138455/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters() #12 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/_common/output/_abstract/AmazonAutoLinks_UnitOutput_Base.php(625): apply_filters() #13 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/_common/output/_abstract/AmazonAutoLinks_UnitOutput_Base.php(292): AmazonAutoLinks_UnitOutput_Base->fetch() #14 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/unit/_common/_abstract/AmazonAutoLinks_Unit_UnitType_Loader_Base.php(188): AmazonAutoLinks_UnitOutput_Base->get() #15 /homepages/18/d1003138455/htdocs/wp-includes/class-wp-hook.php(324): AmazonAutoLinks_Unit_UnitType_Loader_Base->replyToGetUnitOutput() #16 /homepages/18/d1003138455/htdocs/wp-includes/plugin.php(256): WP_Hook->apply_filters() #17 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/main/output/AmazonAutoLinks_Output.php(169): apply_filters_ref_array() #18 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/main/output/AmazonAutoLinks_Output.php(141): AmazonAutoLinks_Output->___getOutputByUnitType() #19 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/main/output/AmazonAutoLinks_Output.php(118): AmazonAutoLinks_Output->___getOutputByID() #20 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/main/output/AmazonAutoLinks_Output.php(84): AmazonAutoLinks_Output->___getOutput() #21 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/main/output/AmazonAutoLinks_Main_Output_Loader.php(31): AmazonAutoLinks_Output->get() #22 /homepages/18/d1003138455/htdocs/wp-includes/class-wp-hook.php(324): AmazonAutoLinks_Main_Output_Loader->replyToGetOutput() #23 /homepages/18/d1003138455/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters() #24 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/gutenberg/unit_block/AmazonAutoLinks_GutenbergBlock_UnitBlock.php(102): apply_filters() #25 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/gutenberg/unit_block/AmazonAutoLinks_GutenbergBlock_UnitBlock.php(95): AmazonAutoLinks_GutenbergBlock_UnitBlock->___getOutputFrontend() #26 /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/component/gutenberg/_common/AmazonAutoLinks_GutenbergBlock_Dynamic_Base.php(54): AmazonAutoLinks_GutenbergBlock_UnitBlock->_renderBlock() #27 /homepages/18/d1003138455/htdocs/wp-includes/class-wp-block.php(463): AmazonAutoLinks_GutenbergBlock_Dynamic_Base->replyToRenderDynamicBlock() #28 /homepages/18/d1003138455/htdocs/wp-includes/blocks.php(1705): WP_Block->render() #29 /homepages/18/d1003138455/htdocs/wp-includes/blocks.php(1743): render_block() #30 /homepages/18/d1003138455/htdocs/wp-includes/class-wp-hook.php(324): do_blocks() #31 /homepages/18/d1003138455/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters() #32 /homepages/18/d1003138455/htdocs/wp-includes/post-template.php(256): apply_filters() #33 /homepages/18/d1003138455/htdocs/wp-content/themes/shuttle-pro/content-page.php(11): the_content() #34 /homepages/18/d1003138455/htdocs/wp-includes/template.php(812): require(‘/homepages/18/d…’) #35 /homepages/18/d1003138455/htdocs/wp-includes/template.php(745): load_template() #36 /homepages/18/d1003138455/htdocs/wp-includes/general-template.php(206): locate_template() #37 /homepages/18/d1003138455/htdocs/wp-content/themes/shuttle-pro/page.php(14): get_template_part() #38 /homepages/18/d1003138455/htdocs/wp-includes/template-loader.php(106): include(‘/homepages/18/d…’) #39 /homepages/18/d1003138455/htdocs/wp-blog-header.php(19): require_once(‘/homepages/18/d…’) #40 /homepages/18/d1003138455/htdocs/index.php(17): require(‘/homepages/18/d…’) #41 {main} thrown in /homepages/18/d1003138455/htdocs/wp-content/plugins/amazon-auto-links/include/core/_common/utility/interpreter/AmazonAutoLinks_DOM.php on line 170
- This reply was modified 7 months ago by gastrikhell.
I suppose I have support included? How can we continue this support thread else where?
Navigate to Dashboard -> Auto Amazon Links -> Help. You can send support request from there. If the mail is not sent, you can use the email address written on the purchase confirmation email.
There are two issues in this topic and the first one is solved. Regarding the second error, it is of this plugin and I could not reproduce it on my end. However, I’ve uploaded a development version that avoid it. Please try 5.4.3b01.
But this just dodges the error and does not solve the root problem. I need to know if your server enables the
mbstring
PHP extension. Navigate to Dashboard -> Auto Amazon Links -> Settings -> Misc and enable the Debug mode with the back-end option checked. Then, go to Dashboard -> Auto Amazon Links -> Help -> About. At the bottom, you’ll see the Sever section. In there, find the string sayingmbstring
and post what it says here.Thank you.
Dear forum moderator, could you please hide the above email address? Thank you for your cooperation.
closing, as thia topic is related to PRO plugin and user has already emailed support
- The topic ‘There has been a critical error on this website.’ is closed to new replies.