Is there no flexinode for 4.7? If so then down with 4.7, just kidding. Has someone updated flexinode for 4.7 yet?

Comments

thomjjames’s picture

I've using the CVS version found here: http://drupal.org/node/5737/release

its all seems to be working fine for me on 4.7 although i had afew problems with the image field, which i've now sorted.

hope that helps

Tom

______________________________________________
https://tomswebstuff.com

benma’s picture

Hello Tom,

I'm not sure whether the problems I'm having are the same you had - images don't show up in preview, and upon submission (only if no image is uploaded), I get the message:

Attempt to assign property of non-object in /home/.domain/benma/tpn_new/modules/flexinode/field_image.inc on line 47.
Attempt to assign property of non-object in /home/.domain/benma/tpn_new/modules/flexinode/field_image.inc on line 48.

How did you fix your image field?

Ben.

thomjjames’s picture

Hi,

that doesn't seem to be the error i was getting.

try the following:
are the images being uploaded can you look at your server via FTP?? that'd be where i'd look first.
then check the 'files' folder has 777 chmod permissions.

heres the 2 issues i had with it and the fixes i found.
1. http://drupal.org/node/60672 [display problems due to base_url removal when using custom node templates]
2. http://drupal.org/node/50272 [this was the main error i was getting]

hope that helps let me know if it doesn't, i've spent a fair bit of time customising the image side of flexinode for my projects so i feel quite comfortable with it now.

cheers
Tom

______________________________________________
https://tomswebstuff.com

benma’s picture

Hi,

a few more details on what is happening:
I'm having a flexinode with an image field, which is not required.

Case 1: I try to upload an image
- using the preview, the image does not appear in the preview, and it is not uploaded into the files folder. The image upload field is empty, and there is no note about that an image was uploaded.
- using submit, the image is uploaded and shown in the node - no problems.

Case 2: I'm not using the image field:
- upon preview, everything looks fine
- upon submit, I receive the warning mentioned above, but the node still appears to be working fine.

The strange thing is that I had exactly the same setup working before - only then I had a problem with taxonomy.module, which let me make a fresh installation. Now that problem miracously disappeared, and this one shows up...

Any help is greatly appreciated!

Ben.

Edit:

I tried another case: I made the Image field required.
- upon both preview and submit, drupal complains that 'Image field is required.', the image is not uploaded to the server, and the image field is empty as well...

I'll file a bug report on this.
Ben.

jodo’s picture

Have you resolved this:
I tried another case: I made the Image field required.
- upon both preview and submit, drupal complains that 'Image field is required.', the image is not uploaded to the server, and the image field is empty as well...

Thanks

benma’s picture

Hello,

luckily I don't need the image field to be required, I only did it for testing... Now I instruct my users to fill in the image field only before pressing the submit button - it's not ideal, but it works. And when the 4.7 version of flexinode comes out (or cck gets an image field), this will hopefully be solved.

Ben.

jodo’s picture

Thanks for replying I was hoping there was a fix. Really need this for a "can't learn/use html" client who needs the ability to easily load images into a node.

BTW the error meassage that limits the file to 100k. Where is that size set? Have I overlooked some configuration?

Joe

robomalo’s picture

admin > content > content types

Click on "edit field" next to the image field you need to set the limit on.

Under options type the max file size you want to allow under "Maximum picture size."

jodo’s picture

Thanks robomalo. As suspected I had missed that. Even though I looked right at it more than once.

tinycg’s picture

I to have a client that will need to easily load images into a node and am getting the errors, same as above in both flexinode, and the imagefield. I haven't had a chance to look at the code to closely if I find something I'll post it.

melon’s picture

Here's how I fixed the image field issue in field_image.inc:

Change field_image.inc:48
from this:

 $node->$fieldname->smallpath = flexinode_field_image_make_smaller($node->$fieldname->filepath, '_sm', $field->options[2]);
 $node->$fieldname->thumbpath = flexinode_field_image_make_smaller($node->$fieldname->filepath, '_th', $field->options[3]); 

to this:

 if (is_object($node->$fieldname)) :
 $node->$fieldname->smallpath = flexinode_field_image_make_smaller($node->$fieldname->filepath, '_sm', $field->options[2]);
 $node->$fieldname->thumbpath = flexinode_field_image_make_smaller($node->$fieldname->filepath, '_th', $field->options[3]);
 endif; 

WARNING! Absolutely no warranty on this hack, just firecalming!

drupalninja99’s picture

In field_image.inc I added if ($node->$fieldname == NULL) return false; after the line $fieldname = 'flexinode_'. $field->field_id; in the flexinode_field_image_insert function. That seems to work for me but I haven't done a lot of testing there.

chrislynch’s picture

Seems to work fine, thanks!

drupalninja99’s picture

It's a quick fix but I guess it works for me.

VP of Development
LynxMark, Inc.

Check out our website, http://www.LynxMark.com/, recently redone in drupal.