APP_URL/admin 500 error

Solved
elkinkm97

Oct 21st, 2021 06:06 PM

Hi, I was recently following along on the video tutorial and documentation and was trying to install the tallstack theme. I am able to login to the admin account and access the "My Profile" and "Settings" tabs when clicking on the user profile picture located in the top right corner. However, when I click on the "Admin" section I am left with a "500 Server Error". Plese let me know if you have any suggestions on how to go about this issue. Thanks!!Screen Shot 2021-10-21 at 5.42.22 PM.png

bobbyiliev

Oct 22nd, 2021 12:27 AM

Hi there,

I would recommend enabling DEBUG mode via your .env file. That way you will see the actual error rather than the generic 500 error.

Feel free to share the error here and I should be able to further advise you.

Best,

Bobby

elkinkm97

Oct 24th, 2021 05:11 PM

Hi Bobby!

Thanks for the reply; I just turned on debug mode and this is what I saw. I tried looking for some past posts on this issue and found this link: https://devdojo.com/question/route-voyagerthemeindex-not-defined

Unfortunately, it appears the file may have been updated/modified since the release time in the post.

Any advice would be appreciated - Thanks!!

Screen Shot 2021-10-24 at 7.08.08 PM.png

bobbyiliev

Oct 24th, 2021 11:48 PM

Hi there,

This is quite interesting, this error should no longer occur as it seems to have been fixed, can you try running composer install again and see if any errors occur during the installation?

Also what is the PHP version that you are using? And did you run php artisan:migrate and php artisan db:seed?

elkinkm97

Oct 25th, 2021 11:46 AM

Hi Bobby,

I am using PHP 8.0.12. I have included a screenshot of the commands you asked me to run in addition to my schema on my DB. As the terminal shows there is "Nothing to install, update or remove" when running composer install.

I have also re-ran the php artisan:migrate command and it returns "Nothing to migrate". Running php artisan db:seed results in an integrity violation (likely due to the entities and attributes already being present in the DB). I have also ran these commands prior to this setup but re-ran them again just to double check I have not missed anything.

Screen Shot 2021-10-25 at 1.37.27 PM.png

bobbyiliev

Oct 25th, 2021 11:24 PM

Best Answer

Hi there,

This is very interesting, I've been looking into this for a while but I have not been able to replicate it on my end.

I could suggest a couple of things:

  • Make sure that you've downloaded the latest Wave version
  • Try running the following commands:
composer dump-autoload
php artisan cache:clear

If you are still seeing the problem, can you share the full stack trace from your Laravel error log at storage/logs/laravel.log here so I could have a look at it?

Report
1
elkinkm97

Oct 28th, 2021 03:52 PM

Hi Bobby,

I decided to create a new project from scratch and managed to get the admin page to work. I believe that I may not have been using the latest version of Wave as you mentioned before (I made sure to go under the tags button on GitHub to download the latest version)

Thank you again for your help! I greatly appreciate it :)

Report
1
bobbyiliev

Oct 29th, 2021 12:39 AM

Hi there,

No problem at all! Happy to hear that it’s all working now!

Regards,

Bobby