Hi,
I don't know exactly where to put this question, but the problem is huge.
After an update of PHP to version 5.3.15 suddenly my frontpages on some sites (not all) dissapear.
In the drupal log I get a "page not found 500.shtml" error.
in the Cpanel log I get the folowing error.
[Wed Aug 08 11:09:32 2012] [error] [client 84.30.9.187] ] [notice] EACCELERATOR(6337): PHP crashed on opline 25 of method_exists() at /home/mmsj/public_html/sites/all/modules/cck-6.x-2.9/cck/includes/views/handlers/content_handler_field_multiple.inc:307, referer: http://www.studiojanssen.eu/
So there should be a problem with the method_exists() code in content_handler_field_multiple.inc.
As read in another issue I tried to changed line 307 from
if (method_exists('render_as_link', 'views_handler_field'))
to
if (method_exists('views_handler_field', 'render_as_link'))
This did bring the panels view back, but no images are loaded.
I think it's a sort of memory problem, but I have no idea where to look.
PHP memory linit is at 128Mb.
Any further suggestions....?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1719030-cck-content-handler-field-multiple-method-exists-fatal-error-fix.patch | 887 bytes | zyxware |
Comments
Comment #1
vincent rommelaars commentedHi there,
Problem seemed to be solved.
In ckk/includes/views/handlers/content_handler_field_multiple.inc
On line 307 change:
if (method_exists('render_as_link', 'views_handler_field')) {
to
if (is_object('render_as_link') && is_callable('render_as_link')->views_handler_field()) {
Now panels are working fine...
Comment #2
zyxware commentedThe same is true for page views as well and the fix in #1 fixes the problem.
Comment #3
zyxware commentedHave created this as a patch file.
Comment #4
acontretemps commentedHi,
I tried the mod, and solved a php crash. But further edit of some image field is now unavailable !!
The mod fixed a problem : I set up a new block on my homepage with info from a multiple field. Probably did I set it up uncorrectly because the php server crashed, and the server returned Error 500.
Modifying the .inc file on line 307 solved this problem, but right now, I cannot edit my pages anymore.
Any page made after this mod can be read, but my multiple image field CANNOT BE MODIFYED ANYMORE... the french for "An unrecoverable error occurred. This form was missing from the server "cache. Try reloading the page and submitting again."
I retried and retried, but nothingto do to get it working... Unless I remove the mod on line 307 (so using the original code... and have the error 500 again...)
Comment #5
bdichiara commentedI'm posting here in hopes to save somebody 2 days of debugging like myself. I rarely use Drupal and must maintain a few Drupal sites. We were getting a 500 Internal Server Error on one of our Drupal sites. Our server was simply reporting in Apache's error log "Premature end of script headers: index.php" and that is the only error I could find in relation to this issue. I spent 2 days tracking down where the error was coming from and only after discovering it was part of the CCK module's render_link method in content_handler_field_multiple did I locate this solution, which works fine, but I had no idea what the problem was, so had no idea to look here. I hope this helps someone not waste 2 days.