Forum Replies Created

Viewing 15 replies - 1 through 15 (of 303 total)
  • Jeffrey Schutzman

    (@jeffpyebrookcom)

    On our sites, it is every refund.

    We will also adjust webhook entries if it helps?

    – jeff

    Thread Starter Jeffrey Schutzman

    (@jeffpyebrookcom)

    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?

    Didn’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.

    I 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.

    We started having this error also. Running WooCommerce also.

    Thread Starter Jeffrey Schutzman

    (@jeffpyebrookcom)

    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.

    Thread Starter Jeffrey Schutzman

    (@jeffpyebrookcom)

    I had saved the mysql log files, there isn’t anything of interest that I can see.

    Thread Starter Jeffrey Schutzman

    (@jeffpyebrookcom)

    From 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.

    Thread Starter Jeffrey Schutzman

    (@jeffpyebrookcom)

    Php 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.

    The build in table rate shipping module should be able to do the calculation

    Forum: Plugins
    In reply to: [WP eCommerce] 404 error

    If 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 error

    That 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.

    I 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.css

    @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.

    So 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

Viewing 15 replies - 1 through 15 (of 303 total)