When testing, I see that this is because of a conflict with the Pre-Orders For WooCommerce plugin: if I disable that plugin, the error message disappears and I can visually see the editor and the results of the changes I’m making in the left side fields of the Kadence Email Designer plugin.
This is the error message from the log and underneath that a cause for the error, based on a reply from a WooCommerce forum member:
Uncaught Error: Call to a member function get_meta() on bool in /home/website199/domains/ourwebsite.com/public_html/wp-content/plugins/pre-orders-for-woocommerce/src/Checkout.php:67 CONTEXT: {“error”:{“type”:1,”file”:”\/home\/website199\/domains\/ourwebsite.com\/public_html\/wp-content\/plugins\/pre-orders-for-woocommerce\/src\/Checkout.php”,”line”:67},”backtrace” “”,”#0 \/home\/website199\/domains\/ourwebsite.com\/public_html\/wp-includes\/class-wp-hook.php(324): Woocommerce_Preorders\Checkout->setPreroderStatus()”,”#1 \/home\/website199\/domains\/ourwebsite.com\/public_html\/wp-includes\/plugin.php(205): WP_Hook->apply_filters()”,”#2 \/home\/website199\/domains\/ourwebsite.com\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-order.php(323): apply_filters()”,”#3 \/home\/website199\/domains\/ourwebsite.com\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-order.php(300): WC_Order->maybe_set_date_paid()”,”#4 \/home\/website199\/domains\/ourwebsite.com\/public_html\/wp-content\/plugins\/woocommerce\/includes\/abstracts\/abstract-wc-data.php(801): WC_Order->set_status()”,”#5 \/home\/website199\/domains\/ourwebsite.com\/public_html\/wp-content\/plugins\/kadence-woocommerce-email-designer\/includes\/class-kadence-woomail-p”]}
Cause:
The error message you see, Uncaught Error: Call to a member function get_meta() on bool, indicates that a method (get_meta) is being called on a boolean value instead of an object. This is done in the Checkout.php file of the pre-orders-for-woocommerce plugin.
Based on this error, how can I solve this error, so that both Pre-Order and Kadence Email Customizer plugins work?
]]>How do we catch the input from the Company Donations field via get_meta? The ‘_give_company_name’ is not fetching it. Any ideas?
]]>2023-09-22T23:11:27+00:00 CRITICAL Uncaught Error: Call to a member function get_meta() on bool in /home/admin/web/website/public_html/content/plugins/coinbase-commerce/class-wc-gateway-coinbase.php:382
Stack trace: 0 /home/admin/web/website/public_html/content/plugins/coinbase-commerce/class-wc-gateway-coinbase.php(332): WC_Gateway_Coinbase->_update_order_status() 1 /home/admin/web/website/public_html/wp-includes/class-wp-hook.php(310): WC_Gateway_Coinbase->handle_webhook() 2 /home/admin/web/website/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() 3 /home/admin/web/website/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 4 /home/admin/web/website/public_html/content/plugins/woocommerce/includes/class-wc-api.php(161): do_action() 5 /home/admin/web/website/public_html/wp-includes/class-wp-hook.php(310): WC_API->handle_api_requests() 6 /home/admin/web/website/public_html/wp-includes/class-wp-hook.php in /home/admin/web/website/public_html/content/plugins/coinbase-commerce/class-wc-gateway-coinbase.php on line 382
Anyways, I’m trying to figure out what’s going on —
If i’m logged into the admin dashboard, i can create a function like
blah ($post_id) {
$is_geolocated = get_post_meta($post_id,’geolocated’,true);
if($is_gelocated != whatever) {
$derp[‘is_geolocated’= true;
$derp[‘city’] = get_post_meta($post_id, geolocation_city_long, true)
$derp[‘country’] = get_post_meta($post_id, geolocation_country_long, true)
}
return derp;
}
add_action(‘save_post’, ‘blah’, big number);
— From the admin dashboard posting like this is perfectly fine, it grabs all the meta information after it’s been geolocated, and goes about its business.
However, when I go to post on the job posting short code page, none of the data is set yet.
Is there some kidn of work around? Ideally, i’d like to use your geolocation stuff rather than create my own location stuff.
Thanks in advance
https://www.ads-software.com/plugins/wp-job-manager/
]]>I am working completely inside the WP Admin and im trying to make the admin post edit screen display meta values for connected posts.
I have two CPTs Recipes and Ingredients. I have a p2p connection from->recipes to->ingredients many-to-many. Ingredients have a meta box with a normal custom field ‘cost’.
I want to list the meta value for cost on the recipe admin edit page in a meta box.
I want to do something similar to this example from the p2p wiki but get the meta value for the post id. (not p2p meta, the normal WP post meta)
<?php
while( $connected->have_posts() ) : $connected->the_post();
echo '<li>';
the_title();
// Display count and type
echo '<br>';
echo 'Count: ' . p2p_get_meta( get_post()->p2p_id, 'count', true );
echo '<br>';
echo 'Type: ' . p2p_get_meta( get_post()->p2p_id, 'type', true );
echo '</li>';
endwhile;
can someone point me in the right direction?
https://www.ads-software.com/plugins/posts-to-posts/
]]>Is it possible at all to retrieve wp user or category meta names to appear in the back-end in the custom fields, to select from, before publishing. In other words, can I run a code to get global meta such as &get_categories()
in a custom field??
My question does NOT refer to retrieving custom values to be displayed on website!
I’m using:
Advanced custom fields
Custom Post Types UI
Custom Field Template
Appreciate any directions!
]]>I am using the fields plugin, and it works great. I am using the checkbox function, and I have 4 items. Playstation, xbox, wii, and PC; and I am displaying it in my template like this echo fs_get_meta(‘game-review-platform’,$single=true, $post->ID);. It will display only one platform, even though I have 3 checked. How can I get it to display all of the checked boxes?
Thanks in advance,
Aaron
]]>I will cut to thre chase:
I define custom fields in each Page that I publish and I would like the wp_list_pages() to sort the list in the side bar by a given custom field. Is that possible?
For example: I have a key called Project. I can have 3 values for that (A, B and C). Can I tell to list the pages in the wp_list_pages() tag according to these values? If not is there any other way instead of using wp_list_pages tag?
It would be great if someone can help me out I am really getting desperate on this one!
]]>