Forum Replies Created

Viewing 15 replies - 1 through 15 (of 96 total)
  • Thread Starter James Morton

    (@stylishjm)

    Hello @webtoffeesupport, I have sent over the requested files, ticket #83570

    I have double checked the setup and all seems correct to me.

    Many thanks!

    Thread Starter James Morton

    (@stylishjm)

    Hi – I managed to fix this myself, I simply checked if the filters are active using flrt_is_filter_request(), and if it was, then to return the posts as usual rather than using the modified sticky query that the Sticky Posts Switch plugin was using.

    The very first thing that loads is a google tracking code – did you perhaps add this in via Appearance > Theme File Editor > Header template? It looks like wp_head() is missing completely, alongside pretty much everything else that’s supposed to be in the header (meta tags etc) which is why nothing is loaded.

    Thread Starter James Morton

    (@stylishjm)

    Closing this, having looked in generate-title.class.php, it appears this can be handled with translations.

    So in my case, I fixed in. I’m using the latest premium version however but it should hopefully fix your case if you find the standard version of it.

    In “class-yith-ywgc-cart-checkout-premium.php”, I found that changing the comparison operator to strict fixed it:

    So in line 589, it’s simply a case of finding:

    if ( strpos( $key, 'amount_' ) == 0 ) {//phpcs:ignore

    and adding an additional equals symbol like so:

    if ( strpos( $key, 'amount_' ) === 0 ) {//phpcs:ignore

    Now no errors appear, and PayPal now recognises the payment correctly with the relevant giftcard discount.

    Hope that fixes it for you.

    I’m getting the same error, which is resulting in errors when paying with PayPal.

    We’re seeing weird numbers in the PayPal debug logs, like [amount_1] => -7913209207

    In the WordPress Debug logs, I’m seeing:

    [21-Nov-2022 23:08:53 UTC] PHP Warning:  A non-numeric value encountered in /home/sites/9b/e/ee7e6b1448/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-cart-checkout-premium.php on line 592
    [21-Nov-2022 23:08:53 UTC] PHP Notice:  Undefined index: shipping_cmd in /home/sites/9b/e/ee7e6b1448/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-cart-checkout-premium.php on line 594
    [21-Nov-2022 23:08:53 UTC] PHP Notice:  Undefined index: amount_cmd in /home/sites/9b/e/ee7e6b1448/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-cart-checkout-premium.php on line 595
    [21-Nov-2022 23:08:53 UTC] PHP Warning:  A non-numeric value encountered in /home/sites/9b/e/ee7e6b1448/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-cart-checkout-premium.php on line 592
    [21-Nov-2022 23:08:53 UTC] PHP Notice:  Undefined index: shipping_business in /home/sites/9b/e/ee7e6b1448/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-cart-checkout-premium.php on line 594
    [21-Nov-2022 23:08:53 UTC] PHP Notice:  Undefined index: amount_business in /home/sites/9b/e/ee7e6b1448/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-cart-checkout-premium.php on line 595
    [21-Nov-2022 23:08:53 UTC] PHP Notice:  Undefined index: shipping_no_note in /home/sites/9b/e/ee7e6b1448/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-cart-checkout-premium.php on line 594
    [21-Nov-2022 23:08:53 UTC] PHP Notice:  Undefined index: amount_no_note in /home/sites/9b/e/ee7e6b1448/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-cart-checkout-premium.php on line 595
    [21-Nov-2022 23:08:53 UTC] PHP Warning:  A non-numeric value encountered in /home/sites/9b/e/ee7e6b1448/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-cart-checkout-premium.php on line 592
    [21-Nov-2022 23:08:53 UTC] PHP Notice:  Undefined index: shipping_currency_code in /home/sites/9b/e/ee7e6b1448/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-cart-checkout-premium.php on line 594
    [21-Nov-2022 23:08:53 UTC] PHP Notice:  Undefined index: amount_currency_code in /home/sites/9b/e/ee7e6b1448/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-cart-checkout-premium.php on line 595
    [21-Nov-2022 23:08:53 UTC] PHP Warning:  A non-numeric value encountered in /home/sites/9b/e/ee7e6b1448/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-cart-checkout-premium.php on line 592
    Thread Starter James Morton

    (@stylishjm)

    Hi Dan

    Many thanks for sorting that out – the staging site is noindexed, but will also be removed later today as was only required for some tests.

    Thanks again and have a great weekend!

    Found an alternative fix that does not require Chosen.min.js to be enqueued.

    Simply locate main.js in /wp-content/plugins/wp-job-manager-locations/assets/js and go to line 136 – you’ll see the below:

    addSubmission: function() {				
    	$( '#job_region, #resume_region' ).chosen({
    		search_contains: true
    	});				
    },

    You’ll need to wrap that chosen code within the function like so:

    addSubmission: function() {				
    	if ( $.isFunction($.fn.chosen) ) {
    		$( '#job_region, #resume_region' ).chosen({
    			search_contains: true
    		});	
    	}			
    },

    Next, copy all the contents of main.js and minify it using an online tool like https://javascript-minifier.com/, and then replace the code in main.min.js with your newly modified code.

    You’ll no longer see errors, and the regions dropdown will render correctly as a Select2 element, rather than a Chosen element.

    Hi @ibiza69

    Here’s the exact steps I took:

    1 – Download the zip file “chosen_v.1.8.7.zip” from https://github.com/harvesthq/chosen/releases

    2 – Extract chosen.jquery.min.js and place it in your theme folder (for this mini-guide, I’ll be placing them in a folder named “js” in my theme folder).

    3 – Extract chosen.css and place it in your theme folder (again, for this miniguide, I’ll be placing them in a new folder named “css” within my theme’s folder).

    4 – In your themes’ functions.php file:

    4a – If you have an existing function that uses the wp_enqueue_scripts hook, simply place the following inside that function, preferably before your style.css is enqueued:

    	wp_register_script( 'jm-chosen-js', get_stylesheet_directory_uri().'/js/chosen.jquery.min.js', array( 'jquery' ), '', true );
    	wp_enqueue_script( 'jm-chosen-js' );	
    
    	wp_register_style( 'jm-chosen-css', get_stylesheet_directory_uri().'/css/chosen.css');
    	wp_enqueue_style( 'jm-chosen-css' );

    4b – If you don’t have an existing function, or are not sure, just add this in your functions.php file:

    function jm_theme_enqueue_styles() {
    		
    	wp_register_script( 'jm-chosen-js', get_stylesheet_directory_uri().'/js/chosen.jquery.min.js', array( 'jquery' ), '', true );
    	wp_enqueue_script( 'jm-chosen-js' );	
    
    	wp_register_style( 'jm-chosen-css', get_stylesheet_directory_uri().'/css/chosen.css');
    	wp_enqueue_style( 'jm-chosen-css' );
    		
    }
    add_action( 'wp_enqueue_scripts', 'jm_theme_enqueue_styles' );

    Give that a go and let me know how it goes.

    For those that want this fixed without having to rely on a jQuery downgrade, and are comfortable with editing their theme files, just download and enqueue chosen.min.js and chosen.css from https://github.com/harvesthq/chosen/releases (just use the latest .zip) – I get no more front end JS errors after doing this.

    • This reply was modified 4 years, 11 months ago by James Morton.
    • This reply was modified 4 years, 11 months ago by James Morton.
    Thread Starter James Morton

    (@stylishjm)

    Hi Andrew

    Email sent.

    Many thanks

    Thread Starter James Morton

    (@stylishjm)

    By the way, I’m happy to provide access to the staging environment so you can look for yourself if you’re unable to consistently replicate on your side. If so, let me know where I should send logins to.

    Thread Starter James Morton

    (@stylishjm)

    Hi Andrew,

    Yes, I had tried refreshing the page several times (have tried again just now) and the count remains zero each time.

    To confirm, the below appears when using the Classic Editor (with PageBuilder enabled for Posts post-type).

    SEO tab (SEO Analysis accordion):
    “Text length: The text contains 0 words. This is far below the recommended minimum of 300 words. Add more content.”

    Readability tab:
    “Not enough content: Please add some content to enable a good analysis.”

    I’ve just noticed that if I switch from Classic Editor’s Visual Tab to Page Builder (and let it automatically copy content from editor to builder), the readability starts working.

    James

    FYI SiteOrigin are investigating – https://github.com/siteorigin/siteorigin-panels/issues/811

    Same issue. Just having SiteOrigin Page Builder enabled for “posts” and not actually using it still causes Yoast to not detect text in Classic Editor. Disabling SiteOrigin for posts seems to work.

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