/admin returns 500 Internal Server Error #63

Closed
opened 2018-07-28 21:02:08 +01:00 by aheathershaw · 9 comments
Owner

LNT00:

At some point /admin stopped working and returns 500 Internal Server Error.
/admin/albums is working correctly.

I see the same issue on the dev site, /admin is working, but /admin/albums is not working.

[LNT00](https://github.com/LNT00): At some point /admin stopped working and returns 500 Internal Server Error. /admin/albums is working correctly. I see the same issue on the dev site, /admin is working, but /admin/albums is not working.
aheathershaw self-assigned this 2018-07-28 21:02:08 +01:00
Author
Owner

Both /admin and /admin/albums are working fine for me on the dev site.

Is there anything helpful logged in your log file - in blue-twilight/storage/logs (date stamped)?

Also do you see a screen that says "500 Internal Server Error" or do you see a white screen with a red bar that says "an error occurred"?

Both /admin and /admin/albums are working fine for me on the dev site. Is there anything helpful logged in your log file - in blue-twilight/storage/logs (date stamped)? Also do you see a screen that says "500 Internal Server Error" or do you see a white screen with a red bar that says "an error occurred"?
Author
Owner

LNT00:

I only see 500 Internal Server Error, and the same on dev.

I have a lot of issue in logs.

Still, nothing logged for the 500 error.

[LNT00](https://github.com/LNT00): I only see 500 Internal Server Error, and the same on dev. I have a lot of issue in logs. Still, nothing logged for the 500 error. ![](/attachments/2e37dabc-4a06-4d8c-b854-6d8d31da975a)
Author
Owner

LNT00:

I found this in root/error_log:
[02-Oct-2017 15:35:02 America/New_York] PHP Warning: system() has been disabled for security reasons in /public/update.php on line 98

and from public/error_log:
[02-Oct-2017 20:35:03 Europe/London] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 142

[LNT00](https://github.com/LNT00): I found this in root/error_log: [02-Oct-2017 15:35:02 America/New_York] PHP Warning: system() has been disabled for security reasons in /public/update.php on line 98 and from public/error_log: [02-Oct-2017 20:35:03 Europe/London] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 142
Author
Owner

I'm really struggling to see what's wrong here. I can access /admin/albums just fine on the dev site - and there are no errors logged for today at all. The last message was logged around 30 hours ago.

Is there something in particular you're doing that's triggering the error? Can you walk me through the steps you're taking?

Also it would be helpful to turn off Internet Explorer's "friendly errors" as this may be hiding the actual error.

I'm really struggling to see what's wrong here. I can access /admin/albums just fine on the dev site - and there are no errors logged for today at all. The last message was logged around 30 hours ago. ![](/attachments/c12a800f-5160-4b99-a1b6-feb00dc7ca81) Is there something in particular you're doing that's triggering the error? Can you walk me through the steps you're taking? Also it would be helpful to [turn off Internet Explorer's "friendly errors"](https://blogs.msdn.microsoft.com/ieinternals/2010/08/18/friendly-http-error-pages/) as this may be hiding the actual error.
Author
Owner

LNT00:

No idea really why that is happening. And what is strange is that it also happening on your dev, where i didn't make any changes.

I tried /admin/users (direct link) and this also works, so it's strange why /admin is not working

It's not browser dependent, i tried on Firefox and Chrome also. 500 is not a browser specific error, but still...

Later edit:
I've upgraded to version 2.1.0 and no changes. I also installed a clean version and i don't have this issue there. Probably something related to my hosting, or domain settings, although i checked and didn't find anything strange.

[LNT00](https://github.com/LNT00): No idea really why that is happening. And what is strange is that it also happening on your dev, where i didn't make any changes. I tried /admin/users (direct link) and this also works, so it's strange why /admin is not working It's not browser dependent, i tried on Firefox and Chrome also. 500 is not a browser specific error, but still... Later edit: I've upgraded to version 2.1.0 and no changes. I also installed a clean version and i don't have this issue there. Probably something related to my hosting, or domain settings, although i checked and didn't find anything strange.
Author
Owner

LNT00:

I opened a ticket at my hosting company and they seem to have fixed the problem, /admin is now working. So it's not an app issue, rather a hosting issue. It was clear since /admin/albums was working.

I think this can be closed.

[LNT00](https://github.com/LNT00): I opened a ticket at my hosting company and they seem to have fixed the problem, /admin is now working. So it's not an app issue, rather a hosting issue. It was clear since /admin/albums was working. I think this can be closed.
Author
Owner

Ok great. 500 is definitely a server side issue but I would have been really interested to see the actual error page as it was returned from the server.

Unfortunately Internet Explorer display its own “friendly” error page which isn’t much help, that’s why I’d asked you to turn off friendly error messages so I could try and work out what it was.

I couldn’t see any 500 errors in my dev logs so have no idea what was happening!

Ok great. 500 is definitely a server side issue but I would have been really interested to see the actual error page as it was returned from the server. Unfortunately Internet Explorer display its own “friendly” error page which isn’t much help, that’s why I’d asked you to turn off friendly error messages so I could try and work out what it was. I couldn’t see any 500 errors in my dev logs so have no idea what was happening!
Author
Owner
Migrated from https://github.com/andysh-uk/blue-twilight/issues/63
Author
Owner

FYI, I believe #84 resolves this - I came across a similar issue when logged in as a non-admin user account. It has been resolved in v2.1.2.

FYI, I believe #84 resolves this - I came across a similar issue when logged in as a non-admin user account. It has been resolved in v2.1.2.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: aheathershaw/blue-twilight#63
No description provided.