Closed (won't fix)
Project:
Drupal core
Version:
4.7.0-beta5
Component:
forms system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2005 at 19:39 UTC
Updated:
9 Mar 2006 at 18:58 UTC
Fatal error: Cannot create references to/from string offsets nor overloaded objects in /home/fabio/public_html/donation/includes/form.inc on line 244
This happen everytime a form of type 'date' is rendered by the forms api.
Reproducing this bug:
activate profile module and create a custom profile field of type 'date'
e.g.: birthdate
then try to edit it on your details page.. you get the error
My environment:
Today cvs version, php 4.4.1, mysql 4.1
Fabio
Comments
Comment #1
fax8 commentedsorry for this...
I made some errors on the update process...
I was not able to reproduce this bug on a fresh install...
I'm closing this.
Fabio
Comment #2
WeRockYourWeb.com commentedI am getting this error after applying changes generated with formupdater (http://drupal.org/node/37457) to modules, specifically the article and arooga modules (latest cvs):
Fatal error: Cannot create references to/from string offsets nor overloaded objects in drupal\includes\form.inc on line 312
I'm uncertain as to whether this is a problem with changes made by formupdater or the code in form.inc.
Prior to applying formupdater changes I would get the error:
Call to undefined function: form_select() in drupal\modules\article\article.module on line 119
These errors occur after installing the modules and entering settings (eg. admin -> settings -> article)
Alex
Comment #3
WeRockYourWeb.com commentedI just got the error again with another module (FCKEditor). I guess the question is whether the problem is with the changes formupdater makes to the modules or whether the problem lies in form.inc?
Any help is greatly appreciated!
Alex
Comment #4
markus_petrux commentedI have added a field of type date using the profile module, no problems so far.
I'm also writing a module that uses a form field of type date in its settings page, no problems so far.
My config: PHP 4.4.0, MySQL 4.1.8
Maybe the problem lies in the way other contrib modules deal with 'date' fields?
Comment #5
WeRockYourWeb.com commentedActually, I don't have a problem either adding "date" for profiles. But I'm getting these errors in a ton of modules now, the list so far includes:
article
arooga
fckeditor
im (instant messenger)
with the instant messenger i couldn't even get back into admin -> modules, i had to delete the im directory to be able to get back in.
I'm not sure if there's something I'm missing in regards to how formupdater is used - I paste in the module code, get the recommended code changes, and make them. After this I get the "Cannot create references to/from string offsets nor overloaded objects...in form.inc" errors.
Alex
Comment #6
dopry commentedThe errors you describe are in contrib modules. Please open an issue against the appropriate contrib module, and not against drupal core.
Comment #7
WeRockYourWeb.com commentedMy apologies :) Here is the new post in the formupdater area -> http://drupal.org/node/53230
Cheers
Alex