Support » Plugins and Hacks » [Plugin: Widget Logic Visual] Warning

[Plugin: Widget Logic Visual] Warning

  • This warning:

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING in /nas/wp/www/staging/lordsnet/wp-content/plugins/widget-logic-visual/custom.php(50) : eval()’d code on line 1

    appears at the top of the page when using advanced widget logic. I am using a custom conditional function !is_shopp_page('catalog') from the shopp plugin.

    While it works, WP_DEBUG reveals this notice.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Changing line 48 of custom.php will fix this:
    $the_eval = "return ".stripslashes($cond_tag).";";

    While it didn’t through an error, if the $cond_tag contains a ;, you may want to remove it from $cond_tag anyways.

    I tried to implement this as a means to troubleshoot this problem:


    but line 48 was a blank line in custom.php. I tried replacing line 95 with that, but it did not do the trick, at least it did not solve the issue in referenced support request above that seemed like it might be related.

    Any help? Thanks.



    To make them go away completely you need to apply stripslashes() to all instances of get_option($widgetID.'-conditional-tags'); in the ajax.php and custom.php files, so they become: stripslashes(get_option($widgetID.'-conditional-tags'));

    @david revert your file to the original and then apply the above replacements.

    Thanks. I will give it a go.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Widget Logic Visual] Warning’ is closed to new replies.