WordPress.org

Forums

WordPress SEO by Yoast
php warning on php 5.4 (5 posts)

  1. infolotnicze
    Member
    Posted 1 year ago #

    After upgrading to php 5.4 I get a warning like this:

    Creating default object from empty value in /xxxxxxxxxxxx/wp-content/plugins/wordpress-seo/frontend/class-frontend.php on line 390

    http://wordpress.org/plugins/wordpress-seo/

  2. henrymcdo
    Member
    Posted 1 year ago #

    Same problem here. Any solution?

  3. Pedro
    Member
    Posted 1 year ago #

    Hey folks,

    Same issue here on several sites. From what I could see all those sites also have Disqus Commenting System and Akismet plugins active.

    Are you also having these plugins? I'm trying to narrow down the cause for this error as it doesn't seem to be general.

    Thanks,
    Pedro

  4. henrymcdo
    Member
    Posted 1 year ago #

    Hi Pedro,

    I think I only had to update my worpdress, or it was a problem with some incopatibility with plugins. Try to update your wordpress and try to disable all plugins.

    Good luck!

  5. sjsworks
    Member
    Posted 1 year ago #

    This worked for me

    Line 406:
    $post->post_date = sprintf( "%04d-%02d-%02d 00:00:00", get_query_var( 'year' ), get_query_var( 'monthnum' ), get_query_var( 'day' ) );

    Change to
    if (is_object( $post)){{$post->post_date = sprintf( "%04d-%02d-%02d 00:00:00", get_query_var( 'year' ), get_query_var( 'monthnum' ), get_query_var( 'day' ) ); }

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress SEO by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.