• Resolved arunki

    (@arunki)


    Hi.

    The plugin has been deactivated by renaming its directory in CPanel.

    The problem:

    Fatal error: Uncaught TypeError: Unsupported operand types: string - string in /home/arun/public_html/astrologiasonora/wp-content/plugins/conditional-payment-gateways-for-woocommerce-pro/includes/class-alg-wc-cpg-core.php:93 Stack trace: #0 /home/arun/public_html/astrologiasonora/wp-content/plugins/conditional-payment-gateways-for-woocommerce-pro/includes/class-alg-wc-cpg-core.php(140): Alg_WC_CPG_Core->is_equal_float('0', 'Cart\xC3\xA3o de Cr\xC3\xA9...') #1 /home/arun/public_html/astrologiasonora/wp-includes/class-wp-hook.php(324): Alg_WC_CPG_Core->available_payment_gateways(Array) #2 /home/arun/public_html/astrologiasonora/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #3 /home/arun/public_html/astrologiasonora/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(333): apply_filters('woocommerce_ava...', Array) #4 /home/arun/public_html/astrologiasonora/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/Payments.php(89): WC_Payment_Gateways->get_available_payment_gateways() #5 /home/arun/public_html/astrologiasonora/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/Payments.php(67): Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\Payments::has_gateways() #6 /home/arun/public_html/astrologiasonora/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/WooCommercePayments.php(106): Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\Payments->is_complete() #7 /home/arun/public_html/astrologiasonora/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php(305): Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\WooCommercePayments->can_view() #8 [internal function]: Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList->Automattic\WooCommerce\Admin\Features\OnboardingTasks\{closure}(Object(Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\WooCommercePayments)) #9 /home/arun/public_html/astrologiasonora/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php(306): array_filter(Array, Object(Closure)) #10 /home/arun/public_html/astrologiasonora/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php(240): Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList->get_viewable_tasks() #11 /home/arun/public_html/astrologiasonora/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskLists.php(411): Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList->is_complete() #12 /home/arun/public_html/astrologiasonora/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskLists.php(433): Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskLists::setup_tasks_remaining() #13 /home/arun/public_html/astrologiasonora/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskLists::menu_task_count('') #14 /home/arun/public_html/astrologiasonora/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #15 /home/arun/public_html/astrologiasonora/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #16 /home/arun/public_html/astrologiasonora/wp-admin/includes/menu.php(161): do_action('admin_menu', '') #17 /home/arun/public_html/astrologiasonora/wp-admin/menu.php(422): require_once('/home/arun/publ...') #18 /home/arun/public_html/astrologiasonora/wp-admin/admin.php(158): require('/home/arun/publ...') #19 /home/arun/public_html/astrologiasonora/wp-admin/plugins.php(10): require_once('/home/arun/publ...') #20 {main} thrown in /home/arun/public_html/astrologiasonora/wp-content/plugins/conditional-payment-gateways-for-woocommerce-pro/includes/class-alg-wc-cpg-core.php on line 93

    On the 19th april I asked for urgent help. Up to now no one has given me attention on this issue.

    I have tried to do a fresh installation, but it does not work (there should be a tutorial on how to delete the tables of this plugin).

    I expect URGENT help to reinstall the plugin and also to configure it to my need.

    Server environment information: FILE INFO

Viewing 1 replies (of 1 total)
  • Thread Starter arunki

    (@arunki)

    Hi, there

    I resolved the issue all by myself. Someone from the support contacted me, but I did not feel there was communication or will to help. The guy was nice, but no attitude.

    It was a simple thing.

    The plugin retains the first inserted configuration by the user. In my case, I inserted a wrong value in the ‘Cart Total’ form. This gave the fatal error. And I could not reinstall it from zero, because the plugin would inherit the data I inserted.

    I was deactivating the plugin by renaming it in CPanel.

    After five days struggling with the issue, renaming the directory, and again installing the ProVersion and always coming to the same fatal error, today I tried to install the free version, starting everything from the beginning.

    The installation of the free version worked fine (because the error was in the Pro Version). I deleted some data and brought the plugin to its original state. Then I installed the Pro Version and could also correct the data in the Pro ‘Cart Total’ form.

    I have three suggestions to the administrators.

    1) This support via email in which there is no conversation really, it is better not to have. It doesn’t work if the user is in need of urgent help and the support takes two more days to respond. Please, improve that.

    2) Make an option in the plugin to reinstall the from zero or make it not to memorize the settings.

    3) In the Cart Total section, explain more clearly how the form functions.

Viewing 1 replies (of 1 total)
  • The topic ‘Conditional Payment Methods for WooCommerce-Pro active breaks the site’ is closed to new replies.