Title: Undefined array key error in gn-publisher.php
Last modified: November 23, 2023

---

# Undefined array key error in gn-publisher.php

 *  Resolved [mahmuthizal](https://wordpress.org/support/users/mahmuthizal/)
 * (@mahmuthizal)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/undefined-array-key-error-in-gn-publisher-php/)
 * Hello, I am using the gn-publisher plugin on my website, but I get the following
   error message:
 *     ```wp-block-code
       AH01071: Got error 'PHP message: PHP Warning: Undefined array key "gnpub_google_rev_snippet" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/gn-publisher/gn-publisher.php on line 312'
       ```
   
 * This error appears on every page of my website, and it affects the performance
   and loading time. I have tried to deactivate and reactivate the plugin, but the
   error persists. I have also checked the plugin settings, but I could not find
   any option related to the “gnpub_google_rev_snippet” array key. I am using the
   latest version of WordPress and the plugin. Could you please help me fix this
   issue? Thank you.

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

 *  [joekuzma](https://wordpress.org/support/users/joekuzma/)
 * (@joekuzma)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/undefined-array-key-error-in-gn-publisher-php/#post-17225677)
 * I am seeing this exact same error, I’ve had to roll back to the prior version
   to get rid of it.
 *  Plugin Author [GNPublisher](https://wordpress.org/support/users/gnpublisher/)
 * (@gnpublisher)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/undefined-array-key-error-in-gn-publisher-php/#post-17226129)
 * Hi, We apologize for the inconvenience caused. We’ve released a new update, so
   kindly update the plugin with the new **version 1.5.11.1**, clear the cache from
   everywhere and try it. If the issue remains the same please let us know.
    -  This reply was modified 2 years, 6 months ago by [GNPublisher](https://wordpress.org/support/users/gnpublisher/).
 *  [eperezf](https://wordpress.org/support/users/eperezf/)
 * (@eperezf)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/undefined-array-key-error-in-gn-publisher-php/#post-17233153)
 * Hello!
 * Error is still happening, now on lines 229, 243 and 245:
 *     ```wp-block-code
       [27-Nov-2023 15:55:33 UTC] PHP Warning:  Undefined array key 1 in /wp-content/plugins/gn-publisher/controllers/class-gnpub-feed.php on line 229
       [27-Nov-2023 15:55:33 UTC] PHP Warning:  Undefined array key 0 in /wp-content/plugins/gn-publisher/controllers/class-gnpub-feed.php on line 243
       [27-Nov-2023 15:55:33 UTC] PHP Warning:  Undefined array key 0 in /wp-content/plugins/gn-publisher/controllers/class-gnpub-feed.php on line 245
       ```
   
 * WP version 6.43.1, plugin version 1.5.11.1
 *  Plugin Author [GNPublisher](https://wordpress.org/support/users/gnpublisher/)
 * (@gnpublisher)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/undefined-array-key-error-in-gn-publisher-php/#post-17235870)
 * @[eperezf](https://wordpress.org/support/users/eperezf/): Hi, thank you for bringing
   this to our attention and we apologize for the inconvenience caused. We’ve raised
   a GitHub ticket for the mentioned issue and we are working on fixing it. We kindly
   request your patience in the meantime.
 * Here is the ticket: [https://github.com/ahmedkaludi/gn-publisher/issues/83](https://github.com/ahmedkaludi/gn-publisher/issues/83)
 *  Plugin Author [GNPublisher](https://wordpress.org/support/users/gnpublisher/)
 * (@gnpublisher)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/undefined-array-key-error-in-gn-publisher-php/#post-17301517)
 * Hi, Hope you’re doing well. We’ve released a new update, so kindly update the
   plugin with the new **version 1.5.12, **clear the cache once and try it. Please
   feel free to reach out to us if you have any concerns

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

The topic ‘Undefined array key error in gn-publisher.php’ is closed to new replies.

 * ![](https://ps.w.org/gn-publisher/assets/icon-256x256.png?rev=2782289)
 * [GN Publisher: Google News Compatible RSS Feeds](https://wordpress.org/plugins/gn-publisher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gn-publisher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gn-publisher/)
 * [Active Topics](https://wordpress.org/support/plugin/gn-publisher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gn-publisher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gn-publisher/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [GNPublisher](https://wordpress.org/support/users/gnpublisher/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/undefined-array-key-error-in-gn-publisher-php/#post-17301517)
 * Status: resolved