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
8.73k stars 463 forks source link

The mailbox cannot be used in the production environment #649

Closed yjqphp closed 1 year ago

yjqphp commented 1 year ago

Recirculation step

1、shell execute composer install --no-dev --optimize-autoloader

2、shell exceute php bin/console uvdesk:refresh-mailbox -emails support@uvdesk.com

Repair:

1、composer require symfony/dom-crawler symfony/css-selector

komal-sh-27 commented 1 year ago

Thanks for reporting. We will review and check the issue. Thanks for your time and patience!!!

komal-sh-27 commented 1 year ago

We have checked and you have some changes in project, please follow the below steps:

  1. First we have run this command in our project root directory in dev mode:

composer install --no-dev --optimize-autoloader

Here showing an error like this:

Uncaught Error: Class 'Symfony\Bundle\WebProfilerBundle\WebProfilerBundle' not found

  1. Now we will uncommment some classes from bundles.php file under config/bundles.php file in your project:

    // Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
    // Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
    // Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
  2. Now we will delete some files also, please follow the below files path:

a. web_profiler.yaml file under the config/routes/web_profiler.yaml b. web_profiler.yaml file under the config/packages/web_profiler.yaml c. debug.yaml under the config/packages/debug.yaml**

  1. Now you will run the below command:

composer run-script post-install-cmd

  1. Now checked run the mailbox refresh command and here refreshed successfully.

If you are facing any issue then let us know.

komal-sh-27 commented 1 year ago

Now, we are closing this issue. If you have still facing any issue, you can reply to us with screenshots on the same issue thread.