Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
forum.module
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
1 Nov 2005 at 20:38 UTC
Updated:
26 Nov 2005 at 10:20 UTC
Jump to comment: Most recent file
When viewing a Forum node and clicking the edit link (Example: node/6/edit), the page loads with no BODY content (blank page) and the log reports the following error:
"Cannot use string offset as an array in [...snip...]/includes/form.inc on line 262"
This is possibly related to other recent form.inc errors and PHP 5.0.5.
Tested using cvs as of today, PHP 5.0.5, MySQL 5.0.15, Apache 2.0.55, IE 6.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | forum_16.patch | 1.05 KB | chx |
Comments
Comment #1
Thomas Sewell commentedTo avoid confusion in different patched versions of form.inc, line 262 for me reads:
Sadly, I don't understand how the arrays are being used well enough to fix it. :)
Comment #2
Thomas Sewell commentedFurther research indicates that the problem is probably in:
$form['#tree'];Some checking appears a couple of lines later:
if (!$form['#tree'])Still trying to figure out what's supposed to happen and what is going on here.
$form['#tree'] is set, is not Null, is not an array (presumably the basic problem) and has a value that evaluates to TRUE.
In fact, the value of $form['#tree'] in this particular error case (at least the first time through) appears to be "L".
Any help in understanding what's going on would be appreciated.
Comment #3
chx commentedThis can't be! I swear I fixed this before. I even blogged the way of how to find what to fix.
Comment #4
Thomas Sewell commentedPatch solves the problem for me.
I can edit forum topics now. Thanks!
Comment #5
dries commentedThis has been committed to HEAD.
Comment #6
(not verified) commented