Timeline for Error 500 only on permissions page
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 2, 2013 at 12:39 | history | edited | avpaderno♦ |
edited tags
|
|
Sep 1, 2012 at 3:01 | history | tweeted | twitter.com/#!/StackDrupal/status/241732560856686594 | ||
Aug 31, 2012 at 16:41 | answer | added | Rider_X | timeline score: 2 | |
Aug 31, 2012 at 16:27 | history | edited | Epok | CC BY-SA 3.0 |
added 190 characters in body
|
Aug 31, 2012 at 16:21 | comment | added | Clive♦ |
Problem is page.tpl.php gets executed so late on in the build process that the script will probably have timed out before it reaches your ini_set() code. To be honest the very best possible place for it is at the start of index.php, which gets called first. Obviously hacking core files is a big no-no but at the end of the day this is just a PHP script...needs must
|
|
Aug 31, 2012 at 16:18 | comment | added | Rider_X | The PHP process may also be running out of memory if it is on shared hosting. I had this problem before, the drupal bootstrap would fail during page builds. | |
Aug 31, 2012 at 16:11 | comment | added | Epok |
@Clive it's weird but it seems that i can change it but when i put my code in page.tpl.php ini_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! For max_allowed_packet i send a message to see if they can give me my exact configuration.
|
|
Aug 31, 2012 at 15:30 | answer | added | Hamid Nikmehr | timeline score: 0 | |
Aug 31, 2012 at 15:02 | comment | added | Clive♦ |
@Epok It won't have any negative effect on Drupal to increase PHP settings via 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 the max_allowed_packet setting in my.cnf
|
|
Aug 31, 2012 at 14:37 | comment | added | Epok |
Thanks for all the advice...I made a test with 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)?
|
|
Aug 31, 2012 at 14:32 | comment | added | zerolab | try liquidweb.com/kb/apache-error-premature-end-of-script-headers -- it can be any number of reasons, including a resource limit on the shared hosting | |
Aug 31, 2012 at 14:10 | history | asked | Epok | CC BY-SA 3.0 |