Download & Extend

Quote generates warning

Project:Quotes
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

The ony changes from original implementation are the additon of a tag field, and of multilanguage settings (for translations). Showing a translation of the quote generates the following:

Warning: Invalid argument supplied for foreach() in quotes_load() (line 412 of /var/www/html/d7/sites/all/modules/quotes/quotes.module).<>

Same happens when clicking on the name of the quote author.

Comments

#1

I can replicate this issue. Is there any information about the cause? Many thanks for your assistance!

#2

I looked at the code in question and I am wondering if instead of:

$obj1 = $obj->condition('q.vid' , $node->vid)->execute()->fetchObject();

it should instead be

$obj1 = $obj->condition('q.vid' , $node->vid)->execute();

since the way that it is called now results in no result at all?

Hints, Suggestions, Etc?

#3

subscribing

#4

Status:active» closed (fixed)

Should be fixed in current dev release, marking closed, re-open if you still experience this

#5

I still experience this

#6

Status:closed (fixed)» active

#7

I see this is closed, but I have the newest dev version, and am also experiencing the issue at hand. Any suggestions?

I don't mind the error message, I mean, it's only visible to me anyways, and it doesn't seem to affect the quality of the quotes -- but whoever is developing should be aware this is still an issue.

thanks

Chris

nobody click here