Title: PHP warning
Last modified: July 15, 2021

---

# PHP warning

 *  Resolved [stephanemartinw](https://wordpress.org/support/users/stephanemartinw/)
 * (@stephanemartinw)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-299/)
 * Hi,
 * After installing and activating the latest version of Post SMTP on a WP 5.6.4,
   I’ve this PHP Warning displayed :
 * Warning: Cannot add element to the array as the next element is already occupied
   in /home/www/vegoresto.fr/public/wp/wp-admin/includes/plugin.php on line 1349
 * Can you help ?
    Thank you in advance for your support
 * Stephane

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

 *  [Tim](https://wordpress.org/support/users/tneville/)
 * (@tneville)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-299/#post-14664179)
 * Hi Stephane,
 * What PHP version are you running?
 * Kind Regards,
    Tim
 *  Thread Starter [stephanemartinw](https://wordpress.org/support/users/stephanemartinw/)
 * (@stephanemartinw)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-299/#post-14664966)
 * Hi Tim,
 * Oh you are right ! PHP 7.2.34
    I try with a 7.4 or +
 * Thank you !
 * Stephane
 *  [Tim](https://wordpress.org/support/users/tneville/)
 * (@tneville)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-299/#post-14670350)
 * Hi Stephane,
 * Yes, PHP 7.3+ seems stable enough – oddly enough I have seen a few issues on 
   PHP 7.4 but never had these with my own servers. Weird!
 * Let us know if you hit any further problems. 🙂
 * Kind Regards,
    Tim
 *  [stephanema](https://wordpress.org/support/users/stephanema/)
 * (@stephanema)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-299/#post-14675723)
 * Hi Tim,
 * I’ve upgraded to PHP 7.4.20, but the warning still displays.
 * Thank you for your help 🙂
    Stephane
 *  [stephanema](https://wordpress.org/support/users/stephanema/)
 * (@stephanema)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-299/#post-14678799)
 * Hi Tim,
 * I’ve just found out that the PHP warning is displayed when the plugin WP Fastest
   Cache is activated.
 * Hope it helps 🙂
 * Have a nice day,
 * Stephane
 *  [stephanema](https://wordpress.org/support/users/stephanema/)
 * (@stephanema)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-299/#post-14679025)
 * Hi again Tim,
 * Here is the detailed exception :
 *     ```
       ErrorException: Warning: Cannot add element to the array as the next element is already occupied
         File "/includes/plugin.php", line 1349, in add_menu_page
           $menu[] = $new_menu;
         File "/home/www/vor.l214.in/public/wp-content/plugins/post-smtp/Postman/PostmanViewController.php", line 115, in PostmanViewController::generateDefaultContent
           $mainPostmanSettingsPage = add_menu_page( $pageTitle, $pluginName, Postman::MANAGE_POSTMAN_CAPABILITY_NAME, $uniqueId, $pageOptions );
         File "/home/www/vor.l214.in/public/wp/wp-includes/class-wp-hook.php", line 287, in WP_Hook::apply_filters
           $value = call_user_func_array( $the_['function'], $args );
         File "/home/www/vor.l214.in/public/wp/wp-includes/class-wp-hook.php", line 311, in WP_Hook::do_action
           $this->apply_filters( '', $args );
         File "/home/www/vor.l214.in/public/wp/wp-includes/plugin.php", line 484, in do_action
           $wp_filter[ $tag ]->do_action( $arg );
       ...
       (4 additional frame(s) were not displayed)
       ```
   
 * Thank you !
 * Stephane
 *  [Tim](https://wordpress.org/support/users/tneville/)
 * (@tneville)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-299/#post-14761078)
 * Hi Stephane,
 * Thank you. I will share this with the developer.
 * Kind Regards,
    Tim
 *  [Tim](https://wordpress.org/support/users/tneville/)
 * (@tneville)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-299/#post-14761081)
 * [@yehudah](https://wordpress.org/support/users/yehudah/) – useful debugging

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

The topic ‘PHP warning’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Tim](https://wordpress.org/support/users/tneville/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-299/#post-14761081)
 * Status: resolved