Fatal error: Uncaught Error: Undefined constant “un_validate_hex_color” in /public_html/wp-content/plugins/newsletter-email-mailing-list/newsletter-email-mailing-list.php:193 Stack trace: #0 /public_html/wp-admin/includes/plugin.php(2286): include_once() #1 /public_html/wp-admin/plugins.php(191): plugin_sandbox_scrape() #2 {main} thrown in /public_html/wp-content/plugins/newsletter-email-mailing-list/newsletter-email-mailing-list.php on line 193
]]>The link is to my site. There is no page associated.
I installed the plugin and when I tried to activate it I got an error saying that it wouldn’t activate.
]]>With this plugin enabled I wasn’t able to use wordpress customize
This error was declared by php-fpm
"PHP message: PHP Fatal error: Cannot redeclare sanitize_hex_color() (previously declared in /wp-content/plugins/newsletter-email-mailing-list/newsletter-email-mailing-list.php:178) in wp-includes/class-wp-customize-manager.php on line 1624"
Commenting out the below in wp-includes/class-wp-customize-manager.php fixed the issue
/** function sanitize_hex_color( $color ) {
* if ( '' === $color )
* return '';
*
* // 3 or 6 hex digits, or the empty string.
* if ( preg_match('|^#([A-Fa-f0-9]{3}){1,2}$|', $color ) )
* return $color;
*}
*/
/**
Doing the same in plugins/newsletter-email-mailing-list/newsletter-email-mailing-list.php and leaving wp-includes/class-wp-customize-manager.php untouched led to this error
Call to undefined function sanitize_hex_color() in wp-content/plugins/newsletter-email-mailing-list/newsletter-email-mailing-list.php on line 72"
I wouldn’t call this a real solution as it requires I modify core files.
https://www.ads-software.com/plugins/newsletter-email-mailing-list/
]]>