I know that there are a lot of topic concerning the famous error 500 but i didn't find my answer in one of them.
Actually i have an error 500 when i load admin/people/permissions
or when i'am trying to save new permissions. It's not all the time but i will say that it happens 80% of the time.
This permission page is very slow to load and when i haven't this error, it takes my navigator between 30s to 1m to display it.
I used google developper tools for this page and the result of the audit was:
36 requests ❘ 138.40KB transferred ❘ 27.57s (onload: 27.27s, DOMContentLoaded: 25.58s)
I edit my post and follow the trick that gave me H.NiK and i have impressive result for now
38 requests ❘ 17.09KB transferred ❘ 2.34s (onload: 1.76s, DOMContentLoaded: 1.42s
I have a lot of fields on the permission page more than 150 i think (because of the module fields permissions).
I watch the log of my server and i just have the same information:
Premature end of script headers: index.php, referer: http://blabla.com/admin/people/permissions
I have 25 lines of this today on this page.
Have you any idea why i have this error only appears on this page?And maybe how i can track this error and resolve my problem? Is it possible that a module or a js file trigger this error?
ps: i'm on a shared hosting, so i can't touch any configuration on my server (php.ini,my.ini)
Thanks,
ini_get('max_execution_time')
and i have 120. I don't know if this value is good or not but i haven't a dedicated server so i can't touch the php.ini file. Is it possible to put a ini_set directly at the beginning of page.tpl.php to try to change this value without any (bad) repercution for Drupal (we never know)?ini_set
, but if you're on shared hosting I'd be really surprised if you're allowed to set your own scripts' execution time from PHP. They normally have that locked down. The other thing to check (which I guess you can't) is themax_allowed_packet
setting in my.cnfini_set('max_execution_time',200);echo ini_set('max_execution_time')
nothing works...But when i put this code in a test.module that i created last month in my function test_form_alter it's works, it displays me 200! Formax_allowed_packet
i send a message to see if they can give me my exact configuration.