Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Premature end of script headers: index.php (500 Error)

Started by Aki 9 years ago · 1 replies · 1479 views
9 years ago

I've got Internal Server Error suddenly.
The error_log says, "Premature end of script headers: index.php" .

Only a few posts shows Internal Server Error, not the whole site.This is blog post, listing page has no error , some individual posts only.
I checked trouble shootings, and everything is okay.
https://learn.getgrav.org/troubleshooting/internal-server-error

server: Apache
PHP:7.0.5
Grav: 1.3.7
server memory: 128MB
item.md file-size: 12.9KB
cache : on
debug : on

The post has only 3 photos, each size is under 50MB, most are just text(Japanese). I prefer
html tags than markdown so it's written in html tags.
After I've got the error, I reduced text almost half in volume then uploaded, with cache enable. The half size text post didn't show 500 error, so I added rest of texts, uploaded, whole texts were shown.
But once I cleared cache then reload(F5), it shows 500 error again.

How can I show whole texts, which has a bit of long story, without 500 error? What parameter should be set with what figure?

I have googled for a couple of hours but got no idea. Would anyone help me, please?
Thank you.

9 years ago

@Aki:
each size is under 50MB

If you resize or otherwise manipulate images via Gravs Asset management, PHP GD is used. Almost all Files used on the web are compressed. Manipulating them needs them to be uncompressed in Memory. If your filesize for images is larger than 10 MB, you should consider making the images smaller via an Image Program and retry.

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago