Jeffrey Schutzman
Forum Replies Created
-
no plugins enabled.
It is definitely broken.
I recorded a video of it failing for you.
http://www.screencast.com/t/zBv4KwYx5Qpi
– Jeff
I fixed my issue by manually typing in the image url and not using the WordPress image gallery to set the picture.
WordPress 4.3.1, was on ZL 1.8.2.5, as of this message on 1.8.2.6
houghtonmarine.com
btw, the workaround is do not use the uploader and manually enter the image url in the widget edit control
Forum: Plugins
In reply to: [WP eCommerce] All products not showing in admin after plugin upgradeI just did an upgrade from 3.9 to 10.1 om a site with 19,963 no issue with WP-eCommerce. PHP memory is set around 150MB
Some other things you may want to check, admittedly low possibility of being the cause.
1) There was a recent bug in WordPress that caused tens/hundreds/thousands of CRON jobs to get queued. These could cause out of memory errors on some systems. Use a CRONTROL plugin to check to sere if this is an issue.
2) Look at the WordPress options table and see if the option that has the WP-eCommerce version is present and properly formatted. If the option is an odd value there is a very remote chance that the upgrade routine is trying to upgrade from a near paleolithic version of the plugin, if this is the case it could take a while and use much memory.
3) Double check again that drag and drop is not being used to order the products.
Forum: Plugins
In reply to: [WP eCommerce] Scary bug/flaw? Showing checkoutmy suggestion is to put the statement
error_log( __FUNCTION__ . '::' . __LINE__ );at each of the decision points in the function where the cookie/user id is set and find out which condition is causing the user id to be set to the reserved user id.
You should be able to quickly determine which test is causing the problem by looking at your debug.log
– jeff
Forum: Plugins
In reply to: [WP eCommerce] Scary bug/flaw? Showing checkoutAlso, what version did you upgrade from?
I ask because if the visitor or visitor meta tables have not been created correctly every visitor would be assigned the visitor ID 1.
Because you are running multisite, if you enabled multisite without going through the WP-eCommerce installation and setup it is possible that the visitors table and visitor meta table were not created with your second site database prefix.
jeff
Forum: Plugins
In reply to: [WP eCommerce] Scary bug/flaw? Showing checkoutalso, because you are using multisite, it might be worth verifying that the COOKIE_DOMAIN settings are correct, and if you are using the domain mapping plugin.
-jeff
Forum: Plugins
In reply to: [WP eCommerce] Scary bug/flaw? Showing checkoutDefinately something wrong here. wpsc_customer_cookie_* should never start with “1” for a real user. The “1” is the visitor id reserved for a bot.
Still not seeing the user agent in the debug dumps above? you want to
error_log( var_export( $_REQUEST , true ) );and
error_log( var_export( $_SERVER , true ) );to get the whole picture.
What is the url of your site?
-jeff
Forum: Plugins
In reply to: [WP eCommerce] Scary bug/flaw? Showing checkoutwhat is the url of your store?
Forum: Plugins
In reply to: [WP eCommerce] Scary bug/flaw? Showing checkoutYour close to finding the cause,
I would suggest you dump dump the $_COOKIES array so we can see if there is a cookie set that is invalid and forcing the bot selection.
the line:
error_log( var_export( $_COOKIE, true ) );should put the information info your debug log.
I am a little suspicious that you may be hitting the invalid cookie check in at the start of _wpsc_is_bot_user()
You might also want to confirm that the wpsc_bot_user_agents and wpsc_is_bot_user filters are not being used by any themes or plugins.
Forum: Plugins
In reply to: [WP eCommerce] Scary bug/flaw? Showing checkoutOnly two things I can think of that are causing the issue, both are caching related.
You need to answer these two questions:
(1) Is the web server getting a valid user agent string? If the user agent string corresponds to the user agent string of a known crawler the user id will be set to a user id reserved cor web crawls. User id “1”. That would mean every web request will see the cart from user id “1”(2) Is the cookie used to store the user id and authenticator token is not being correctly passed to the web server, and instead a cached cookie is being passed, the same symptoms will be present.
I have seen both of these issues when an ISP mis-configures a Varnish cache, but any number of web server misconfigurations, .htaccess configurations, or plugin configurations could cause the same symptoms.
Turn on debugging, and echo the user cookie, the user agent, and user id into the debug log and see what is happening. If you see the issue start following the request back through your stack until you find the issue.
jeff
Forum: Plugins
In reply to: [WP eCommerce] Can I disable visitor trackingThe way the profile system is designed to work is that a customer cookie is created on the first visit to the web server. This is can be a page generation or an AJAX request. The AJAX request can be something like an add to cart, or a get cart widget contents OR can be a lightweight request done at the start of the wp ecommerce js when it detects that a customer cookie isn’t present.
The database should only be updated when the cookie is created, that should be once per session. The database is updated when products are added to a cart, or during the checkout process.
If creating the cookie fails in the javascript the javascript will set a ‘wpsc_attempted_validate’ cookie to stop repeated attempts during the same session.
If your database is filling with seemingly endless profiles you have two issues:
1) Something is stopping the customer cookie from being created AND recognized by subsequent session page views. Start to diagnose this by checking your caching and WordPress COOKIE_DOMAIN configuration to be sure all is as it should be.
2) The WordPress cron job that cleans up abandoned profiles is not running periodically as it should. Check your WordPress cron configuration.
– jeff
Forum: Plugins
In reply to: [WP eCommerce] Scary bug/flaw? Showing checkoutIt’s somewhat likely that this is a web server or WordPress content caching issue. Quite simply something is not properly configured.
Forum: Plugins
In reply to: [WP eCommerce] Cookies from WP Ecommerce plugin