Widget Logic Visual
Warning (5 posts)

  1. Travis Smith
    Posted 3 years 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.


  2. Travis Smith
    Posted 3 years 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
    Posted 3 years ago #

    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.

  4. kalligator
    Posted 3 years 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
    Posted 3 years ago #

    Thanks. I will give it a go.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Widget Logic Visual
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic