Title: Undefined array
Last modified: September 1, 2023

---

# Undefined array

 *  [kaoslink](https://wordpress.org/support/users/kaoslink/)
 * (@kaoslink)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/undefined-array-3/)
 * Getting this error in the debug log:
 * PHP Warning: Undefined array key “customer-logout” in /var/www/vhosts/httpdocs/
   wp-content/plugins/page-restrict-for-woocommerce/includes/front/class-wc-my-account.
   php on line 49
 * How to fix?

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

 *  Plugin Author [Vlado Grcic](https://wordpress.org/support/users/vladogrcic/)
 * (@vladogrcic)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/undefined-array-3/#post-17091731)
 * I’ll check and fix when I can. Are you experiencing any issues?
 *  Thread Starter [kaoslink](https://wordpress.org/support/users/kaoslink/)
 * (@kaoslink)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/undefined-array-3/#post-17336400)
 * Still getting this error, any chance on a fix anytime soon?
 *  Thread Starter [kaoslink](https://wordpress.org/support/users/kaoslink/)
 * (@kaoslink)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/undefined-array-3/#post-17338986)
 * And yes i get a 502 server error everytime I make a change to a page or a post
   when the plugin is activated…
 *  Plugin Author [Vlado Grcic](https://wordpress.org/support/users/vladogrcic/)
 * (@vladogrcic)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/undefined-array-3/#post-17340772)
 * Could you check you debug.log for any more issues?
 *  Thread Starter [kaoslink](https://wordpress.org/support/users/kaoslink/)
 * (@kaoslink)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/undefined-array-3/#post-17346898)
 * [16-Jan-2024 10:26:48 UTC] PHP Warning: Undefined array key “customer-logout”
   in /var/www/vhosts/httpdocs/wp-content/plugins/page-restrict-for-woocommerce/
   includes/front/class-wc-my-account.php on line 49
 *  Thread Starter [kaoslink](https://wordpress.org/support/users/kaoslink/)
 * (@kaoslink)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-3/#post-17473176)
 * Any chance of a fix?? It’s only been 6 months now!!!
 *  Plugin Author [Vlado Grcic](https://wordpress.org/support/users/vladogrcic/)
 * (@vladogrcic)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-3/#post-17473301)
 * Sorry, I didn’t see your last message so I didn’t remember to check. Your debug.
   log doesn’t contain any useful logs so I can’t fix it and the one it does show
   wouldn’t cause this. Besides I wasn’t able to recreate it either way. Please 
   try to switch theme to a default one and try to disable one by one plugin since
   one of them might be interfering with it. Thats what I can think of right now.

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

The topic ‘Undefined array’ is closed to new replies.

 * ![](https://ps.w.org/page-restrict-for-woocommerce/assets/icon.svg?rev=2274512)
 * [Page Restrict for WooCommerce](https://wordpress.org/plugins/page-restrict-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-restrict-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-restrict-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/page-restrict-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-restrict-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-restrict-for-woocommerce/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Vlado Grcic](https://wordpress.org/support/users/vladogrcic/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-3/#post-17473301)
 * Status: not resolved