WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic Visual
Warning (5 posts)

  1. Travis Smith
    Member
    Posted 1 year ago #

    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.

    http://wordpress.org/extend/plugins/widget-logic-visual/

  2. Travis Smith
    Member
    Posted 1 year ago #

    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.

  3. David Tierney
    Member
    Posted 1 year ago #

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

    http://wordpress.org/support/topic/plugin-widget-logic-visual-cannot-take-conditional-code?replies=3#post-3149949

    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.

  4. kalligator
    Member
    Posted 1 year ago #

    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.

  5. David Tierney
    Member
    Posted 1 year ago #

    Thanks. I will give it a go.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags