• Resolved moein

    (@moeinkd)


    hello
    i use persian woocomerce plugin
    This error is displayed. how can i solve it?
    tnx

    یک خطا از نوع E_ERROR در خط 154 از پرونده /home/***/public_html/wp-content/plugins/persian-woocommerce/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php رخ داد. پیام خطا: Uncaught TypeError: Argument 1 passed to Carbon\CarbonInterval::setLocalTranslator() must implement interface Symfony\Component\Translation\TranslatorInterface, instance of Carbon\Translator given, called in /home/***/public_html/wp-content/plugins/persian-woocommerce/vendor/nesbot/carbon/src/Carbon/Traits/Difference.php on line 778 and defined in /home/***/public_html/wp-content/plugins/persian-woocommerce/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php:154
    Stack trace:
    #0 /home/***/public_html/wp-content/plugins/persian-woocommerce/vendor/nesbot/carbon/src/Carbon/Traits/Difference.php(778): Carbon\CarbonInterval->setLocalTranslator(Object(Carbon\Translator))
    #1 /home/***/public_html/wp-content/plugins/wp-simple-firewall/src/lib/src/Blocks/RenderBlockPages/RenderBlockIP.php(90): Carbon\Carbon->diffForHumans()
    #2 /home/***/public_html/wp-content/plugins/wp-simple-firewall/src/lib/src/Blocks/RenderBlockPages/BaseBlockPage.php(27): FernleafSystems\Wordpress\Plugin\Shield\Blocks\
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Paul

    (@paultgoodchild)

    Without looking at their code I suspect it’s a code conflict with 2 different versions of the Carbon PHP library. They’re probably using the version suited only for later PHP versions

    We’re not in a position to change our library, sorry.

    Thread Starter moein

    (@moeinkd)

    thank you and your welcome
    Is it possible to exclude the two so that they do not interfere with each other?
    for example:
    $classes=explode(‘persian-woocommerce’);

    In one of the plugins I had seen, such a method was used to prevent it from interfering with other plugins

    Plugin Author Paul

    (@paultgoodchild)

    No, sorry, this isn’t possible. You could ask the developer of the other plugin to use a version of the library (v1) that will be more compatible with more WordPress sites running lower versions of php

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘problem with persian-woocommerce plugin’ is closed to new replies.