• Hi.

    After upgrading our site to the newest everything all of our JavaScript stopped working. This included form submission, colorbox/thickbox, and the “add to cart” in our wp-e-commerce shop.

    I know both WordPress 3.3.1 and wp-e-commerce 3.8.7.6.2 BYO quite a bit of JS which could be causing the conflict but everything started working again once we disabled Widget Logic.

    Additionally, our server logs suggested Widget Logic as the culprit:

    viewing this page: http://www.site.com/products-page/a-shopping-page/
    [Wed Feb 01 06:54:00 2012] [error] [client IP.ADDRESS.X] PHP Parse error:  syntax error, unexpected ')' in /u/home/site/wordpress-3.3.1/wp-content/plugins/widget-logic/widget_logic.php(169) : eval()'d code on line 1
    
    [Wed Feb 01 06:54:01 2012] [error] [client IP.ADDRESS.X] PHP Parse error:  syntax error, unexpected ')' in /u/home/site/wordpress-3.3.1/wp-content/plugins/widget-logic/widget_logic.php(169) : eval()'d code on line 1, referer: http://www.site.com/products-page/memberships/renewals/
    
    pushing the "add to cart" button:
    [Wed Feb 01 06:54:51 2012] [error] [client IP.ADDRESS.X] PHP Parse error:  syntax error, unexpected ')' in /u/home/site/wordpress-3.3.1/wp-content/plugins/widget-logic/widget_logic.php(169) : eval()'d code on line 1, referer: http://www.site.com/products-page/products-page/a-shopping-page/

    Cheers.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • there are 2 possibilities that i can think of, one is that your widget logic code uses functions that are not yet loaded (say functions defined in your theme’s functions.php. I’m working on a solution for that.

    the other is that your widget logic code has changed a little. the “unexpected ‘)’ ” message does make it sound like it’s worth checking your WL code for accidental changes, like an extra bracket somewhere.

    Thread Starter hausinteractive

    (@hausinteractive)

    Thanks alanft,

    Our developer reported that “…some of the code I was using was copied and pasted from some WP forums that may or may not have been written correctly to last through an update.”

    I think he’s going to remove it and run a few tests.

    Will report back when we know how they went.

    Cheers.

    Thread Starter hausinteractive

    (@hausinteractive)

    Here is the list of WL locations used. The ones at the bottom have line breaks between them for readability (both here as well as in the *actual* config used on the site, for the same reason).

    !is_page(‘membership’)
    is_page(‘photos’)
    is_page(‘mothering’)
    is_page(‘about’)
    is_page(‘faq’)
    is_page(‘community’)
    is_page(‘aboutjane’)
    is_page(‘philosophy’)
    is_page(‘trying’)
    is_page(‘blog’)
    is_page(‘membership’)
    is_page(‘materials’)
    is_page(‘contact’)
    is_page(‘thinking’)
    is_page(‘renew’)
    is_page(‘paypalbutton’)
    is_page(‘newsletter’)
    is_page(‘smc-questions’)
    is_page(‘about’)

    is_home()

    is_single() || is_home() || !is_(‘products-page’) || !($post->post_parent==’products-page’));

    is_page(‘information’) || is_page(‘registration’) || is_page(‘the-agenda’) || is_page(‘hotel-information’) || is_page(‘childcare-options’) || is_page(‘sponsorship-opportunities’)

    is_page(‘post-celebration’) || is_page(‘celebration-photos’)

    global $post; return (is_page(‘products-page’) || ($post->post_parent==”products-page”));

    is_home() || is_single() || is_archive()

    is_home() || is_single() || is_archive()

    is_single() || is_home() || !is_('products-page') || !($post->post_parent=='products-page'));

    has an extra bracket on the end if that’s any help

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Widget Logic] WL 0.5.1 breaks site JavaScript on WP 3.3.1’ is closed to new replies.