Download & Extend

Adding text reveals a bug in utility.inc?

Project:ImageCache Actions
Version:6.x-1.6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Adding text in an imagecache preset makes this error appears in the error log, after each image displayed :(

array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array dans /sites/all/modules/imagecache_actions/utility.inc à la ligne 367.

Otherwise, everything works fine! Thank you in advance for your help,

Thomas

Comments

#1

can u tell us what text are you trying to use.

#2

I had also an error in this file: I used this PHP code as text: "return $node->title;"

This lead to errors. In file utility.inc I had to change line 274

from
$sql = "SELECT nid, f.fid FROM {upload} AS u INNER JOIN {files} AS f N u.fid = f.fid WHERE f.filepath = '%s' LIMIT 1";
to
$sql = "SELECT nid, f.fid FROM {upload} AS u INNER JOIN {files} AS f ON u.fid = f.fid WHERE f.filepath = '%s' LIMIT 1";

as the "O" of the "inner join ... ON ... " was missing.

#3

Status:active» closed (duplicate)

Yes
#491038: MySQL query
Fixed in -dev, but I'd not tagged a stable release to publish that fix.
... I should do so! .. but am trying to stabilize a new method of text rendering, so that's been dragging a bit. I should write an upgrade path for old users?
Unfortunately I've got features mixed in with bugfixes in the -dev.

#4

Ditto, same problem, thanks for the fix!