Title: Array offset / php issues
Last modified: May 14, 2022

---

# Array offset / php issues

 *  [samiamiam](https://wordpress.org/support/users/samiamiam/)
 * (@samiamiam)
 * [4 years ago](https://wordpress.org/support/topic/array-offset-php-issues/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Farray-offset-php-issues%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [CrestaProject](https://wordpress.org/support/users/crestaproject/)
 * (@crestaproject)
 * [4 years ago](https://wordpress.org/support/topic/array-offset-php-issues/#post-15645238)
 * HI [@samiamiam](https://wordpress.org/support/users/samiamiam/)
    I fixed tha 
   problem by going to Facebook Debugger [https://developers.facebook.com/tools/debug/](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](https://wordpress.org/support/users/samiamiam/)
 * (@samiamiam)
 * [4 years ago](https://wordpress.org/support/topic/array-offset-php-issues/#post-15648674)
 * 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.

 * ![](https://ps.w.org/cresta-social-share-counter/assets/icon-256x256.png?rev=
   2467359)
 * [Cresta Social Share Counter](https://wordpress.org/plugins/cresta-social-share-counter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cresta-social-share-counter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cresta-social-share-counter/)
 * [Active Topics](https://wordpress.org/support/plugin/cresta-social-share-counter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cresta-social-share-counter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cresta-social-share-counter/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [samiamiam](https://wordpress.org/support/users/samiamiam/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/array-offset-php-issues/#post-15648674)
 * Status: not resolved