Hi,

First off thank you for your work and the very useful module. However, I am not sure if I can put it into production as it is giving me notices and warnings.

In Drupal 7.9

In this case, I was uploading an image and it gave me the following notice and warning:

Notice: Undefined property: stdClass::$duplicate in _rel_pre_render() (line 593 of Z:\xampp\htdocs\crossroad\sites\all\modules\rel\rel.module).
Warning: Invalid argument supplied for foreach() in _rel_pre_render() (line 593 of 
Z:\xampp\htdocs\crossroad\sites\all\modules\rel\rel.module).

Any thoughts?
Can I give you any more info?

Thanks,

Gábor

CommentFileSizeAuthor
#4 1354688.patch544 bytesswentel
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tanitani’s picture

The same error just happened when testing a view -- no results found -- for token replacement in the view title field...

tanitani’s picture

Title: Notice and warning on image upload » Undefined property: stdClass::$duplicate in _rel_pre_render()
tanitani’s picture

Component: User interface » Code
Priority: Major » Critical

As it is I will have to disable the module. I cannot show the client the website when this error comes up on a regular basis. I just hope that disabling it will not cause a bigger issue...
G

swentel’s picture

Status: Active » Fixed
FileSize
544 bytes

The duplicate key was added in http://drupalcode.org/project/rel.git/commitdiff/4e5de3a0a453a7bcba8bc12... and in theory I don't provide upgrades between alpha releases. However, I'll do so since it's necessary. Patch attached. You'll get a message on the drupal status page that you'll need to update databases, it will add the extra field in the table.

tanitani’s picture

Huh! Wow!
Thank you - though, well, you gave me some homework :-). Now I will have to figure out how to do patches, maybe also the use of git.

This is a whole new area of learning with Drupal... (At times I kind of wish that Joomla, which was the first CMS I checked out had the ability to manage relationships as Drupal has, because some of the things seemed kind of easy to use... Oh, well - there is much more room here to grow.)

Status: Fixed » Closed (fixed)

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

tanitani’s picture

Hi Swentel -- sorry to bother you again. I am not sure whether this has to do with the patch (probably it does not and I could open a new issue if you like).

When I try to register a new form with the Manage form display link http://localhost/roads/rel-register/nojs/page_node_form?destination=admi..., there is an overlay with the round waiting icon (circle with rays going around and around) and nothing happens. Do you have any insight?