panichelpdesk / panichd

Ticketing system for Laravel 5.1 - 8.x. Allows to create new tickets via form only. Includes file attachments, ticket tags, filtering, scheduling and e-mail notifications.
MIT License
90 stars 41 forks source link

Trying to get property 'lang' of non-object #14

Closed vmakarov1720 closed 3 years ago

vmakarov1720 commented 4 years ago

Error

"Trying to get property 'lang' of non-object (View: C:\xampp\htdocs\laravel\ticketit\vendor\panichd\panichd\src\Views\shared\nav.blade.php) (View: C:\xampp\htdoc ▶"

xaviqv commented 4 years ago

Hi,

This error points that $setting var has not been initialized. This is done at PanicHDServiceProvider.php at line 98, so, if you're getting this error, it probably means that PanicHD service provider is not being loaded.

In addition of this, I see that your local laravel app folder is "ticketit". Either if you have installed a clean PanicHD installation or it is an upgrade from a Ticketit installation, I encourage you to follow the PanicHD installation step by step available in our readme.

After that, If you ensure to have followed all steps and still getting posted or another error, please specify:

hirog85 commented 4 years ago

Hi

I have the same problem...

image

how can i load PanicHD ? it's already in my providers in config/app.php.

vfic commented 4 years ago

I have the same problem... Capture

sprklinginfo commented 4 years ago

same error when trying to complete a ticket. In the source file 'Setting.php' I inserted 'dd(gettype($setting))' after line 56, the output does say the variable is an 'object'. So why it keeps complaining Trying to get property 'lang' of non-object...

sprklinginfo commented 4 years ago

just created a pull request https://github.com/panichelpdesk/panichd/pull/22 in order to fix this error. Please take a look. It works on my local.

Edgarborras94 commented 4 years ago

Did you guys tried to un comment this line (49) on Models/Setting.php: // Cache::flush(); to Cache::flush();

This may works, depending on your system specs and all :)