Error – Latest Version 2.0.0
-
All my sites running this plugin are generating the following error message:
“Class ‘VTMIN_Rules_UI’ not found occurred in wp-content/plugins/minimum-purchase-for-woocommerce/vt-minimum-purchase.php on line 289”.The page I need help with: [log in to see the link]
-
Hi,
You are the only user reporting this issue,
and I can’t replicate it in my test environment.1. `Suggest a *full module conflict test*:
To track down a module conflict, please follow these steps ** PRECISELY **:
(1) Install and activate a maintenance mode plugin (if desired)
(2) Then, DO ALL (*at the same time*):
(-) do a full site backup!
(-) deactivate ***all*** plugins except Woo, my 2 plugins (and maintenance mode plugin)
(-) ** switch to a clean default theme like “twentynineteen” **
— (This removes all other possible conflicts.)
(-) turn off all deals except the one we are examining.(3) ** close your browser completely, retest in a fresh, clean browser session **
(4) if good, add 1 module back in. ** Retest **
(5) Repeat until conflict identified.** This test depends on following the outlined steps fully. **
(PS – If you do have a module conflict, it will likely boil down to choosing between the 2 conflicting modules…)`
2. if no joy,
Please drop me a line on my support channel
https://www.varktech.com/support/
and send me your System Report:
– Go into wp-admin, select Woocommerce->Status .
– Click button ‘Get System Report’ at top of page.
– Click button ‘Copy for Support’.
– Copy the result as instructed on the page
– Paste into return email to me.Best,
VarkPS
Please let me know the results of your test.
Vark-
This reply was modified 2 years, 5 months ago by
vark.
FWIW, we have a customer on 2.0.0 who is experiencing the same issue. I’m not sure how to reproduce it yet as we’re seeing it via the “Your Site is Experiencing a Technical Issue” emails from WordPress. Following this closely and will update you here if I can reproduce it.
WordPress version 6.0.2
Active theme: Beaver Builder Child Theme (version 1.0.0)
Current plugin: VarkTech Minimum Purchase for WooCommerce (version 2.0.0)
PHP version 7.4.30Error Details
=============
An error of type E_ERROR was caused in line 289 of the file public_html/wp-content/plugins/minimum-purchase-for-woocommerce/vt-minimum-purchase.php. Error message: Uncaught Error: Class ‘VTMIN_Rules_UI’ not found in public_html/wp-content/plugins/minimum-purchase-for-woocommerce/vt-minimum-purchase.php:289
Stack trace:
#0 public_html/wp-includes/class-wp-hook.php(307): VTMIN_Controller->vtmin_admin_init(”)
#1 public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#2 public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#3 public_html/wp-content/plugins/iwp-client/core.class.php(249): do_action(‘admin_init’)
#4 public_html/wp-includes/class-wp-hook.php(307): IWP_MMB_Core->admin_wp_loaded_iwp(”)
#5 public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#6 public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#7 public_html/wp-settings.php(620): do_action(‘wp_loaded’)
#8 public_html/wp-config.php(82): require_once(‘…’)Hi Bob,
Thanks for the update, sorry that your customer is experiencing the issue.When you have them, please let me know the results of the full module conflict test described above.
Best,
VarkHaven’t had time to do any research but I did notice when the site is called with https://infinitewp.com/ the client throws this error so the dashboard can not get an update from the site. So that’s one way to reproduce it.
Hi Bob,
Thanks for the udpate.
Weird. None of this is reproducible on my end.
Please track with conflict test and let me know.
Best,
MarkYes, my error was thrown by ManageWP, which is similar to InfiniteWP. 3 of my sites (the only 3 using this plugin) have this error. They have 3 different themes (Astra, X-Store, Thesis) and each has a different combination of plugins.
Mark, perhaps the way to replicate the error is to set up a free account with one of the management services and check it for yourself.
Thanks and regards,
MartinHi Martin and Bob,
Glad you’ve identified that ManageWP and InfiniteWP are the culprits.
I think a quick code addition in my plugin will help with this issue.
If one or both of you would contact me on my support channel,
https://www.varktech.com/support/
I can send the updated version to you for a quick test.
Best
Vark-
This reply was modified 2 years, 5 months ago by
vark.
Hi @vark,
I suspect this is related to your assumption in minimum-purchase-for-woocommerce/vt-minimum-purchase.php that you will only be called in the context of a populated $pageURL. When external tools execute your plugin that isn’t happening so admin/vtmin-rules-ui.php is never require_once()’d which means Class VTMIN_Rules_UI is never defined.
I agree with @webinaut that it would be easy for you to use ManageWP or InfiniteWP to reproduce this.
Bob
Hi Bob,
Thanks, I’ve already coded up that class test in the fix and sent it to Martin for testing.
Best,
VArkSorry @vark, I missed your reply to us while I was digging around. Will message you!
Problem update – Martin and Bob have tested a successful fix, and report all is working.
Thanks for your help guys!
New fix version will officially be released in a day or so, following testing of a couple of other small fixes.
Best,
Mark -
This reply was modified 2 years, 5 months ago by
- The topic ‘Error – Latest Version 2.0.0’ is closed to new replies.