-
AuthorPosts
-
October 19, 2025 at 2:13 am #246547

RJ RameyParticipantHi, I just purchased & installed EXMAGE. In the plugin’s settings, I immediately ran into the following errors. But I also diagnosed the cause of the error, so please see the DEBUG information below.
ATTEMPT #1
1.1) I was simply trying to enter my Auto Update Key.
1.2) Then, when I pressed “Save & Check Key,” the page reloaded, but the key that I had entered was erased (back to a blank field). Nothing else happened.
1.3) Then I repasted the key, and instead pressed: “Save”. This resulted in a fatal error page from WordPress: “There has been a critical error on this website.”ATTEMPT #2
2.1) In the Settings > General tab, I flipped ON the switch to “Enable Replace media after deactivated”. Then, from the Placeholder Image field, I chose a different image from my Media Library.
2.2) When I pressed the button to “Save”, this resulted in a fatal error page from WordPress: “There has been a critical error on this website.”DEBUG INFORMATION:
In my debug.log, both of these instances created the same error:
`
[18-Oct-2025 18:51:25 UTC] PHP Fatal error: Uncaught Error: Call to undefined function EXMAGE\Admin\wc_get_logger() in /home/blackfas/public_html/wp-content/plugins/exmage-wordpress-image-links/admin/exmagesettings-helper.php:813
Stack trace:
#0 /home/blackfas/public_html/wp-content/plugins/exmage-wordpress-image-links/admin/exmageadmin.php(314): EXMAGE\Admin\EXMAGESettings_Helper::save_fields(Array)
#1 /home/blackfas/public_html/wp-includes/class-wp-hook.php(324): EXMAGE\Admin\EXMAGEAdmin->save_settings(”)
#2 /home/blackfas/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#3 /home/blackfas/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /home/blackfas/public_html/wp-admin/admin.php(176): do_action(‘admin_init’)
#5 {main}
thrown in /home/blackfas/public_html/wp-content/plugins/exmage-wordpress-image-links/admin/exmagesettings-helper.php on line 813
`ANALYSIS:
Line 813 is trying to use the Woocommerce functionwc_get_logger(). But my site does not have Woocommerce installed. (You never state anywhere that Woocommerce is a prerequisite for using the EXMAGE plugin.) This line of code should be wrapped in a conditional statement, IF THIS FUNCTION EXISTS (….) { …}WORKAROUND:
When I manually comment-out line 813, then the error disappears, and at least I can complete the Save changes to my settings. -
AuthorPosts
You must be logged in to see replies to this topic. Click here to login or register