• Resolved dan_1

    (@dan_1)


    Thoughts on the below message? Happens only when WP ecommerce plugin is active. If I deactivate and delete the plugin, the error goes away. Thanks!

    Fatal error: WPSC_Countries::get_countries(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "WPSC_Data_Map" 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 /home/content/p3nexnas05_data03/62/2100362/html/wp-content/plugins/wp-e-commerce/wpsc-includes/wpsc-countries.class.php on line 462

    Fatal error: WPSC_Countries::_dirty(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "WPSC_Data_Map" 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 /home/content/p3nexnas05_data03/62/2100362/html/wp-content/plugins/wp-e-commerce/wpsc-includes/wpsc-countries.class.php on line 1142

    https://www.ads-software.com/plugins/wp-e-commerce/

Viewing 15 replies - 16 through 30 (of 82 total)
  • thanks paul.

    i am very sure that there is an issue in here somewhere, but without being able to reproduce it in my test environment we’ll have to do some gentle live testing.

    For reference I have submitted the change I suggested above to the product code repository for community review

    https://github.com/wp-e-commerce/WP-e-Commerce/pull/1828

    jeff

    I am having exactly the same problem as Paul (and had it 2 months ago for a while). I have tried everything suggested above, plus some voodoo, and maybe have it under control, although I’m not sure exactly which thing may have cured it. But I would appreciate learning as much as possible as to how to keep from having this issue crop up again. Seems to come up out of the blue, and is a frustrating time-suck.

    Thanks for your helpful work.
    Paula

    Actually, no. It only seems to be fixed for a few minutes. I deactivated the WPeC plug-in and that allows the remainder of the site to be seen, at least. But it would be nice to sell some tickets…

    did you try the suggested code change?

    Yes, I did. (And, let me tell you that it took a little nerve because I am not that kind of person. Just a WP user who needs the darn thing to work, not someone who wants to look under the hood.)

    It was after I had tried the code change (and pretty much everything else in this thread) to no avail that I threw in the towel and pulled the plug on the plugin. But I still do need to get it to work, or our little non-profit is dead in the water.

    Thanks…

    Just to acknowledge this little gremlin started to occur on my website intermittently today. Website has been in place for a few years now, why today? rjsbeefarm.com
    Clearing caches and all the normal high level non expert stuff had no effect. site loads fine one time, then 2 minutes later the nasty little fatal error messages. Not sure I am confident to attempt the code changes specified above.

    Ok, I WAS able to find and make the code change above, the problem still exists, BUT with 2 browser windows open, one on the WordPress admin panel, and the other one the webpage, when I get the fatal error (roughly every 3rd try) I can hit F5 to refresh as many times as I want and always get the fatal error. BUT if I flip to the admin panel and flush the cache and flip back to the browser window on my website and hit f5, it loads every single time!. I’ve now replicated it nearly 20-25 times. Does this piece of information help anyone more knowledgeable?

    I failed to say, that only fixes it for a few minutes. Chrome SEEMS to encounter the error less than IE, that may just be my perception.

    Plugin Author Justin Sainton

    (@justinsainton)

    @timjea and @plymouthcraft,

    Would you mind emailing me privately so we could work with you, directly on your site, to see about getting this issue resolved? You can email me at justinsainton at gmail dot com. I’l loop Jeff into that as well, as he’s primarily responsible for this bit of code.

    Thanks guys!

    justin, what we need to look for first is some bit of code, Either in WP-Commerce or somewhere else that is including the countries class php file directly, without including the classes it depends on.

    The error message is very descriptive in this regard, a class that was serialized is trying to be unserialized, before the class definition does this. I have not been able to find any way for this to happen inside of the product. And there isn’t any other explanation for the issue. If we can have some access to a site that has the issue perhaps we can identify the cause.

    jeff

    timjea, in your test above what are you using the “flush the cache”

    @timjea

    Justin and I spent some hours on your site trying to find the cause of the issue. There are definitely some configuration issues with your site that you should think about addressing. But we haven’t been able to understand if any of those issues are causing the fatal error you are seeing. There may be some correlation, but we can’t say definitively either way.

    This morning an updated version of the free WP-eCommerce site checkup plugin was installed and activated. You can see the report that this plugin created from the tools menu or via this link:

    https://rjsbeefarm.com/wp-admin/tools.php?page=snappy_site#

    If you need help with any of the warnings or errors feel free to reach out.

    jeff

    @plymouthcraft & @timjea are you both using GoDaddy shared hosting plans?

    @jeff Pye Brook,

    I am still have issues with this could really use the help… any chance you can connect into my backend and see what is going on? I can’t really promote my business until I stop getting all these error messages… another issue I am having is that even though in the backend it says I have inventory of an item, on the front end it says sold out for one of my items… please help!!

    @squbrossi my contact information is on my website https://www.pyebrook.com. There is also a version of the site checkup plugin there that you can try to get a report on some of the potential site configuration issues.

    what is your site url? where are you hosted?

    – jeff

Viewing 15 replies - 16 through 30 (of 82 total)
  • The topic ‘Fatal Error WPSC_Countries’ is closed to new replies.