magedin / magento2-module-trojan-request-blocker

This robust extension acts as a shield, detecting and blocking malicious requests before they can disrupt your e-commerce operations. Whether it’s bots, fraudulent actions, or unusual traffic spikes, MagedIn_TrojanRequestBlocker is designed to guard your store from potentially harmful activity.
Other
0 stars 2 forks source link

String Type Error when accessing admin #1

Open georgedm06 opened 2 months ago

georgedm06 commented 2 months ago

Screenshot 2024-09-13 at 12 00 07 PM

After installing the module and attempting to access the admin I received the following error.

TypeError: explode(): Argument #2 ($string) must be of type string, null given in /var/www/html/vendor/magedin/module-trojan-request-blocker/Model/Config.php:67 Stack trace:

0 /var/www/html/vendor/magedin/module-trojan-request-blocker/Model/Config.php(67): explode()

1 /var/www/html/vendor/magedin/module-trojan-request-blocker/Service/Patterns/ConfigPatterns.php(43): MagedIn\TrojanRequestBlocker\Model\Config->getAdditionalPatterns()

2 /var/www/html/vendor/magedin/module-trojan-request-blocker/Service/PatternsLoader.php(63): MagedIn\TrojanRequestBlocker\Service\Patterns\ConfigPatterns->load()

3 /var/www/html/vendor/magedin/module-trojan-request-blocker/Service/Validator/PostRequest.php(70): MagedIn\TrojanRequestBlocker\Service\PatternsLoader->load()

4 /var/www/html/vendor/magedin/module-trojan-request-blocker/Service/Validator/PostRequest.php(52): MagedIn\TrojanRequestBlocker\Service\Validator\PostRequest->doValidatePostData()

5 /var/www/html/vendor/magedin/module-trojan-request-blocker/Plugin/ValidateTrojanPostRequest.php(64): MagedIn\TrojanRequestBlocker\Service\Validator\PostRequest->validate()

6 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(121): MagedIn\TrojanRequestBlocker\Plugin\ValidateTrojanPostRequest->beforeDispatch()

7 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}()

8 /var/www/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins()

9 /var/www/html/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch()

10 /var/www/html/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http->launch()

11 /var/www/html/pub/index.php(30): Magento\Framework\App\Bootstrap->run()

12 {main}

todorovj commented 3 days ago

@tiagosampaio do you have any updates regarding this? Our client encountered the same issue

tiagosampaio commented 3 days ago

Hey, @georgedm06 and @todorovj. Thank you for opening this issue. The good news is that release 1.0.1 should fix this problem and is already available for you to download it and test it.

Please let me know if it works so I can close this issue.

Thanks, -Tiago