Fatal error: MyStyle_SessionHandler::get()

Home Forums Bug Reports Fatal error: MyStyle_SessionHandler::get()

This topic contains 5 replies, has 3 voices, and was last updated by Sean P Sean P 2 years, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #8914
    Matt K
    Matt Krat
    Participant

    Here is the latest error I have been receiving. I’ve had to delete Mystyle to get website to work.

    Fatal error: MyStyle_SessionHandler::get(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "MyStyle_Session" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /home2/alaskasi/public_html/wp-content/plugins/mystyle-custom-product-designer/includes/class-mystyle-sessionhandler.php on line 44

    #8917
    Sean P
    Sean P
    Keymaster

    Hi Matt,

    I can help you debug.

    Note: I moved your post to a new thread since it’s a different error than the “access denied” SSL thread it was originally posted in.

    This is not an error we have in our Unit Testing, so it may be an environment related issue. Can you clarify what version of WP, WC, and MyStyle are you using at the moment? Can you link me to your website so I can take a look?

    FYI you shouldn’t need to “delete” mystyle if there is an issue with running it, you can simply disable the plugin in your WP Admin and it will not run in any way.

    Do you have a dev site we could use to debug?

    Are there any other plugins running that manipulate products in WooCommerce?

    Thanks

    – Sean

    #8921
    Sean P
    Sean P
    Keymaster

    Hi Mat,

    This is still not clear whether or not you have an issue in your environment causing this error or not. I can say we have tested the latest version of the plugin and are not able to reproduce the error in a standard wordpress / woocommerce environment.

    Here’s some more information from our dev team:

    The code indicated in the error message has to do with the MyStyle session that the plugin is using to track the user. To get the session, it first looks in php’s built in $_SESSION and if it’s not in there, it looks in the user’s cookies for a session id and rebuilds the session object by pulling session data from the db (using the session id).

    This specific error is:

    “The script tried to execute a method or access a property of an incomplete object”.

    We’ve never seen this error before. I’m guessing that it has to do with trying to build the object from the $_SESSION and that the data coming back from $_SESSION is somehow corrupt.

    One idea is to clear all session data in case for some reason there is corrupted session data from other plugins (you would most likely need ssh access to the server to do this).

    This post seems relevant: http://stackoverflow.com/questions/1055728/php-session-with-an-incomplete-object

    We’re still doing more investigation, but I may need access to your site to pinpoint the issue if it’s not with our plugin code.

    Thanks

    #9035
    Sean P
    Sean P
    Keymaster

    Hi Matt,

    Just circling back with you on this bug. Our high priority lead dev team is scheduled to work on it tomorrow.

    That said, were you able to figure out why your session data would be corrupted / modified? Seems that is the root cause of the issue as is related to your environment, that does not happen in our test environment or unit tests. I am curious if there is a plugin or theme or something that is known to corrupt the session in this way. Are you able to paste your WC diagnostic here so we can see your versions and plugins list?

    Thanks,

    – Sean

    #9206
    Joey S
    Joey Sommer
    Keymaster

    Matt,

    Hello, we have just released plugin version 1.6.3 with fixes that address your issue. Please update your plugin and let us know if you see any other issues or require more support. Thank you!

    #9216
    Sean P
    Sean P
    Keymaster

    Matt,

    Just a little more info on how to update your plugin-

    You should be able to go to “My Account” and then see your available downloads from your purchases. That link for the plugin should already be the new version, so just go ahead and download it from there to update.

    Note: Your WP-Admin will not show the typical automatic “update” link in your plugin list, you need to deactivate and remove / delete the old plugin from your plugin list, and then upload the new one from your download link in your account page.

    Let me know if you have any issues with this. I can also email you the zip file if you have any issues.

    Thanks,

    – Sean

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Fatal error: MyStyle_SessionHandler::get()’ is closed to new replies.

Personalization and Customization Platform