Jeffrey Schutzman
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Refunds are recorded twice in WP adminOn our sites, it is every refund.
We will also adjust webhook entries if it helps?
– jeff
Great to hear it is on the radar. I set the 2FA for roles that can edit content or change settings. Not for regular subscriber or shopper roles.
Will that be an OK work-around until WooCommerce login/account page support is added?
- This reply was modified 6 years, 11 months ago by Jeffrey Schutzman.
Forum: Plugins
In reply to: [Simple Google reCAPTCHA] wocoomerce SyntaxErrorDidn’t find an easy solution. Invisible recaptcha is pretty straightforward to implement from scratch. I might just embed it in my theme templates until I have time to create a plugin from scratch.
Forum: Plugins
In reply to: [Simple Google reCAPTCHA] wocoomerce SyntaxErrorI have debugged this and know the issue. In the function ‘sgr_verify’ there is a check for the request method and recaptcha response from google. If these things aren’t found the function does a wp_die with an error.
Problem is that when WooCommerce checkout is setup to automatically create an account on checkout sgr_verify is executed without presenting a recaptcha form.
Either the recaptcha form has to be presented, or sgr_verify should not run on checkout.
Forum: Plugins
In reply to: [Simple Google reCAPTCHA] wocoomerce SyntaxErrorWe started having this error also. Running WooCommerce also.
Sorry, that’s not the case.
Executing mysqldump from the shell command line completes without error.
Also, the result from “Analyze Table”, “Check Table”, and “Checksum Table” status as shown in PHPMyAdmin is without error.
I had saved the mysql log files, there isn’t anything of interest that I can see.
Forum: Plugins
In reply to: [Postman SMTP Mailer/Email Log] Postman Crashing WordPress – Too Much memoryFrom a code read it appears that the constructor for the log purger is doing the offending query.
I don’t know all of the details of how the logger works, but an alternative implementation would be to do a query for post IDs sorted in reverse post id order, using the SQL LIMIT clause to start with the first post you want to delete and only up to the last post you want to delete.
I would also suggest doing a direct SQL query against the database rather than using get_posts. This would avoid WordPress trying to cache the post or post meta for the email log custom post type.
I further optimization might be to do the log maintenance in a wordpress event rather than directly inline with the email send. This would help database performance because every send won’t cause a check for, and perhaps also delete of records. A configurable interval in minutes or hours would be best, but a default of an hour word work well even on a site that sends many email messages.
- This reply was modified 8 years, 11 months ago by Jeffrey Schutzman.
Forum: Plugins
In reply to: [MailPoet Newsletters (Previous)] Fatal PHP error Adding A UserPhp 7
I found a temporary workaround. The error happens on the second call to adding a user because the return type is being set to object somewhere in the previous get model call. It is never restored to array for subsequent calls.
My hack is to explicitly set the returned type property in the structure to array just prior to adding the user.
- This reply was modified 9 years ago by Jeffrey Schutzman.
- This reply was modified 9 years ago by Jeffrey Schutzman.
Forum: Plugins
In reply to: [WP eCommerce] Shipping queryThe build in table rate shipping module should be able to do the calculation
Forum: Plugins
In reply to: [WP eCommerce] 404 errorIf you apply the change that @mihai suggested the code to load the script will not be inserted and your 404 will go away.
Forum: Plugins
In reply to: [WP eCommerce] 404 errorThat looks like a script that is only used by Gold Cart if your WP-eCommerce version is before 3.8?
if ( ( get_option( 'show_search' ) == 1 ) && ( get_option( 'show_live_search' ) == 1 ) ) { if ( (float)WPSC_VERSION < 3.8 ) { $siteurl = get_option( 'siteurl' ); if ( is_ssl() ) { $siteurl = str_replace("http://", "https://", $siteurl); } $deps[] = 'wpsc-iautocompleter'; wp_enqueue_script( 'wpsc-iautocompleter', "{$site_url}/wp-content/plugins/" . WPSC_DIR_NAME . '/js/iautocompleter.js', array( 'jquery' ) ); } }If you are using a version that old you might want to consider upgrading?
Looking at the code you could also make the error go away if you turn off live search or show search in the settings.
Forum: Plugins
In reply to: [WP eCommerce] WP Admin for WPEC is broken at 1327px wide or lessI don’t know exactly where the layout breaks, but there is a width at which the customer and amount and fields start overlapping and become unusable. On my display it is somewhere around 1100px with the WordPress menu bar widened.
Some tweeks to the admin style sheet seem to be necessary. This is where uou can find the file if you want to play with it
/WP-e-Commerce/wpsc-admin/css/admin.cssForum: Plugins
In reply to: [WP eCommerce] Visitors, Visitor Meta, Crons and Performance Problems@andyadams you are correct in identifying part of the scalability issue with the visitors implementation.
It is a somewhat long standing problem that comes about in large part of not wanting to risk breaking older sites by not liberally creating visitor records in the tables. Currently a visitor record is created when any HTTP request that could turn into a real shopper is received. THe current implementation does take into account the well known bots, so that isn’t causing an issue.
The root cause of the problem is those tables growing out of control. There is definitely something amiss in your configuration that is either ( or both ) causing too many visitor instances to be created in the database or the cleanup process never running.
One thing that can bring a site down is being hit by a bot that repeats attempts to gain access to the site. Any type of intrusion attempt is likely to cause a burst of records to be created.
Think about things that could cause cookies to blocked, or crons to not run.
There is a utility on my site you can grab to do a quick check of your configuration and common configuration issues. I also have a plugin that will let you browse through the visitors, and can purge inactive visitors.
http://pyebrook.com/store/product-category/site-checkup-wp-ecommerce/
It is pretty safe to manually prune out the visitor and visitor meta tables. You can delete records that don’t have a user id or common checkout data with SQL commands, then flush your object cache.
As far as deleting the items in a single query. That was part of the old implementation and brought with it very serious performance and data reliability issues. The server to server AJAX should be quick and efficient, **IF** the visitors data isn’t growing out of control.
One thing that I have seen cause the too many visitors issue is an improperly configured cache that prevents the WPEC customer cookie from being retained from one page view to the next. That means that if 20 page view requests, each with maybe 10 related http cookied HTTP requests, you could see 200 visitor records. I have helped a few people that were not aware that their hosting provider had a reverse proxy cache in front of their web servers, and that proxy was not configured to handle the cookies properly.
Forum: Plugins
In reply to: [WP eCommerce] Themes for new WPECSo the good thing is that WPEC is very theme agnostic. I have been moving sites that had used Splashing Pixels themes to Make (Free from Theme Foundry) and Sparkling (Free from Colorlib).
I can point you to examples of both if you need to play around.
– jeff