Facebook Open Graph in theme-functions.php

This topic has 7 replies, 4 voices, and was last updated 8 years ago ago by Robert Hall

  • Avatar: Antoine14
    Antoine14
    Participant
    April 18, 2016 at 01:35

    I searched for this topic about the conflicting SEO and I tried following the instructions but was unable to fix the problem.

    After removing the suggested code,

    I try to login to my site and I get the following error:

    Warning: Cannot modify header information – headers already sent by (output started at …/wp-content/themes/woopress/framework/theme-functions.php:1) in /home/furnis7/public_html/2tique.com/wp-includes/pluggable.php on line 898

    Warning: Cannot modify header information – headers already sent by (output started at …/wp-content/themes/woopress/framework/theme-functions.php:1) in /home/furnis7/public_html/2tique.com/wp-includes/pluggable.php on line 899

    Warning: Cannot modify header information – headers already sent by (output started at …/wp-content/themes/woopress/framework/theme-functions.php:1) in /home/furnis7/public_html/2tique.com/wp-includes/pluggable.php on line 900

    Warning: Cannot modify header information – headers already sent by (output started at …/wp-content/themes/woopress/framework/theme-functions.php:1) in /home/furnis7/public_html/2tique.com/wp-includes/pluggable.php on line 1171

    Any suggestions would be greatly appreciated!

    6 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 18, 2016 at 08:17

    Hello,

    Please provide us with FTP and WP Dashboard credentials in private content.

    Best regards,
    Jack Richardson.

    Avatar: Antoine14
    Antoine14
    Participant
    April 18, 2016 at 19:14

    Hi Jack,

    I had to copy the original framework/theme-functions.php back because it gives a fatal error when logging in.

    I get the fatal error when I delete the echo lines separately and when I delete the entire Open Graph Section.

    Thank you for your help.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    April 18, 2016 at 19:43

    Hello,

    I’ve commented the code in theme-functions.php.

    Please check the site now.

    Regards,
    Eva Kemp.

    Avatar: Antoine14
    Antoine14
    Participant
    April 18, 2016 at 21:48

    Looks good!

    Can I comment out the og:image where the echo is too?

    Thank you.

    Avatar: Antoine14
    Antoine14
    Participant
    April 18, 2016 at 21:50

    Just tried it and it works.

    Thank you again!

    Avatar: Robert Hall
    Robert Hall
    Support staff
    April 19, 2016 at 07:14

    Hello,

    You’re welcome!

    Regards,
    Robert Hall

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘Facebook Open Graph in theme-functions.php’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.