Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

500 error and stray index.php files?

first-time

Started by Spencer Goldade 5 years ago · 2 replies · 480 views
5 years ago

Hey there,

I'd been working on my site locally for quite a while, uploaded finally, and all seemed good. Now however I have a 500 error. I've followed all of the advice in the docs, from permissions to htaccess files but they didn't seem to solve things and I am having some weird issues.

When I type bin/grav commands into the console it doesn't do anything. And I don't mean that it hangs like it's trying to complete the operation and taking a long time. No, instead it just returns to a new line with the path still visible.

The second weird thing is that I seem to have an index.php file in literally every single folder in my Grav install, each with a random @include at the top that looks like gobbledy-gook but actually resolves into different file paths, which seems fishy...

Any advice?
My next order of operation is to remove all of these weird index files from my user folder, attempt a clean install of Grav, and try to add my content and theme back into it...

5 years ago

I did a clean install and replaced only the user folder. We'll see if it holds or if I get another 500 error after a while.

Right now it is doing something else odd and I can't figure out why.

When I go to my URL spencergoldade.ca, it instead tries to route to:
spencergoldade.ca/spencergoldade.ca

Hunting around in the system and site settings I have no idea why it is doing this. I seem to have the home page set properly. If you click on the "home" link or the site title it takes you to the right place, so at least I know it works.

Any ideas?

5 years ago

500 errors came back after trying to edit a page.
Increased PHP memory allowance out of pure experimentation and it seemed to help for now.

Suggested topics

Topic Participants Replies Views Activity
Support · by Duc , 11 hours ago
1 34 11 hours ago
Support · by Thomas, 1 week ago
3 109 19 hours ago
Support · by Anna, 4 days ago
2 101 2 days ago
Support · by Justin Young, 2 days ago
1 68 2 days ago
Support · by Duc , 1 week ago
2 106 6 days ago