mage2pro / core

Mage2.PRO core package
https://upwork.com/fl/mage2pro
MIT License
10 stars 13 forks source link

«Argument 1 passed to df_ends_with() must be of the type string, null given, called in vendor/mage2pro/core/Paypal/Plugin/Model/Api/Nvp.php on line 42» #338

Closed dmitrii-fediuk closed 9 months ago

dmitrii-fediuk commented 9 months ago
[
    Mage2.PRO: {
        "mage2pro/core": "10.4.3",
        "Magento": "2.4.4",
        "PHP": "7.4.33",
        "URL": "https://cabinetsbay.com/paypal/payflowexpress/start/button/1/",
        "Time": "2023-12-02 18:16:38",
        "Referer": "https://cabinetsbay.com/checkout/cart/",
        "IP Address": "2607:fb91:161c:171f:fda7:6709:907e:282c",
        "Request Method": "GET",
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.43"
    }
    channel: main
    context: []
    datetime: Monolog\DateTimeImmutable "2023-12-02T18:16:38.727457+00:00"
    extra: []
    level: 500
    level_name: CRITICAL
    message: TypeError: Argument 1 passed to df_ends_with() must be of the type string, null given, called in vendor/mage2pro/core/Paypal/Plugin/Model/Api/Nvp.php on line 42 and defined in vendor/mage2pro/core/Core/lib/text/starts-ends.php:30
    Stack trace:
    #0 vendor/mage2pro/core/Paypal/Plugin/Model/Api/Nvp.php(42): df_ends_with()
    #1 vendor/mage2pro/core/Paypal/Plugin/Model/Api/Nvp.php(27): Df\Paypal\Plugin\Model\Api\Nvp::eligible()
    #2 vendor/magento/framework/Interception/Interceptor.php(121): Df\Paypal\Plugin\Model\Api\Nvp->beforeCallSetExpressCheckout()
    #3 vendor/magento/framework/Interception/Interceptor.php(153): Magento\Paypal\Model\Api\PayflowNvp\Interceptor->Magento\Framework\Interception\{closure}()
    #4 generated/code/Magento/Paypal/Model/Api/PayflowNvp/Interceptor.php(23): Magento\Paypal\Model\Api\PayflowNvp\Interceptor->___callPlugins()
    #5 vendor/magento/module-paypal/Model/Express/Checkout.php(575): Magento\Paypal\Model\Api\PayflowNvp\Interceptor->callSetExpressCheckout()
    #6 vendor/magento/module-paypal/Controller/Express/GetToken.php(182): Magento\Paypal\Model\Express\Checkout->start()
    #7 vendor/magento/module-paypal/Controller/Express/AbstractExpress/Start.php(24): Magento\Paypal\Controller\Express\GetToken->getToken()
    #8 vendor/magento/framework/Interception/Interceptor.php(58): Magento\Paypal\Controller\Express\AbstractExpress\Start->execute()
    #9 vendor/magento/framework/Interception/Interceptor.php(138): Magento\Paypal\Controller\Payflowexpress\Start\Interceptor->___callParent()
    #10 vendor/magento/framework/Interception/Interceptor.php(153): Magento\Paypal\Controller\Payflowexpress\Start\Interceptor->Magento\Framework\Interception\{closure}()
    #11 generated/code/Magento/Paypal/Controller/Payflowexpress/Start/Interceptor.php(23): Magento\Paypal\Controller\Payflowexpress\Start\Interceptor->___callPlugins()
    #12 vendor/magento/framework/App/Action/Action.php(111): Magento\Paypal\Controller\Payflowexpress\Start\Interceptor->execute()
    #13 vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch()
    #14 vendor/magento/framework/Interception/Interceptor.php(138): Magento\Paypal\Controller\Payflowexpress\Start\Interceptor->___callParent()
    #15 vendor/magento/framework/Interception/Interceptor.php(153): Magento\Paypal\Controller\Payflowexpress\Start\Interceptor->Magento\Framework\Interception\{closure}()
    #16 generated/code/Magento/Paypal/Controller/Payflowexpress/Start/Interceptor.php(32): Magento\Paypal\Controller\Payflowexpress\Start\Interceptor->___callPlugins()
    #17 vendor/magento/framework/App/FrontController.php(245): Magento\Paypal\Controller\Payflowexpress\Start\Interceptor->dispatch()
    #18 vendor/magento/framework/App/FrontController.php(212): Magento\Framework\App\FrontController->getActionResponse()
    #19 vendor/magento/framework/App/FrontController.php(147): Magento\Framework\App\FrontController->processRequest()
    #20 vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch()
    #21 vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent()
    #22 vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(99): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}()
    #23 vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch()
    #24 app/code/Amasty/InvisibleCaptcha/Plugin/Framework/App/FrontControllerInterface/ValidateCaptcha.php(118): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}()
    #25 vendor/magento/framework/Interception/Interceptor.php(135): Amasty\InvisibleCaptcha\Plugin\Framework\App\FrontControllerInterface\ValidateCaptcha->aroundDispatch()
    #26 vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(71): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}()
    #27 vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch()
    #28 vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}()
    #29 generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins()
    #30 vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch()
    #31 vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->launch()
    #32 vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent()
    #33 vendor/mage2pro/core/Framework/Plugin/App/Http.php(10): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}()
    #34 vendor/magento/framework/Interception/Interceptor.php(135): Df\Framework\Plugin\App\Http->aroundLaunch()
    #35 vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}()
    #36 generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http\Interceptor->___callPlugins()
    #37 vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http\Interceptor->launch()
    #38 pub/index.php(30): Magento\Framework\App\Bootstrap->run()
    #39 {main}
]

1   Df\Framework\Log\Dispatcher::handle
    https://github.com/mage2pro/core/tree/10.4.3/Framework/Log/Dispatcher.php#L86

2   Monolog\Logger::addRecord
    vendor/monolog/monolog/src/Monolog/Logger.php:399

3   Monolog\Logger::critical
    vendor/monolog/monolog/src/Monolog/Logger.php:663

4   Magento\Framework\Logger\LoggerProxy::critical
    https://github.com/magento/magento2/tree/2.4.4/lib/internal/Magento/Framework/Logger/LoggerProxy.php#L118

5   Magento\Framework\App\Bootstrap::terminate
    https://github.com/magento/magento2/tree/2.4.4/lib/internal/Magento/Framework/App/Bootstrap.php#L445

6   Magento\Framework\App\Bootstrap::run
    https://github.com/magento/magento2/tree/2.4.4/lib/internal/Magento/Framework/App/Bootstrap.php#L275