Fatal error: Cannot redeclare hex2rgb() (previously declared in /home/pre

This topic has 6 replies, 4 voices, and was last updated 9 years, 4 months ago ago by Jack Richardson

  • Avatar: tryingwebman
    tryingwebman
    Participant
    July 13, 2015 at 09:02

    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”

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    July 13, 2015 at 11:17

    Hello,

    I’ve activated the plugin. Please check.

    Regards,
    Eva Kemp.

    Avatar: tryingwebman
    tryingwebman
    Participant
    July 13, 2015 at 11:21

    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

    Avatar: stan
    Stan Russell
    Participant
    July 13, 2015 at 14:12

    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.

    Avatar: tryingwebman
    tryingwebman
    Participant
    July 13, 2015 at 17:13

    Thanks for the info Stan

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 13, 2015 at 19:01

    Hello,

    You are welcome.

    Best regards,
    Jack Richardson.

  • Viewing 6 results - 1 through 6 (of 6 total)

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

8theme customization service

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.