surrealpolitiks
Forum Replies Created
-
I do not suspect this is the ideal solution, but I figured out that I can change where the user is sent when clicking “Join Now” by changing the “Levels Page” in Memberships \ Settings \ Pages.
I’d also like some help with this if at all possible.
I am using the WooCommerce integration, and on account of this I have gone to some lengths to avoid users trying to create or alter their memberships through PMPro because this creates confusion, given that their actual membership status is handled by a WooCommerce subscription.
For this reason, I have the login page set to the WordPress default.
The “Join Now” link that appears on my member restricted content just sends users to the WordPress login page, which is not helpful. I need to direct them to the WooCommerce subscription product.
This confusion is doubtless costing users like me money.
Forum: Plugins
In reply to: [WooCommerce] Critical Error Line 134 in class-wc-coupon-data-store-cpt.phpFor those who may come later, you can find your coupons in PHPMyAdmin by searching the Posts table for
post_type=shop_coupon
I did this on the production site, deleted those rows, and now the production site is working. I have deleted the staging site.
Thank you for your assistance, Igor.
Forum: Plugins
In reply to: [WooCommerce] Critical Error Line 134 in class-wc-coupon-data-store-cpt.phpSubsequent to deleting these items from the staging site, I exported them from the production site, and I’ll paste the content of those rows here incase that might help us understand how this caused the problem.
(88, 2, ‘2023-02-13 17:59:39’, ‘2023-02-13 17:59:39’, ”, ‘Agenda’, ‘First six months of premium membership at 50% discount for Radical Agenda listeners. ‘, ‘publish’, ‘closed’, ‘closed’, ”, ‘agenda’, ”, ”, ‘2023-03-05 08:53:41’, ‘2023-03-05 08:53:41’, ”, 0, ‘https://surrealpolitiks.com/?post_type=shop_coupon&p=88’, 0, ‘shop_coupon’, ”, 0),
(87, 2, ‘2023-02-13 17:53:57’, ‘2023-02-13 17:53:57’, ”, ‘FREEISFORME1433’, ‘This coupon reduces the order total by 100% and is only for testing purposes. If applied to an actual order, the order will be canceled. ‘, ‘publish’, ‘closed’, ‘closed’, ”, ‘freeisforme1433’, ”, ”, ‘2023-02-13 17:53:57’, ‘2023-02-13 17:53:57’, ”, 0, ‘https://surrealpolitiks.com/?post_type=shop_coupon&p=87’, 0, ‘shop_coupon’, ”, 0);
Forum: Plugins
In reply to: [WooCommerce] Critical Error Line 134 in class-wc-coupon-data-store-cpt.phpUpdate: I searched PHPMyAdmin for one of the coupon codes, and found that it was contained in the posts table. I deleted both of the coupons on the staging site, and now I am able to view and create coupons on the staging site.
Forum: Plugins
In reply to: [WooCommerce] Critical Error Line 134 in class-wc-coupon-data-store-cpt.phpI am inclined to try to delete the existing coupons using PHPMyAdmin to see if something pertaining thereto is causing the problem. I am uncertain of the correct way to go about this however, and searching for this information is how I found the WP Sheet Editor earlier.
If you could provide some guidance on this front, I would take this step to eliminate the variable. The coupons are not in use so I wouldn’t be losing anything, and now that I have the staging site, I suppose it doesn’t matter anyway.
Forum: Plugins
In reply to: [WooCommerce] Critical Error Line 134 in class-wc-coupon-data-store-cpt.phpThanks. WP Staging is a very useful plugin and I am very glad to have learned of it from this.
Unfortunately, the problem persists after following your instructions on the staging site. I disabled all plugins except WooCommerce and WP Staging, installed and activated storefront, and the test site produces identical results.
Forum: Plugins
In reply to: [WooCommerce] Critical Error Line 134 in class-wc-coupon-data-store-cpt.phpSome more information which support may or may not find helpful.
I switched my theme to the default 2023, and the problem still persists.
I had an idea that maybe if I deleted the coupons in some other way, I could get the page to load, so I found a Plugin called WP Sheet Editor which purported to be able to do this.
This plugin is not able to retrieve the coupons either, but does not cause a critical error.
I also installed WP Query Monitor, and using this, when I try to load Marketing/Coupons, it shows the same error I got in my email earlier.
When using Query Monitor with WP Sheet Editor, the load skyrockets trying to pull the database, and Query Monitor shows me “PHP errors were triggered during an Ajax request. See your browser developer console for details. GET https://surrealpolitiks.com/wp-admin/admin.php?page=vgse-bulk-edit-shop_coupon → 200 “
Opening my Browser’s developers tools does not show me anything I can make sense of.
I have another site with WooCommerce installed but that isn’t currently doing any business. I have a bunch of old coupons on that site, and I can see them. I created a new coupon there without issue. I notice it is running PHP 7.1 and on the site I’m having the problem with it is running 8.1