active PHP flat error
-
When activating the plug-in in PHP8.2, the following error is displayed: Switching back to 7.4 will enable the plugin normally.
The plugin could not be enabled because it caused a fatal error.
WP_debug log as blow:
[24-Aug-2024 06:17:32 UTC] PHP Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, string given in /www/wwwroot/www.test.com/wp-content/plugins/image-watermark/image-watermark.php:102
Stack trace: 0 /www/wwwroot/www.test.com/wp-content/plugins/image-watermark/image-watermark.php(102): array_merge() 1 /www/wwwroot/www.test.com/wp-content/plugins/image-watermark/image-watermark.php(184): Image_Watermark->__construct() 2 /www/wwwroot/www.test.com/wp-content/plugins/image-watermark/image-watermark.php(1503): Image_Watermark::instance() 3 /www/wwwroot/www.test.com/wp-content/plugins/image-watermark/image-watermark.php(1508): Image_Watermark() 4 /www/wwwroot/www.test.com/wp-admin/includes/plugin.php(2387): include_once(‘…’) 5 /www/wwwroot/www.test.com/wp-admin/includes/plugin.php(673): plugin_sandbox_scrape() 6 /www/wwwroot/www.test.com/wp-admin/plugins.php(60): activate_plugin() 7 {main}thrown in /www/wwwroot/www.test.com/wp-content/plugins/image-watermark/image-watermark.php on line 102
- You must be logged in to reply to this topic.