Support » Fixing WordPress » PHP Errors

  • Hi

    Found the following errors/warnings in wp-admin:

    E_NOTICE: Trying to get property of non-object in wp-includes\post.php on line 3094
    E_NOTICE: Trying to get property of non-object in wp-includes\link-template.php on line 36
    E_STRICT: Only variables should be passed by reference in wp-admin\includes\dashboard.php on line 783
    E_STRICT: call_user_func_array() expects parameter 1 to be a valid callback, non-static method WP_Feed_Cache::create() should not be called statically in wp-includes\SimplePieRegistry.php on line 215
    E_STRICT: Only variables should be passed by reference in wp-admin\includes\dashboard.php on line 902
    E_STRICT: Declaration of Walker_Nav_Menu_Edit::start_lvl() should be compatible with that of Walker_Nav_Menu::start_lvl() in wp-admin\includes\nav-menu.php on line 203
    E_STRICT: Declaration of Walker_Nav_Menu_Edit::end_lvl() should be compatible with that of Walker_Nav_Menu::end_lvl() in wp-admin\includes\nav-menu.php on line 203
    E_STRICT: Declaration of Walker_Nav_Menu_Edit::start_el() should be compatible with that of Walker_Nav_Menu::start_el() in wp-admin\includes\nav-menu.php on line 203
    E_STRICT: Declaration of Walker_Nav_Menu_Checklist::start_lvl() should be compatible with that of Walker_Nav_Menu::start_lvl() in wp-admin\includes\nav-menu.php on line 270
    E_STRICT: Declaration of Walker_Nav_Menu_Checklist::end_lvl() should be compatible with that of Walker_Nav_Menu::end_lvl() in wp-admin\includes\nav-menu.php on line 270
    E_STRICT: Declaration of Walker_Nav_Menu_Checklist::start_el() should be compatible with that of Walker_Nav_Menu::start_el() in wp-admin\includes\nav-menu.php on line 270
    E_STRICT: Only variables should be passed by reference in wp-admin\includes\import.php on line 113

    Don’t know where exactly to report it.

    Thanks,
    T

Viewing 7 replies - 1 through 7 (of 7 total)
  • E_STRICT tends to pop up on windows hosted severs a lot due to windows permission differences from traditional linux servers. Also another note is PHP 5.4.10 or higher likes to through this error as well ( Even on perfect PHP scripts).

    Are you using a plugin for menus?

    Nope was busy developing a plugin for logging errors. Navigated to Appearance/Menu and got the errors. My dev site is on IIS 7 so that’s prob why i got the errors. Will move the plugin over to an apache server and check the response.

    I am still personally looking for a solution as well. I received the errors when using the latest version of PHP 5.4 and then downgraded back to 5.4.10 to fix the problem. I am not sure if this is something that WordPress developers need to convert or if it is a default setting in php that is different than the older versions (lazy and have not look into the changelog for PHP yet).

    If you happen to run into a solution ( not a sever hack or change ) then please post back here. I would love to see what you come up with.

    Cool will do. Thanks

    Just checked the IIS server and its still running php 5.3.6. Going to upgrade it to 5.4 now and check what happens.

    Still get the same errors on 5.4…

    Checked the change log on 5.4 and E_ALL was changed to include E_STRICT, I then added a check to see if the php version is lower than 5.4 to not redefine E_STRICT as it is already included in E_ALL.

    Checked around the web and found this post on Stack Exchange:

    http://stackoverflow.com/questions/9734422/errors-when-trying-to-integrate-wordpress-on-my-existing-website

    more or less the same errors I get…

    I checked in Apache and the same errors occur with 1 more occuring on Apache:

    E_STRICT: is_a(): Deprecated. Please use the instanceof operator in wp-admin/includes/screen.php on line 391

    Looks like i have to disable E_STRICT for now…

    Disabled E_STRICT…

    Still getting the below notices… are these valid or should i also ignore them…

    E_NOTICE: Trying to get property of non-object in wp-includes\post.php on line 3094
    E_NOTICE: Trying to get property of non-object in wp-includes\link-template.php on line 36
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Errors’ is closed to new replies.