Topic: error.log posting issue with Style.php | WP Masonry Layout

error.log posting issue with Style.php

Home Forums Pro Version error.log posting issue with Style.php

This topic contains 7 replies, has 3 voices, and was last updated by  Tomek Zagala 1 year, 9 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #5768 Reply

    Tomek

    Hi,

    Thank you for creating such a great plugin. I really enjoy using it on my website.

    I have a small issue, my error log is coming up with this:

    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 Style.php is as follows:

    <?php $mediaUrl = wmlp_layout_url(__FILE__); // Donot remove this ?>
    <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 you advise me on what I might need to change to fix this error?

    Much appreciated,

    Tomek

    #5769 Reply

    Tomek

    Here is a copy of the code taken from Firebug on the site:
    The page in question is: http://daxcentre.org/whats-on-2/

    .wmle_container .wmle_item{box-shadow:0px 0px 3px -1px #959595; margin:10px;-webkit-border-radius: 
    Warning: implode() [function.implode]: Invalid arguments passed in /home/daxcentr/public_html/wp-content/themes/reload/masonry-layout/fishtail/style.php on line 3
    ; 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;}
    #5790 Reply

    Masonry Guy
    Keymaster

    Hi Tomek,

    Really sorry about this log. It is a mistake from our side. I will fix this for upcoming release.

    Thanks

    #5900 Reply

    Tomek

    Hi, thanks for your reply. Any way I can bandaid this before your next release? Right now I have huge memory leaks and I am using the masonry plugin pretty extensively in my site.

    I posted this issue up on Stackoverflow and their advice was to: Check the syntax of implode function.Array should be passed as second parameter:

    Syntax: implode(separator,array)

    But I’m not entirely sure what they mean by this?

    All the best,
    Tomek

    #5919 Reply

    Masonry Guy
    Keymaster

    Hi Tomek,

    Please kindly send me your wp-admin details at info (aatt) masonrylayout (d00t) com. I will fix this in your setup.

    Thanks

    #5929 Reply

    Tomek Zagala
    Participant

    Thank you,

    I have sent an email over to you

    #5938 Reply

    Masonry Guy
    Keymaster

    Hi Tomek,

    Have fixed it. Please check.

    Thanks

    #5939 Reply

    Tomek Zagala
    Participant

    Thanks for fixing the issue, I really appreciate you going the extra effort!

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: error.log posting issue with Style.php
Your information: