robertstaddon
Forum Replies Created
-
Forum: Plugins
In reply to: [Pinterest for WooCommerce] Start Verification issue!!!I’m experiencing the exact same issue, with the verification process redirecting back to the WordPress Dashboard and displaying a blank WordPress admin page (at the URL /wp-admin/admin.php?page=wc-admin&path=%2Fpinterest%2Fonboarding&step=claim-website), with “Cannot read properties of undefined (reading ‘creditsGiven’)” in the JavaScript error console.
This occurs even when running in an incognito window with no browser extensions enabled and with all other plugins disabled and the theme reverted to the default.
Did anyone find a solution?
The update to 3.3.0 solved the problem for me as well!
I upgraded to the latest version and sadly the PHP Fatal Error still appears when editing a post or page with WP Bakery Page Builder installed. I will notify the Customer Success team.
This worked! Thank you!
Because it just needs to return true with no arguments, I would recommend using the built-in WordPress __return_true() function
add_filter( ‘rank_math/opengraph/pre_set_content_image’, ‘__return_true’ );
Sadly, when set to true this filter currently generates the following PHP Fatal Error on pages where no featured image has been set:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed in /home/demoaccount/public_html/wp-includes/class-wp-hook.php on line 326 and exactly 2 expected in /home/demoaccount/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(581) : eval()’d code:1 Stack trace: #0 /home/demoaccount/public_html/wp-includes/class-wp-hook.php(326): {closure}(false) #1 /home/demoaccount/public_html/wp-includes/plugin.php(256): WP_Hook->apply_filters(false, Array) #2 /home/demoaccount/public_html/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(102): apply_filters_ref_array(‘rank_math/openg…’, Array) #3 /home/demoaccount/public_html/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php(490): RankMath\OpenGraph\Image->do_filter(‘opengraph/pre_s…’, false, 2) #4 /home/demoaccount/public_html/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php(321): RankMath\OpenGraph\Image->set_singular_image() #5 /home/demoaccount/public_html/wp-conten in /home/demoaccount/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(581) : eval()’d code on line 1
I set up a test site to demonstrate the issue: https://test.abundantdesigns.com/sample-page/
Thank you!
Thank you!
Forum: Plugins
In reply to: [Divi Gravity Forms (WP Tools)] PHP Fatal Error with LearnDashI have notified LearnDash and they said that they are also looking into it. I will reply to your email right away!
I’m using the latest v3.2.8. Out of the box it works fine. But with certain other plugins installed that utilize WordPress hooks (such as in the backend or REST API), your plugin can trigger a PHP fatal error when the replace_cart_url() function runs. This is because WC()->cart can be null.
As you can see in this WooCommerce GitHub ticket, WooCommerce says that “we don’t load the cart in backend or REST API. So you need to check if is not
nullfirst, or even ifget_cartis callable.” https://github.com/woocommerce/woocommerce/issues/23758And this Stack Overflow article (and others that I could reference) reiterate that you need to check that the cart object even exists as well as that it is not empty: https://stackoverflow.com/questions/64425146/avoid-error-call-to-a-member-function-get-cart-in-woocommerce-function
That would be helpful. How can we get rid of this unexpected “grabbing an image from a post” functionality and can you add this to your documentation? Thanks.
So perhaps this bug has been in your plugin for longer than I initially thought. When can you get it fixed?
This is not correct. The documentation page that you linked to has always said: “Rank Math lets you set up a default OpenGraph Thumbnail, which will be considered as a fallback thumbnail for all your posts. So, if your post does not have a featured image / OpenGraph image set, then this fallback thumbnail will be used when the post is shared on Facebook.”
It says nothing about grabbing the first image in the post. The functionality spelled out in your documentation is the expected functionality.
And the functionality for the Default Open Graph Thumbnail itself inside of Rank Math says: “When a featured image or an OpenGraph Image is not set for individual posts/pages/CPTs, this image will be used as a fallback thumbnail when your post is shared on Facebook. The recommended image size is 1200 x 630 pixels.”
This is the behavior we have all come to expect. Whoever thought up the silly idea of defaulting to use the first image of the post instead of the clearly specified Default Open Graph Thumbnail failed to read your clear documentation or consult your customer base.
Forum: Themes and Templates
In reply to: [Astra] Embed URL not workingI am having the exact same issue with the latest version 4.4.0 of the Astra theme! Rolling back to the previous version works for now.
Your latest update solved the blank homepage issue. Thank you!
I just created a support ticket!
I also successfully tested the filter that you sent and it enabled me to update to the latest version of your plugin while still allowing products with decimal quantities to go through! Thank you!