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.53k stars 459 forks source link

Variable "user_service" does not exist. #267

Closed umwl closed 4 years ago

umwl commented 4 years ago

Bug report

Title

Variable "user_service" does not exist.

Issue Description

After clean install from composer latest version of uvdesk (1.0.11), sucesfully configuration via web, app crashed.

Preconditions

Please provide as detailed information about your environment as possible.

1. php 7.2.31 + apache 2.4.6 (centos)

Steps to reproduce

It is important to provide a set of clear steps to reproduce this bug.If relevant please include code samples.

1. composer create-project uvdesk/community-skeleton helpdesk 

it return error during configuring

image

2. configure by web

Expected result

Tell us what should happen.

Actual result

error: Variable "user_service" does not exist. image

papnoisanjeev commented 4 years ago

@umwl please clear your project cache by below command:

php bin/console c:c

and make a try.

OR

If above solution does not work download direct Zip file of project then after Unzip just need to setup. projectZip

umwl commented 4 years ago

@papnoisanjeev thans for reply. php bin/console c:c did not help.

Instalation from zip working, but with this version from link (1.0.10) i have problem with mail. After create ticket or password recovery action mail is not send. php bin/console swiftmailer:email:send work properly.

composer update return: PHP Fatal error: Uncaught Error: Call to undefined method Symfony\Component\Yaml\Yaml::parseFile() in /var/www/html/helpdesk/vendor/uvdesk/composer-plugin/lib/Composer/ComposerPackage.php:125

and app crash same as with new installation.

papnoisanjeev commented 4 years ago

@umwl

Please don't run composer update after setup of project.(as many dependent package are not compatible with latest packages so it will crash this).

After successfully installing the project you need to setup your swift mailer then you will be able to send mails. If not you can see what error cause you are not able to send mails.

Locate the file vendor->uvdesk->core-framework->Services->EmailService.php. Open the EmailService.php reach to sendMail() function.

and dump() the exception as in attached link.

It will show the error you are facing while sending mails.

umwl commented 4 years ago

@papnoisanjeev thank you very much. Add dump to EmailService helped me and mail work fine now ;-)

papnoisanjeev commented 4 years ago

@umwl Glad to know that your issue has been resolved. Stay tuned with https://github.com/uvdesk/community-skeleton for further release and updates in project.