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

fax8’s picture

Status: Active » Closed (fixed)

sorry 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

WeRockYourWeb.com’s picture

Version: 4.7.0-beta2 » 4.7.0-beta5
Priority: Critical » Normal
Status: Closed (fixed) » Active

I 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

WeRockYourWeb.com’s picture

Priority: Normal » Critical

I 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

markus_petrux’s picture

I 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?

WeRockYourWeb.com’s picture

Actually, 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

dopry’s picture

Status: Active » Closed (won't fix)

The errors you describe are in contrib modules. Please open an issue against the appropriate contrib module, and not against drupal core.

WeRockYourWeb.com’s picture

My apologies :) Here is the new post in the formupdater area -> http://drupal.org/node/53230

Cheers
Alex