wordpress - How to fix this invalid php code -
in error.log i'm seeing appear multiple times before suffer serious memory leaks
php warning: implode() [function.implode]: invalid arguments passed in /home/daxcentr/public_html/wp-content/themes/reload/masonry-layout/fishtail/style.php on line 3
the code style.php here:
<?php $mediaurl = wmlp_layout_url(__file__); // donot remove ?> <style> .wmle_container .wmle_item{box-shadow:<?php echo implode($layoutsettings['box_shadow'],' '); ?>; margin:10px;-webkit-border-radius: <?php echo implode($layoutsettings['box_border'],' '); ?>; border-radius: <?php echo implode($layoutsettings['border_radius'],' '); ?>;} .wmle_container .wmle_item .wpme_image a{ display:block; padding:10px;} .wmle_container .wmle_item .wpme_image img{box-shadow:none !important; display:block; margin:auto;-webkit-border-radius: <?php echo $layoutsettings['border_radius'][0]; ?> <?php echo $layoutsettings['border_radius'][1]; ?> 0 0; border-radius: <?php echo $layoutsettings['border_radius'][0]; ?> <?php echo $layoutsettings['border_radius'][1]; ?> 0 0;} .wmle_container .wmle_item .wmle_post_title{ font-size:<?php echo $layoutsettings['title_font_size']; ?>;color:<?php echo $layoutsettings['title_font_color']; ?>; line-height:1.3; padding:10px 10px 10px 10px; font-weight:bold; background:<?php echo $layoutsettings['title_bg_color']; ?>;} .wmle_container .wmle_item:hover .wmle_post_title{ background:<?php echo $layoutsettings['title_bg_hover_color']; ?>; color:<?php echo $layoutsettings['title_font_hover_color']; ?>;} .wmle_container .wmle_item .wmle_post_title a{ color:inherit; text-decoration:none;} .wmle_container .wmle_item .wmle_post_meta{background:<?php echo $layoutsettings['social_bg_color']; ?>; padding:7px 10px 7px 10px; font-size:12px; border-top:<?php echo implode($layoutsettings['social_bar_separator'],' '); ?>;color:<?php echo $layoutsettings['social_font_color']; ?>;} .wmle_container .wmle_item .wmle_post_meta a{ text-decoration:none; color:inherit;} .wmle_container .wmle_item .wmle_social_share{display:block; float:left; height:20px;} .wmle_container .wmle_item .wmle_comment_count{display:block; float:right;} .wmle_container .wmle_item .wmle_social_share a{display:inline-block; width:20px; height:20px; overflow:hidden; text-indent:-200px; background-repeat:no-repeat; background-position:center;} .wmle_container .wmle_item .wmle_social_share a.fb{background-image:url(<?php echo $mediaurl ?>/facebook.png);} .wmle_container .wmle_item .wmle_social_share a.tw{background-image:url(<?php echo $mediaurl ?>/twitter.png);} .wmle_container .wmle_item .wmle_social_share a.in{background-image:url(<?php echo $mediaurl ?>/linkedin.png);} .wmle_container .wmle_item .wmle_social_share a.pi{background-image:url(<?php echo $mediaurl ?>/pinterest.png);} .wmle_container .wmle_item .wmle_social_share a.gp{background-image:url(<?php echo $mediaurl ?>/gplus.png);} .wmle_loadmore .wmle_loadmore_btn{ display:inline-block; padding:5px 15px;border:1px solid #e5e5e5; margin:5px;-webkit-box-shadow: 0px 0px 3px -1px #959595;box-shadow: 0px 0px 3px -1px #959595; color:#454545; text-decoration:none;-webkit-border-radius: 4px;border-radius: 4px;} </style>
can tell me need change on line 3 fix issue?
i took page using firebug
.wmle_container .wmle_item{box-shadow:0px 0px 3px -1px #959595; margin:10px;-webkit-border-radius: <br /> <b>warning</b>: implode() [<a href='function.implode'>function.implode</a>]: invalid arguments passed in <b>/home/daxcentr/public_html/wp-content/themes/reload/masonry-layout/fishtail/style.php</b> on line <b>3</b><br /> ; border-radius: 4px 4px 4px 4px;} .wmle_container .wmle_item .wpme_image a{ display:block; padding:10px;} .wmle_container .wmle_item .wpme_image img{box-shadow:none !important; display:block; margin:auto;-webkit-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0;}
check syntax of implode function.array
should passed second parameter:
syntax: implode(separator,array)
Comments
Post a Comment