• Cresta Counter Pro user here. I’m getting a ton of error messages on my site as below. Looks like a php issue? Can someone help please

    Warning: Undefined array key "og_object" in /homepages/23/d617663636/htdocs/clickandbuilds/SilverMagazine/wp-content/plugins/cresta-social-share-counter-pro/class/cresta-share-gp-both.php on line 27
    
    Warning: Trying to access array offset on value of type null in /homepages/23/d617663636/htdocs/clickandbuilds/SilverMagazine/wp-content/plugins/cresta-social-share-counter-pro/class/cresta-share-gp-both.php on line 27
    
    Warning: Trying to access array offset on value of type null in /homepages/23/d617663636/htdocs/clickandbuilds/SilverMagazine/wp-content/plugins/cresta-social-share-counter-pro/class/cresta-share-gp-both.php on line 27
    
    Warning: Undefined array key "og_object" in /homepages/23/d617663636/htdocs/clickandbuilds/SilverMagazine/wp-content/plugins/cresta-social-share-counter-pro/class/cresta-share-gp-both.php on line 39
    
    Warning: Trying to access array offset on value of type null in /homepages/23/d617663636/htdocs/clickandbuilds/SilverMagazine/wp-content/plugins/cresta-social-share-counter-pro/class/cresta-share-gp-both.php on line 39
    
    Warning: Trying to access array offset on value of type null in /homepages/23/d617663636/htdocs/clickandbuilds/SilverMagazine/wp-content/plugins/cresta-social-share-counter-pro/class/cresta-share-gp-both.php on line 39

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author CrestaProject

    (@crestaproject)

    HI @samiamiam
    I fixed tha problem by going to Facebook Debugger https://developers.facebook.com/tools/debug/ and re-scan the page.
    This happens because Facebook had not yet crawled that specific page and therefore some variables were undefined.
    Two tips:
    1) Disable the error logs from your WordPress website, they are currently active (that’s why you saw those written on the page)
    2) If you have the same problem on other pages, go to the Facebook Debugger, enter the url of the page and click on “Debug”, then click on “Scrape Again” to allow Facebook to re-scan the page and collect all the data.

    Thread Starter samiamiam

    (@samiamiam)

    Thanks for response, will give it a go!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Array offset / php issues’ is closed to new replies.