• session_start() expects parameter 1 to be array, string given in /home/madmaxon/public_html/wp-includes/plugin.php on line 525

    so i check all my plugin and the only one using session_start it this one

    function webdados_fb_open_graph_register_session(){
    if(!session_id())
    session_start();
    }
    function webdados_fb_open_graph_admin_init() {
    webdados_fb_open_graph_wpseo_notice_ignore();
    webdados_fb_open_graph_register_session();
    }
    add_action(‘admin_init’, ‘webdados_fb_open_graph_admin_init’);

    }

    so i tried multiple fix
    add_action(‘admin_init’, ‘webdados_fb_open_graph_admin_init’, 1);
    add_action(‘admin_init’, ‘webdados_fb_open_graph_admin_init’, 10, 1);
    add_action(‘admin_init’, array($this, ‘webdados_fb_open_graph_admin_init’));

    noting work so far i using php7 also ?? so how do i fix that things ??

    https://www.ads-software.com/plugins/wonderm00ns-simple-facebook-open-graph-tags/

Viewing 1 replies (of 1 total)
  • Thread Starter mxm.k.marquette

    (@mxmkmarquette)

    and in pluging line 525 it’s saying

    call_user_func_array($the_[‘function’], array_slice($args, 0, (int) $the_[‘accepted_args’]));

Viewing 1 replies (of 1 total)
  • The topic ‘PHP error’ is closed to new replies.