• Cristiano

    (@iclapton)


    Hi Eric,

    First of all, thanks for your plugin! I have some problem to use it, so I need your help.
    I understand I need to define $wp_session = WP_Session::get_instance(); inside any session-dependent functions, like you said in other topic.

    I do it inside a function that add some session variables. It’s ok. I print this variables on the same page to test it, and it’s fine.

    On the second page, when I define again the $wp_session = WP_Session::get_instance(); I get the error F

    atal error: Class ‘WP_Session’ not found…

    . If I don’t define it, I can’t get the session variables.

    What I’m doing wrong?
    Thank you very much!

    https://www.ads-software.com/plugins/wp-session-manager/

Viewing 1 replies (of 1 total)
  • Plugin Author Eric Mann

    (@ericmann)

    I’d have to see your code, but my feeling would be that you’re trying to use WP_Session before the plugin’s been included and the class is available. Is your code hooked to a specific action or just firing within a page?

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error: Class 'WP_Session' not found…’ is closed to new replies.