WordPress.org

Forums

[resolved] Default Object error after upgrading to PHP 5.5 (4 posts)

  1. jery61007
    Member
    Posted 1 year ago #

    Now my site is throwing a default object from empty value error and I don't have any idea why this happens...

    According to the error report this is the line of code which causes the issue

    <a href="'. get_permalink($post-> ID = $id ) .'" title="'. get_the_title( $post->ID=$id ).'" >' ;

    would be great if someone could help me with this...

    Thanks

  2. Spyroweb
    Member
    Posted 1 year ago #

    hello,

    can you share the above two three lions of your code?

    try this

    <a href="' .get_permalink( $post->ID) .'">'.get_the_title($post->ID). '</a>';

  3. jery61007
    Member
    Posted 1 year ago #

    Thank you Spyro.. the problem fixed.

  4. Spyroweb
    Member
    Posted 1 year ago #

    Glad to see that your problem solved.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.