• Resolved stephanemartinw

    (@stephanemartinw)


    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)
  • Hi Stephane,

    What PHP version are you running?

    Kind Regards,
    Tim

    Thread Starter stephanemartinw

    (@stephanemartinw)

    Hi Tim,

    Oh you are right ! PHP 7.2.34
    I try with a 7.4 or +

    Thank you !

    Stephane

    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

    Hi Tim,

    I’ve upgraded to PHP 7.4.20, but the warning still displays.

    Thank you for your help 🙂
    Stephane

    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

    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

    Hi Stephane,

    Thank you. I will share this with the developer.

    Kind Regards,
    Tim

    @yehudah – useful debugging

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

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