WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
[resolved] Fatal Error WPSC_Countries (11 posts)

  1. dan_1
    Member
    Posted 9 months ago #

    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://wordpress.org/plugins/wp-e-commerce/

  2. Jeff Pye Brook
    Member
    Posted 9 months ago #

    Hi dan_1,

    I would like to help figure out that issue. What are you doing when the error appears?

    Are you using any kind of object cache like APC or memcached? If so has it been cleared recently?

  3. dan_1
    Member
    Posted 9 months ago #

    Thanks Jeff. This is a brand new wordpress site. I have only applied a theme (Storefront Paper) and installed the wp-ecommerce plugin. I do not have any kind of object cache.

    It's a weird error. I get it every time I visit any page on the site, including the home page. The only exception is if I am logged into wp-admin. I can actually browse the site with no errors if I am logged in; however once I logout I receive the error again.

  4. WPforME
    Member
    Posted 7 months ago #

    I seem to be getting the same error ... any word on a fix?

  5. tesage
    Member
    Posted 2 months ago #

    I got same error this morning all the sudden.

    I logged in my WP dashboard then went to my site lightweightpurse dot com.
    See black WP tool ribbon on top next to the Edit page, see Flush Catch

    Clicked on Flush Catch

    Then my website is cleared the Error

  6. TCG89
    Member
    Posted 1 month ago #

    I am also getting the same error and clearing the cache doesn't seem to get the job done. any updates?

  7. ray-instinct
    Member
    Plugin Author

    Posted 1 month ago #

    Hi all,

    Speaking with my developer, he advised to clear up the transient cache to solve this issue. I did some googling and found a plugin that does that: https://wordpress.org/plugins/artiss-transient-cleaner/

    Perhaps can you give this a try?

    Thanks!

  8. squbrossi
    Member
    Posted 2 weeks ago #

    Hi all,

    I am also having this issue... I tried what ray-instinct suggested and installed the transient cache and have it running and am still having the same error codes come up..

    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

    Would really like some help to resolve this. The urlof the site is http://www.swgameproduction.com. normally gives the error when you try to initially visit the site right on the home page. Does not happen 100 percent of the time, but frequently enough that I have had issues... any help would be great. Thanks in advance

  9. Edward
    Member
    Plugin Author

    Posted 2 weeks ago #

    When I've had trouble with the countries list something I've found that can help is to hit the select NONE option in the store general settings tab save the settings then go back and select the regions you want to sell in and save these settings again.

  10. Edward
    Member
    Plugin Author

    Posted 2 weeks ago #

    Also the transient cleaner I prefer is Transient Cleaner https://wordpress.org/plugins/artiss-transient-cleaner/

    Install and then click Tools > Transients

    Run both options

    Clear Expired Transients

    Remove All Transients

    Click "Run Now" for both

  11. conniemk224
    Member
    Posted 1 week ago #

    I'm having the same problem and have tried all of the above, cleared all the cache's. Oddly, things look great on my laptop, but I'm getting the error on my phone and ipad.

    Any other suggestions?

Reply

You must log in to post.

About this Plugin

About this Topic