Support » Plugin: Woo Solo Api » Plugin ruši WP ako je woocommerce ugašen

  • Resolved envox

    (@envox)


    Ovo bi možda valjalo popraviti. Za slučaj kada samo WooCommerce treba privremeno ugasiti, a da WP site ostane živ, ako se WooCommerce ugasi prije Woo SOLO API plugina, raspasti će se site i mora se ući u recovery mode da bi se to popravilo.
    Primjer greške u nastavku:

    https://i.imgur.com/iN6prLE.png

    Error Details
    =============
    An error of type E_ERROR was caused in line 36 of the file /srv/www.envox.eu/wp-content/plugins/woo-solo-api/src/ECommerce/WooCommerce/WooPaymentGateways.php. Error message: Uncaught Error: Call to undefined function WC() in /srv/www.envox.eu/wp-content/plugins/woo-solo-api/src/ECommerce/WooCommerce/WooPaymentGateways.php:36
    Stack trace:
    #0 /srv/www.envox.eu/wp-content/plugins/woo-solo-api/src/ECommerce/WooCommerce/WooPaymentGateways.php(52): MadeByDenis\WooSoloApi\ECommerce\WooCommerce\WooPaymentGateways->getPaymentGateways()
    #1 /srv/www.envox.eu/wp-content/plugins/woo-solo-api/src/Settings/PluginSettings.php(252): MadeByDenis\WooSoloApi\ECommerce\WooCommerce\WooPaymentGateways->getAvailablePaymentGateways()
    #2 /srv/www.envox.eu/wp-includes/class-wp-hook.php(287): MadeByDenis\WooSoloApi\Settings\PluginSettings->registerPluginSettings('')
    #3 /srv/www.envox.eu/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #4 /srv/www.envox.eu/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #5 /srv/www.envox.eu/wp-settings.php(557): do_action('init')
    #6 /srv/www.envox.eu/wp-config.php(92): require_once('/srv/www.envox....')
    #7 /srv/www.envox.eu/wp-load.php(37): requ
    • This topic was modified 2 months, 1 week ago by envox.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author dingo-d

    (@dingo_d)

    Pozdrav!

    Posotoji opcija koja sprijeci aktivaciju, ali na zalost nema nacina u WordPressu da detektiram kada se WooCommerce deaktivira pa da deaktiviram svoj plugin (bar nisam nasao neki dobar nacin na koji bih to mogao napraviti :/).

    Probat cu istraziti sto se moze napraviti po tom pitanju da sprijecim ovakve erroe u buduce. Ispricavam se ako vam je prouzrocilo neke probleme 🙁

    Thread Starter envox

    (@envox)

    Sve 5 samo naprijed, još smo u testnoj fazi, nema štete jer site nije vidljiv izvana.

    Plugin Author dingo-d

    (@dingo_d)

    Verzija 2.1.0 ima provjeru je li WooCommerce plugin aktivan ili ne i ako nije onda se moj plugin deaktivira.

    Nadam se da nece vise biti fatalnih errora 😅

    Thread Starter envox

    (@envox)

    Testirao, radi. Puno hvala.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.