Issues
-
Hey guys,
I’m seeing serious issues with the plugin. The upload process can take a drag and drop list of images but doesn’t lay them out in the gallery? Also on the front-end I’m getting
Warning: implode(): Invalid arguments passed in /home/site/public_html/wp-content/plugins/responsive-photo-gallery/responsive-gallery-short-code.php on line 46
-
Hello Ben,
Follow this step resolve this error-
Step 1: Open folder in your plugin directory -> Responsive-photo-gallery folder.
Step 2: Search file responsive-gallery-short-code.php in this folder and then open it in any editor.
Step 3: Find below code near line no. 27.
if(!function_exists('hex2rgb')) { 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); ?> <script> jQuery.browser = {}; (function () { jQuery.browser.msie = false; jQuery.browser.version = 0; if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) { jQuery.browser.msie = true; jQuery.browser.version = RegExp.$1; } })(); </script> <style> .modal-backdrop.in { display:none !important; } .b-link-fade .b-wrapper, .b-link-fade .b-top-line{ background: rgba(<?php echo $HoverColorRGB; ?>, <?php echo $WL_Hover_Color_Opacity; ?>); } .b-link-flow .b-wrapper, .b-link-flow .b-top-line{ background: rgba(<?php echo $HoverColorRGB; ?>, <?php echo $WL_Hover_Color_Opacity; ?>); } .b-link-stroke .b-top-line{ background: rgba(<?php echo $HoverColorRGB; ?>, <?php echo $WL_Hover_Color_Opacity; ?>); } .b-link-stroke .b-bottom-line{ background: rgba(<?php echo $HoverColorRGB; ?>, <?php echo $WL_Hover_Color_Opacity; ?>); } .b-link-box .b-top-line{ border: 16px solid rgba(<?php echo $HoverColorRGB; ?>, <?php echo $WL_Hover_Color_Opacity; ?>); } .b-link-box .b-bottom-line{ background: rgba(<?php echo $HoverColorRGB; ?>, <?php echo $WL_Hover_Color_Opacity; ?>); } .b-link-stripe .b-line{ background: rgba(<?php echo $HoverColorRGB; ?>, <?php echo $WL_Hover_Color_Opacity; ?>); } .b-link-apart-horisontal .b-top-line, .b-link-apart-horisontal .b-top-line-up{ background: rgba(<?php echo $HoverColorRGB; ?>, <?php echo $WL_Hover_Color_Opacity; ?>); } .b-link-apart-horisontal .b-bottom-line, .b-link-apart-horisontal .b-bottom-line-up{ background: rgba(<?php echo $HoverColorRGB; ?>, <?php echo $WL_Hover_Color_Opacity; ?>); } .b-link-apart-vertical .b-top-line, .b-link-apart-vertical .b-top-line-up{ background: rgba(<?php echo $HoverColorRGB; ?>, <?php echo $WL_Hover_Color_Opacity; ?>); } .b-link-apart-vertical .b-bottom-line, .b-link-apart-vertical .b-bottom-line-up{ background: rgba(<?php echo $HoverColorRGB; ?>, <?php echo $WL_Hover_Color_Opacity; ?>); } .b-link-diagonal .b-line{ background: rgba(<?php echo $HoverColorRGB; ?>, <?php echo $WL_Hover_Color_Opacity; ?>); } .b-wrapper{ font-family:<?php echo str_ireplace("+", " ", $WL_Font_Style); ?>; // real name pass here } </style>
Step 4: Replace above code with below code :
<script> jQuery.browser = {}; (function () { jQuery.browser.msie = false; jQuery.browser.version = 0; if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) { jQuery.browser.msie = true; jQuery.browser.version = RegExp.$1; } })(); </script> <style> .modal-backdrop.in { display:none !important; } .b-link-fade .b-wrapper, .b-link-fade .b-top-line{ background: <?php echo $WL_Hover_Color ?>; } .b-link-flow .b-wrapper, .b-link-flow .b-top-line{ background: <?php echo $WL_Hover_Color ?>; } .b-link-stroke .b-top-line{ background: <?php echo $WL_Hover_Color ?>; } .b-link-stroke .b-bottom-line{ background: <?php echo $WL_Hover_Color ?>; } .b-link-box .b-top-line{ border: 16px solid <?php echo $WL_Hover_Color ?>; } .b-link-box .b-bottom-line{ background: <?php echo $WL_Hover_Color ?>; } .b-link-stripe .b-line{ background: <?php echo $WL_Hover_Color ?>; } .b-link-apart-horisontal .b-top-line, .b-link-apart-horisontal .b-top-line-up{ background: <?php echo $WL_Hover_Color ?>; } .b-link-apart-horisontal .b-bottom-line, .b-link-apart-horisontal .b-bottom-line-up{ background: <?php echo $WL_Hover_Color ?>; } .b-link-apart-vertical .b-top-line, .b-link-apart-vertical .b-top-line-up{ background: <?php echo $WL_Hover_Color ?>; } .b-link-apart-vertical .b-bottom-line, .b-link-apart-vertical .b-bottom-line-up{ background: <?php echo $WL_Hover_Color ?>; } .b-link-diagonal .b-line{ background: <?php echo $WL_Hover_Color ?>; } .b-wrapper{ font-family:<?php echo str_ireplace("+", " ", $WL_Font_Style); ?>; // real name pass here } </style>
Final step : save file.
I am sure your problem will be resolve and more thing after these step go to plugin settings and save your settings .
Thanks
Thank you for your detailed reply! I’ll write back if there are any more issues.
ok Ben
- The topic ‘Issues’ is closed to new replies.