WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Errors after php 5.3.13 update (7 posts)

  1. beichert
    Member
    Posted 2 years ago #

    my site host updated php to 5.3.13 last night. this created a serious conflict with widget logic. i was running 0.51 at the time. it was throwing errors all over the place. i was even unable to login to the wp admin interface as a result.

    i used ftp to disable widget logic. got into the wp admin and updated widget logic to 0.52. this did not help.

    i inadvertently discovered that the problem was not occurring on another site which was using widget logic 0.47, so i installed that version and it resolved the parsing errors.

    however, something curious seems to have occurred: if widget logic is used to place a widget on any given page, wordpress is rendering that widget's location as having "content" on every page. (it is not displaying the widget's content, but is "filling" the widget's location in with blank space and styling it as though it has content.)

    any thoughts? my two concerns are that i may run into issues down the line by running 0.47. also, the aesthetic consequences of the ghost content thing are not pretty. i would appreciate any help or fixes.

    best,
    benjamin

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

  2. alanft
    Member
    Plugin Author

    Posted 2 years ago #

    I don't suppose you saved any of the error text that was coming up? I'm not aware of any recent major changes in PHP 5, and there's nothing really unusual in the WL code either, so I'll have to just try and get my hands on that version of PHP and try it. (I'll have to check the version of PHP my host has - it's 5 something of course.)

    Re 0.47, the only major change going back was that it didn't properly filter out the widgets internally to some WP functions (eg if no widgets display, it doesn't say the sidebar is empty and the theme should show the default widgets), but it definitely doesn't render the HTML for any part of the widget either.

    Check the HTML, point me at the site, and I'll see what I can do. But I'd really like to see what's up with PHP5 there. Especially in case other people start to see this :-(

  3. alanft
    Member
    Plugin Author

    Posted 2 years ago #

    i'm on 5.2 (.17) and OK. Anyone out there on 5.3 or 5.4 (.anything) and OK?

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    I'm running PHP 5.3.3 locally on a 3.4.1 install with debug on and debug-logging on. Just installed the plugin & activated it. No visible errors on activation but found the following in the debug-log file:

    [18-Jul-2012 19:26:29] PHP Notice: Undefined index: widget_logic-options-filter in E:\data\data3\server\wordpress\wp-content\plugins\widget-logic\widget_logic.php on line 171
    [18-Jul-2012 19:26:29] PHP Notice: Undefined index: widget_logic-options-wp_reset_query in E:\data\data3\server\wordpress\wp-content\plugins\widget-logic\widget_logic.php on line 176
    [18-Jul-2012 19:26:29] PHP Notice: Undefined index: widget_logic-options-load_point in E:\data\data3\server\wordpress\wp-content\plugins\widget-logic\widget_logic.php on line 184
    [18-Jul-2012 19:26:29] PHP Notice: Undefined index: widget_logic-options-load_point in E:\data\data3\server\wordpress\wp-content\plugins\widget-logic\widget_logic.php on line 184
    [18-Jul-2012 19:26:29] PHP Notice: Undefined index: widget_logic-options-load_point in E:\data\data3\server\wordpress\wp-content\plugins\widget-logic\widget_logic.php on line 184
    [18-Jul-2012 19:26:29] PHP Notice: Undefined index: widget_logic-options-load_point in E:\data\data3\server\wordpress\wp-content\plugins\widget-logic\widget_logic.php on line 184
    [18-Jul-2012 19:27:10] PHP Notice: Trying to get property of non-object in E:\data\data3\server\wordpress\wp-content\plugins\widget-logic\widget_logic.php on line 52
    [18-Jul-2012 19:27:43] PHP Notice: Trying to get property of non-object in E:\data\data3\server\wordpress\wp-content\plugins\widget-logic\widget_logic.php on line 52

    Added a widget using the is_home() conditional which worked fine. Still no visible errors and nothing extra in the debug.log

    HTH

  5. alanft
    Member
    Plugin Author

    Posted 2 years ago #

    brilliant, thank you so much esmi!

    beichert - do those errors look familiar? it might be your update has activated some 'strict' setting in your PHP?

    EITHER way, I'm not letting myself off the hook. I can fix all those I think - a little extra work on the 0.54

  6. beichert
    Member
    Posted 2 years ago #

    Yep, those look like the errors i was getting.

  7. alanft
    Member
    Plugin Author

    Posted 2 years ago #

    cool. well I can get to work fixing that for you to try. in the short term you may have some control over your PHP hosts's error_reporting setting

    http://php.net/manual/en/errorfunc.configuration.php

    so if you have upgraded from 4 to 5 the new error level E_STRICT (along with my woeful coding) is what is throwing these errors.

    you can set this a number of ways (php.ini files, and so on). If this is beyond you, don't worry - I will get on the code fix soon.

    Thanks all

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic