WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jery61007
    Member
    Posted 8 months 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 8 months 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 8 months ago #

    Thank you Spyro.. the problem fixed.

  4. Spyroweb
    Member
    Posted 8 months ago #

    Glad to see that your problem solved.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.