uvdesk / community-skeleton

UVdesk Opensource Community Helpdesk Project built for all to make a Full Ticketing Support System along with many more other features.
https://www.uvdesk.com
MIT License
7.18k stars 448 forks source link

Deprecation warnings and 500 http error #662

Closed adam3278 closed 1 year ago

adam3278 commented 1 year ago

Hello, I face some issues with newest UVdesk installation. There are no working default language change, logo upload, sending emails, but the error log displays multiple warnings (idk is there any error) like this SMALL example:

[2023-05-16T23:37:45.504462+02:00] deprecation.INFO: User Deprecated: Since symfony/framework-bundle 5.4: Method "Symfony\Bundle\FrameworkBundle\Controller\AbstractController::getDoctrine()" is deprecated, inject an instance of ManagerRegistry in your controller instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/framework-bundle 5.4: Method \"Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController::getDoctrine()\" is deprecated, inject an instance of ManagerRegistry in your controller instead. at /var/www/html/vendor/symfony/framework-bundle/Controller/AbstractController.php:386)"} []
[2023-05-16T23:37:45.508965+02:00] deprecation.INFO: User Deprecated: Since symfony/framework-bundle 5.4: Method "Symfony\Bundle\FrameworkBundle\Controller\AbstractController::getDoctrine()" is deprecated, inject an instance of ManagerRegistry in your controller instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/framework-bundle 5.4: Method \"Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController::getDoctrine()\" is deprecated, inject an instance of ManagerRegistry in your controller instead. at /var/www/html/vendor/symfony/framework-bundle/Controller/AbstractController.php:386)"} []
[2023-05-16T23:37:45.509345+02:00] deprecation.INFO: User Deprecated: Since symfony/framework-bundle 5.4: Method "Symfony\Bundle\FrameworkBundle\Controller\AbstractController::getDoctrine()" is deprecated, inject an instance of ManagerRegistry in your controller instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/framework-bundle 5.4: Method \"Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController::getDoctrine()\" is deprecated, inject an instance of ManagerRegistry in your controller instead. at /var/www/html/vendor/symfony/framework-bundle/Controller/AbstractController.php:386)"} []
[2023-05-16T23:37:45.516939+02:00] deprecation.INFO: User Deprecated: Since symfony/security-bundle 5.4: Setting the $authenticatorManagerEnabled argument of "Symfony\Bundle\SecurityBundle\DataCollector\SecurityDataCollector::__construct" to "false" is deprecated, use the new authenticator system instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/security-bundle 5.4: Setting the $authenticatorManagerEnabled argument of \"Symfony\\Bundle\\SecurityBundle\\DataCollector\\SecurityDataCollector::__construct\" to \"false\" is deprecated, use the new authenticator system instead. at /var/www/html/vendor/symfony/security-bundle/DataCollector/SecurityDataCollector.php:52)"} []
[2023-05-16T23:37:45.517632+02:00] deprecation.INFO: User Deprecated: Since symfony/security-bundle 5.4: The "Symfony\Bundle\SecurityBundle\Security\FirewallConfig::allowsAnonymous()" method is deprecated. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/security-bundle 5.4: The \"Symfony\\Bundle\\SecurityBundle\\Security\\FirewallConfig::allowsAnonymous()\" method is deprecated. at /var/www/html/vendor/symfony/security-bundle/Security/FirewallConfig.php:72)"} []

I'm running the instance via this Dockerfile:

FROM thecodingmachine/php:8.1-v4-apache

ENV PHP_EXTENSION_MAILPARSE=1 \
    PHP_EXTENSION_IMAP=1 \
    APACHE_DOCUMENT_ROOT=/var/www/html/public \
    COMPOSER_MEMORY_LIMIT=-1 \
    PHP_INI_MEMORY_LIMIT=2g

RUN composer clear-cache \
    && composer create-project uvdesk/community-skeleton /var/www/html

RUN a2enmod rewrite \
    && cd /var/www/html/ \
    && chmod 777 .env var config \
    && php bin/console c:c

I undestand it is a problem with outdated dependencies, so there is a question ongoing "is a 2.0.0-dev enough stable to use in production?".

komal-sh-27 commented 1 year ago

We have checked and here we are not able to reproduce like these issues. If you are using latest version so once you can try with the php-7.4 version.

If you want using php-8.1 version then for swiftmailer issue you can installed the development v-1.2.0 release will also most likely be renamed to v-2.0.