5 replies [Last post]
brizzo's picture
Offline
Joined: 03/02/2009
Juice: 8
Was this information Helpful?

Hi

Last week I made the move from using windows to Ubuntu. I've installed LAMP, drupal 6.10 and ubercart 2.0 beta4

All was going well until try to create content I can see the thumbnail of the image in the create content form but after pressing save, I get this error.

Fatal error: Cannot use string offset as an array in /var/www/drupal/sites/all/modules/ubercart/uc_product/uc_product.module on line 1470.

I can't upload any images, without the images everything works fine

Is this a permissions problems? I can't find a solution online I found someone with a similar issue but no solution.

This may be a simple mistake apologies if it is but can someone help.

cheers

brizzo's picture
Offline
Joined: 03/02/2009
Juice: 8
bump

Hi

Can anyone help with this problem?? If you need more information code examples or anything i'll be happy to supply it!

I've reinstalled everything on my home server 3 times and have uploaded to my host today hoping it was something to do with my lamp install, but it's still the same error.

I've checked the image status it says it's fine! automatically configured

Can someone help?? I've been learning drupal for a month and am really enjoying it, but i've had this problem for 3 days and there isn't any examples i can find anything on line to help solve this. I'd prefer not to ask but I've no idea what the problem is!

I've looked at the code in the uc_productmodule and and it mentions an image widget, I know php basics but I can't fathom this. I've followed the instructions to create content and it worked in drupal 5 but I would like to use drupal 6.

Everything else works fine in drupal 6 if I don't add images add an image and I get a fatal error.

help! Shocked

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: bump

What is your Apache/PHP error log reporting when you get a fatal error?

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: product images won't upload, can see the thumbnail then get

Are you sure this error comes when you save? Because it sounds exactly like the issue http://drupal.org/node/393490 which happens only when you try to preview the product node (but does *not* happen when you save).

<tr>.
Sam_RiteTimeDirect's picture
Offline
Joined: 10/20/2008
Juice: 96
I have the same issue

If I try to preview I get

Fatal error: Cannot use string offset as an array in /home/ritenec1/public_html/sites/all/modules/ubercart/uc_product/uc_product.module on line 1426

If I try to save I get:

Fatal error: Call to undefined function imagefield_content_is_empty() in /home/ritenec1/public_html/sites/all/modules/cck/content.module on line 900

Are the patches that are pointed to in http://drupal.org/node/393490 and http://drupal.org/node/394920 a good fix for this?

Sam

Sam_RiteTimeDirect's picture
Offline
Joined: 10/20/2008
Juice: 96
Re: I have the same issue

I found my problem. I forgot to run update php. Now I can save pictures.