alexrwlp
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] class-wc-product-data-store-cpt.php is causing a fatal error?Hi @babylon1999,
Thank you for writing.
I just deactivated Searchanise and our error log continued to throw errors. Another woo developer said they think it’s something in Woo trying to tell it to update a product that doesn’t exist. I had thought it was a Bundle plugin (Bopo Bundle) but that didn’t fix it either. I also just attempted deactivating WooCommerce Product Dependencies plugin and that didn’t make a difference either.
I’m kind of at a loss as to what the issue is.Forum: Plugins
In reply to: [WooCommerce] class-wc-product-data-store-cpt.php is causing a fatal error?Hi @ihereira,
So the no-logged error from my previous post was a fluke. I’m still constantly receiving fatal PHP errors over this. Here’s what I’m getting:
2023/02/21 19:10:56 [error] 3280#3280: *6501 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Exception: Invalid product. in /www/westlakeprocom_613/public/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:167
Stack trace:
#0 /www/westlakeprocom_613/public/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Product_Data_Store_CPT->read(Object(WC_Product_Simple))
#1 /www/westlakeprocom_613/public/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(138): WC_Data_Store->read(Object(WC_Product_Simple))
#2 /www/westlakeprocom_613/public/wp-content/plugins/woocommerce/includes/class-wc-product-simple.php(24): WC_Product->__construct(95227)
#3 /www/westlakeprocom_613/public/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(905): WC_Product_Simple->__construct(95227)
Forum: Plugins
In reply to: [WooCommerce] class-wc-product-data-store-cpt.php is causing a fatal error?Hello @ihereira ,
Thank you for writing. So we do have the Pods plugin, which allows for custom post types and we do have a few custom post types. I’ve been communicating with WooCommerce, a developer from the WooCommerce community and then also my site host to try to pinpoint the issue.
It seems that the WooCommerce plugin is throwing some sort of fatal PHP error, and it’s not really replicable within a staging environment.I recently ran into the first time where I haven’t received a log in the PHP error log, and this was after reactivating the WooCommerce Admin plugin. Which oddly enough, isn’t actually activated? I’ve pressed the button several times and it will not activate the plugin at all, but I haven’t had an error in the last 25 minutes…so I’m really not sure what to make of any of this.
Let me know if any of that makes sense to you, thank you again.Hi @maybellyne ,
Thank you for writing.
This plugin is definitely installed on our website.
Let me know if there’s anyway to re-index or whatever. Thank you.
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Wishlist Plugin Not WorkingHi Juan,
Thank you for writing back. I had found another plugin that worked out of the box but it’s still not 100% what we’re looking for. I currently have both it and the Yith wishlist plugin active on our site, however the Yith doesn’t seem to effect my site at all.
Just to let you know, I’m about to be out of the office for a week so that may be why I don’t respond to you. If you’re able to help get to the bottom of this today that would be great.
Feel free to check out our site, the Yith plugin is now active. Let me know what you find.
Hi Kawshar,
Ah, thank you for this information, that must be the issue.
I guess we’ll have to figure out an alternative option to the slider then…maybe a video or something.
Hopefully you guys can get this handled one day!
Hi Kawshar,
Thank you for writing back with this information and video. This was the issue, although this was the settings we had set before the update. So updating to the latest version of Essential Add Ons turned this off for some reason.
Anyway, all is fixed now. Thanks!
Hi @ankitposimyth,
Since this is still causing issues I’ve deactivated this plugin until there is a fix. I’m going to have to go through and swap out widgets on our site but at least I’m able to edit my site.
Let me know if you find anything, thank you.
Hi @ankitposimyth,
Thank you for writing back. It took a lot of digging to find where the Debug file was put, but I finally found it:
Thank you again for helping with this.
- This reply was modified 4 years, 2 months ago by alexrwlp.
Hi @ankitposimyth ,
Thank you for writing back.
It doesn’t look like the version we have is the Pro version.
I did disable all of the other plugins to find that The Plus Addons is where it creates the issue.
I’m unsure on how to provide the debug log.
Hi Ankit,
Thank you for writing back.
Here’s the steps I take and what I run into:
– On Elementor 3.5.6 and The Plus Addons for Elementor 5.0.7 and everything works fine.
– Back Up my website
– Update Elementor to 3.6.1, and I can’t edit a page when I click “Edit with Elementor”, it just puts the sidebar in a forever loading wheel with The Plus Addons for Elementor at 5.0.7.
– Then I update The Plus Addons for Elementor to 5.0.8 and I continue to experience the same issue.
– Then I restore my site back to the initial settings, because it worked then.Let me know if there’s a patch that can fix this.
Hi,
I, too, am experiencing issues with The Plus Addons for Elementor & The Plus Addons for Elementor Page Builder. When I update to Elementor 3.6.1, these plugins make it so that editing a post or page just puts me in the forever loading side bar. This happens with versions 5.0.7 and 5.0.8. It’s only when I roll back Elementor to 3.6.0 that I am able to edit.
Please advise.
Hi @rainfallnixfig,
Thank you for the information.
I just added the following coding to the bottom of our function.php file and it wouldn’t process orders anymore. So I removed it, can you take a look and let me know what I’m doing wrong here?:
/**
* Add Stripe metadata along with WooCommerce purchase
*
* @param $metadata
* @param $order
* @param $source
* @return mixed
*/
function wbdc_filter_wc_stripe_payment_metadata( $metadata, $order, $source ) {/**
* Get order data
*/
$order_data = $order->get_data();
$metadata[ __( ‘Billing Company’, ‘woocommerce-gateway-stripe’ ) ] = sanitize_text_field( $order_data[‘billing’][‘company’] );
$metadata[ __( ‘Customer Name’, ‘woocommerce-gateway-stripe’ ) ] = sanitize_text_field( $order_data[‘billing’][‘first_name’] . ‘ ‘ . $order_data[‘billing’][‘last_name’] );
$metadata[ __( ‘Customer Phone’, ‘woocommerce-gateway-stripe’ ) ] = sanitize_text_field( $order_data[‘billing’][‘phone’] );`/**
* List products purchased
*/
$count = 1;
foreach( $order->get_items() as $item_id => $line_item ){
$item_data = $line_item->get_data();
$product = $line_item->get_product();
$product_name = $product->get_name();
$category_name = $wc_get_product_category_list();
$item_quantity = $line_item->get_quantity();
$item_total = $line_item->get_total();
$metadata[‘Line Item ‘.$count] = ‘Product name: ‘.$product_name.’ | Quantity: ‘.$item_quantity.’ | Item total: ‘. number_format( $item_total, 2 );
$count += 1;
}return $metadata;
}
add_filter( ‘wc_stripe_payment_metadata’, ‘wbdc_filter_wc_stripe_payment_metadata’, 10, 3 );Let me know!
Hi @priyankajagtap,
Thank you for sending over this solution. This did in fact fix the issue at hand.
Is this something I’m going to need to continually update in our FTP as updates happen or will an update for Call for Price eventually include this solution?
Let me know, thank you again!
Hi @apmwebdev,
Thanks for writing. Sure thing, here ya go: https://pastebin.com/m9PQ3rcu
Let me know, thanks!