• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Forwarded to devs Laravel Toolkit generates Laravel Exception whenever used

Martin Allen

New Pleskian
Username:

TITLE

Laravel Toolkit generates Laravel Exception whenever used

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Laravel Toolkit, Version 1.4.2-221, AlmaLinux 8.7 (Stone Smilodon)

PROBLEM DESCRIPTION

Whenever an action within the Laravel Toolkit is triggered e.g. deployment, the following Exception is thrown by Laravel

production.ERROR: There are no commands defined in the "plesk-ext-laravel" namespace. {"exception":"[object] (Symfony\Component\Console\Exception\NamespaceNotFoundException(code: 0): There are no commands defined in the "plesk-ext-laravel" namespace. at /var/www/vhosts/***redacted***/application/vendor/symfony/console/Application.php:632)"} []

Instead of simply executing a command in the "plesk-ext-laravel" namespace, the "Laravel Toolkit" should first check if the package is installed.

This causes Laravel Logs to include lots of extra unnecessary exceptions, and automated error logging (e.g. automated error notifications to Slack / Email) are constantly being triggered

STEPS TO REPRODUCE

Setup a Laravel Application that does NOT have the plesk-ext-laravel package installed

Perform an automated deployment, then check the Laravel logs

ACTUAL RESULT

production.ERROR: There are no commands defined in the "plesk-ext-laravel" namespace. {"exception":"[object] (Symfony\Component\Console\Exception\NamespaceNotFoundException(code: 0): There are no commands defined in the "plesk-ext-laravel" namespace. at /var/www/vhosts/***redacted***/application/vendor/symfony/console/Application.php:632)"} []

is added to logs (as Logs can be configured differently in each Laravel application, results may vary depending upon this configuration)

EXPECTED RESULT

No Exceptions to be thrown

ANY ADDITIONAL INFORMATION

See Issue - Latest update on "Laravel Toolkit" causes Errors
for more info

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Thank you for reporting. This has been forwarded as ID [PPS-13969] to developers. You can use this ID to point support staff to the case if new questions come up.
 
The bug was already known and has also been fixed here already. The fix will become available in one of the nearest updates. Issue ID [EXTPLESK-4335].
 
Back
Top