-
-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 HttpException while upgrading Lychee from 4.5.3 to 4.6.0 #1506
Comments
This is definitely a new bug. We have just recently removed the variable I am only wondering why this has not been noticed before during our tests. |
I think this is a caching problem. Edit: just migrated my Prod to latest master, no such error. |
Please try to run the command
The output should look like this
The important points are clearing the cache for views, routes and configuration. @LycheeOrg/reviewers Maybe we should add the command |
Hello @nagmat84 , After issuing command Regards. |
* Run `optimize:clear` during update * Put optimize command on steroids * Repair optimize command * Adopted scripts * Apply suggestions from code review Co-authored-by: Kamil Iskra <kamil.01482@iskra.name> * Fixed unfinished sentence Co-authored-by: Matthias Nagel <matthias.h.nagel@gmail.com> Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
What is meant as "during update" is when you use git to pull the data. |
Weird. If I remember correctly, @ildyria removed the Did you also run
from the CLI and did that command succeed? |
Hello @nagmat84 ,
After running this Lychee works fine . @ildyria I am not using git update to pull files . Using the manual update method : https://lycheeorg.github.io/docs/update.html#update-manually
Exactly , with the 4.6.0 files + the commited one's (i.e replacing composer.json , /scripts/post-merge and adding /app/Console/Commands/Optimize.php). |
Hi, I am also getting the same error when upgrading from 4.5.3 to 4.6.1. The migration applies successfully. However when I try to access the admin url it throws the following error. **_HttpException Undefined variable $locale (View: [[PATH]]/resources/views/gallery.blade.php)_** I am on a shared hosting environment so won't be able to execute ./artisan optimize:clear command as I do not have CLI access. |
Detailed description of the problem [REQUIRED]
A clear and concise description of what the bug is.
I was in the process of upgrading Lychee 4.5.3 to 4.6.0 on 7.9.2009 (Core) with PHP 8.0, MYSQL 5.7, Apache 2.4 using the manual update method mentioned in docs :
https://lycheeorg.github.io/docs/update.html#update-manually
However after migrating the user and successful migration completion .
When I visit the URL i.e :
http://domain.com/{{lychee-folder}}/public/gallery
The following is thrown i.e :
500 HttpException Undefined variable $locale (View: /{{PATH}}/{{TO}}/{{LYCHEE}}/resources/views/gallery.blade.php)
Any way to resolve this? . Is it a known issue?
Steps to reproduce the issue
Steps to reproduce the behavior:
500 HttpException Undefined variable $locale (View: /{{PATH}}/{{TO}}/{{LYCHEE}}/resources/views/gallery.blade.php)
is thrown.Screenshots
![image](https://user-images.githubusercontent.com/17871448/188424751-f9383ca2-a4c5-438f-8845-576265c98c99.png)
Output of the diagnostics [REQUIRED]
Output from
php artisan lychee:diagnostics
Browser and system
Mozilla Firefox 104.0.1 (64-bit)
CentOS Linux release 7.9.2009 (Core)
The text was updated successfully, but these errors were encountered: