This topic has 6 replies, 4 voices, and was last updated 9 years, 4 months ago ago by Jack Richardson
I have come to update Visual Composer and again it has given me an error
“Fatal error: Cannot redeclare hex2rgb() (previously declared in /home/pressacd/public_html/wp-content/themes/woopress/framework/theme-functions.php:4990) in /home/pressacd/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php on line 1169”
Hello,
I’ve activated the plugin. Please check.
Regards,
Eva Kemp.
That’s great thank you very much Eva. Is there anywhere i can get information on how to do this myself?
This has happened on my last two updates, and if possible id like to rectify myself next time?
Thanks again
Jamie
Hello jamieburbidge,
it is small Visual Composer bug and can be fixed in two ways:
1) open file wp-content\plugins\js_composer\include\helpers\helpers.php and change line 1155 to function xyz_hex2rgb( $hex ) {
and line 131 in wp-content\plugins\js_composer\include\templates\shortcodes\vc_line_chart.php to:
$rgb = xyz_hex2rgb( $color );
2) temporary switch to default wordpress theme, activate plugin and switch back to Woopress.
Please note that this error will be fixed in next plugin releases.
Regards,
Stan Russell.
Thanks for the info Stan
Hello,
You are welcome.
Best regards,
Jack Richardson.
The issue related to '‘Fatal error: Cannot redeclare hex2rgb() (previously declared in /home/pre’' has been successfully resolved, and the topic is now closed for further responses