Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author weblizar

    (@weblizar)

    Hi inickqc,

    I think you Inserted shortcode [WRG] more than once in your page.

    Can you share me your site url?

    Thanks.

    Thread Starter inickqc

    (@inickqc)

    Plugin Author weblizar

    (@weblizar)

    Hi inickqc,

    You are right hex2rgb function is already defined in your theme folder in ait-functions.php file.

    To resolve this error please follow these steps:

    Step-1: open your plugin directory

    Step-2: Open responsive-photo-gallery folder

    Step-3: Open file responsive-gallery-short-code.php in any editor

    Step-4: find these code at near line no. 28

    function hex2rgb($hex) {
           $hex = str_replace("#", "", $hex);
    
           if(strlen($hex) == 3) {
              $r = hexdec(substr($hex,0,1).substr($hex,0,1));
              $g = hexdec(substr($hex,1,1).substr($hex,1,1));
              $b = hexdec(substr($hex,2,1).substr($hex,2,1));
           } else {
              $r = hexdec(substr($hex,0,2));
              $g = hexdec(substr($hex,2,2));
              $b = hexdec(substr($hex,4,2));
           }
           $rgb = array($r, $g, $b);
    
           return $rgb; // returns an array with the rgb values
        }
        $RGB = hex2rgb($WL_Hover_Color);
        $HoverColorRGB = implode(", ", $RGB);
    </blockquote>
    Step-5 replace above code with this code
    
    <blockquote>function weblizarhex2rgb($hex) {
           $hex = str_replace("#", "", $hex);
    
           if(strlen($hex) == 3) {
              $r = hexdec(substr($hex,0,1).substr($hex,0,1));
              $g = hexdec(substr($hex,1,1).substr($hex,1,1));
              $b = hexdec(substr($hex,2,1).substr($hex,2,1));
           } else {
              $r = hexdec(substr($hex,0,2));
              $g = hexdec(substr($hex,2,2));
              $b = hexdec(substr($hex,4,2));
           }
           $rgb = array($r, $g, $b);
    
           return $rgb; // returns an array with the rgb values
        }
        $RGB = weblizarhex2rgb($WL_Hover_Color);
        $HoverColorRGB = implode(", ", $RGB);

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

    After following these steps i am sure your problem will be resolved.

    Thanks

    Thread Starter inickqc

    (@inickqc)

    And just for that i will buy the pro version.

    tanxs alots!

    Plugin Author weblizar

    (@weblizar)

    Thanks so much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error’ is closed to new replies.