Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter titi5895

    (@titi5895)

    Hi,

    Can anyone help with this?

    I use it in header.php to get the wpseo metadesc in $seo_desc :

    $object = new WPSEO_Frontend();
    $seo_desc = $object->metadesc( false );

    Thank you

    As the error said, the class isn’t meant to be instanced directly.
    So instead, you can use $object = WPSEO_Frontend::get_instance().

    Thread Starter titi5895

    (@titi5895)

    Problem solved !

    Thanks you so much for your reply.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal error with 1.7.3.1’ is closed to new replies.