• Resolved therealgilles

    (@chamois_blanc)


    Hello,

    I am using this plugin along with the WP Session Manager plugin on my site. It appears that this plugin is calling session_start() (from _sess_init) before all the plugins have been loaded, which is an issue for the WP Session Manager plugin.

    Would it be possible to delay calling _sess_init until the plugins_loaded action is triggered?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @chamois_blanc

    Hope all is well!

    I’ve tested from my end the WP Session Manager plugin along with the Custom Sidebars and can’t see any issues.

    Would you please run a test for a conflict? Please, temporary deactivate all the plugins besides Custom Sidebars and WP Session Manager and see if there are any issues.

    If all is well, start activating one plugin at a time till you find the one that causes this.

    You can also trying this filter add_filter( 'wdev_lib-use_session', '__return_false' ); whch will stop Custom Sidebarsa using sessions.

    The filter needs to be added in mu-plugin.

    Hope this helps!

    Cheers,
    Nastia

    Thread Starter therealgilles

    (@chamois_blanc)

    I had added the WDEV_USE_SESSION define to wp-config.php and that seemed to work. Adding the filter to my functions.php seems to work too.

    I cannot run a test conflict right now. My site is live. I would have to replicate the site and I do not have the time right now.

    The WP Session Manager developer told me that plugins should avoid calling session_start() until the plugins_loaded action is called. Is that true for the Custom Sidebars plugin?

    Hello @chamois_blanc,

    hope you’re doing well and don’t mind me chip in here! ??

    I’m glad that you’ve managed to sort this out. As we’re still unable to replicate that in a couple of testing sites of ours though, it’d be really helpful if you could proceed with the conflict test at some point and let us know your results.

    Also our developers checked the session_start() and it seems that it loads after the plugins_loaded action, so this shouldn’t be the source of this case.

    Thank you,
    Dimitris

    Hello @chamois_blanc,

    it’s been a while since we’ve heard back from you so I’ll mark this as resolved. Feel free to post back any updates and we can re-open it. ??

    Thank you,
    Dimitris

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with session_start() call’ is closed to new replies.