CCK display fields

Events happening in the community are now at Drupal community events on www.drupal.org.
jenifertucker's picture

Hi everyone

I don't know if this is the right place to post this, but it's getting to be desperate measures to try and get rid of this warning message that I've had on my sites since January :-(

I've posted it as an issue over on cck issues:
http://drupal.org/node/1415342

But nobody has so far replied.

The message is:

Call to undefined function _content_is_empty() in .../sites/all/modules/cck/content.module on line 1380

I've been trying to solve this and it looks like CCK version 6.x-3.x-dev is also having people report the same issue - http://drupal.org/node/541768

All was working OK until I updated a display field on one of my content types by changing the label from "Above" to "Inline".

Since then, the following warning message is being displayed for that content type:

warning: Illegal offset type in isset or empty in .../sites/all/modules/cck/content.module on line 1380.

Drupal 6.22
PHP 5.3.2
MySQL 5.1.41
CCK 6.x-2.9

Has anyone else experienced this and found a solution?

Thanks.

Comments

Have you tried deleting the

wfx's picture

Have you tried deleting the field and re-adding?

The change I made from

jenifertucker's picture

The change I made from "above" to "inline" worked so that's not the problem. I just don't understand why the message is being displayed. The field itself has been there for some time so there's valid data being stored which means I can't delete it.

Do you know what the warning message itself us telling me?

You also need to upgrade

wfx's picture

You also need to upgrade Drupal. You're running 6.22 and 6.25 is the latest release. That may fix your issue. Be sure to back up your DB first.

You are running PHP 5.3 which is technically supported but there are still some rough spots. We upgraded from Drupal 5 to Drupal 6 last month and had all kinds of errors at first. Slowly things have been patched.

My typo, Drupal core was

jenifertucker's picture

My typo, Drupal core was upgraded to 6.25 last week but the warning message remained.

Does the warning message suggest it's PHP 5.3 as I know I've had problems like yourselves with referencing and have applied patches to modules - none for cck though.

I'm not sure. Did you try the

wfx's picture

I'm not sure. Did you try the patch proposed on #27?
http://drupal.org/node/541768#comment-5018916

That patch is for the latest

jenifertucker's picture

That patch is for the latest dev version and the function the patch is for isn't in CCK 6.x-2.9. The dev version doesn't solve this particular problem itself as there's no mention in the release notes. As far as I can tell many people have grumbled about it, but nothing been released in the module updates.

No luck with CCK :-( I

jenifertucker's picture

No luck with CCK :-(

I downloaded the very latest dev version of CCK (6.x-3.x-dev) and applied the patch but this didn't remove the warning message.

warning: Illegal offset type in isset or empty in /var/local/donkeys-git/drupal-6/sites/all/modules/cck/content.module on line 1429.

I cleared the web browser cache as well as clearing the site cache just in case.

Am at a total loss as to what is causing this. Has anyone come across this? Please share how you fixed the problem.

Wish I knew the answer... :(

wfx's picture

Wish I knew the answer... :( Try the IRC channels, that's your best hope.

Thanks anyway

jenifertucker's picture

Thanks anyway.

Not sure if it's the same

maomaohuhu's picture

Not sure if it's the same issue, but I have the same warning message that you mention in http://drupal.org/node/1415342 ( warning: Illegal offset type in isset or empty in .../sites/all/modules/cck/content.module on line 1380. )

I don't have a solution but debugged my issue a little further and posted a message on this thread : http://drupal.org/node/1394858

$formatter_name variables should be strings

jenifertucker's picture

Thanks maomoahuhu.

I too have tried to look at the array and understand what's going on, and like you, I'm not familiar enough with Drupal internals to figure out what it is.

I listed this bug as an issue on the CCK module months ago, but so far there is no fix. Should I discover it, will certainly let you know.

Thanks again.

Web Managers/Content Editors

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: