When I start uploading an image, a popup shows up with this message:

An error occurred:

<br> <b>Fatal error</b>: Cannot access empty property in <b>imagefield.module</b> on line <b>1086/b><br>

it's surprising that the message appears in a popup and not within the page.

1. dev from 19-Jan-2008
2. imagefield version 5x-2.0-rc8
3. permissions for your tmp and files directory: files drwxrwxr-x tmp
4. download method (public or private files) public
5. imagefield configuration???? what?
6. expected results: the image should upload into the field
7. the unexpected actual results: a strange popup shows up
8. Steps to reproduce the problem: no idea sorry

CommentFileSizeAuthor
#8 pageroute_module.patch500 bytesPollydor
#8 pageroute_pages.patch715 bytesPollydor

Comments

dnewkerk’s picture

I just tested rc8 and didn't experience this bug, so it's possible there's something more going on in your Drupal install... any reason why you are using a dev version of CCK? That looks like the primary difference I can see between your installation and mine. Anyhow just wanted to give my feedback in case it helps.
(by the way: by imagefield configuration, I believe it means however you have configured the settings for the particular imagefield that you added to your content type, e.g. is it multiple, required, etc)

- David

Farreres’s picture

Project: ImageField » Pageroute
Version: 5.x-2.0-rc8 » 5.x-1.0

I have seen this other bug report, perhaps they are related?

http://drupal.org/node/235499

In case it is, the CVS ID of my imagefield is
// $Id: imagefield.module,v 1.30.2.6.2.54 2008/04/21 06:51:48 dopry Exp $

I am using a dev version of CCK because I installed time ago panels2, but now I have removed them, so I have changed back to the stable version, but the error keeps showing.

Ok, I found the problem. I was using pageroute for creating a complex profile composed of several pages. It had to be pageroute who interferred. I am moving this to the pageroute bugs list.

socialnicheguru’s picture

subscribing. I am using imagefield 5.x-2.0-rc8 and I am getting the same problem
is anyone else having this problem?

eyalc’s picture

I have the same problem,
using:
node family 5.3
node profile 5.14
Pageroute 5.1
Imagefield 5.21

as we can see in the bugs lists, of pageroute,
this issue, came up, again, and again... and prevent many people from using it properly...

is there a chance to get a solution?

Pollydor’s picture

Same problem with imagefield on pageroute-nodes

See http://drupal.org/node/133725#comment-849347

I tried adding '#data_separation' => FALSE, to the form elements
in pageroute_pages.inc, and $form['#attributes'] = array('enctype' => 'multipart/form-data');
to the pageroute_decorate function in pageroute.module.

It seems to work, don't know if it will break something else.

pageroute 5.1
imagefield 5.21

Farreres’s picture

As I see it, this module is out of maintainment. I have listed all requests and none has been fixed nor closed in the last 27 weeks. And this module is clearly giving problems to the people that try it.

Farreres’s picture

@Pollydor: I have tried to implement your changes, but a patch would be much appreciated to apply directly all changes.

Pollydor’s picture

StatusFileSize
new715 bytes
new500 bytes

Here are two patches, try them
Please report if you get any trouble after implementing...

reed.richards’s picture

The maintainer of the module seems to have taken a vacation...or is working heavy on the new version.

However the #5 update worked for me and saved my freelance ass.

reed.richards’s picture

New update on this issue. It worked for a little while but now it's broken again even though the suggested corrections from #5 are implemented.

It seems to be some JavaScript-related error...testing a new idea[...a few minutes are passing]. Found it! I am using the Membership types and registration modification module and when a certain option is set it makes the imagefield JS or some JS throw an error. Turning that of makes it function again.

I've started a thread about that here http://drupal.org/node/264961

Farreres’s picture

I didn't post anything because I thought this patch corrected the problem. But it seems it doesn't. I suggest you checking http://drupal.org/project/nodehierarchy, which allows you to create content types and later assign a parent node. It even creates a menu for linking all nodes in the same node hierachy. This module offers more or less the same functionality we look for in pagefamily+pageroute and is quite well maintained and lot of people use it. I have decided to drop from pageroute and change to node hierarchy. I only use nodefamily for profilenodes now and don't use pageroute at all.

fago’s picture

hm, as you have noted I'm quite busy and had not enough time for maintaining pageroute very well.. sry :(

I'm using pageroute with an old 1.x imagefield version without any problems, but probably the 2.x version has changed somehow, so that it fails within a subform element. Is the bug still active?

Then I'll try to get some time to look at it.

reed.richards’s picture

For me the patch in #5,#8 worked well and so it should solve the problem. Including it in the dev should be enough I guess.

fago’s picture

hm, I think that's already fixed in the dev version. hm, I should do a new release.

kobnim’s picture

Hey, thanks for the patch! It worked!
- Mindy

Tauran’s picture

Version: 5.x-1.0 » 5.x-1.1
Status: Active » Fixed

Reopen if problem persits.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.