Project:Diaporama
Version:6.x-2.0-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

hi

when creating a diaporama content , this module can't writte properly the xml file so the images are lost.
it's a writting xml bug.

Comments

#1

The same on my site.. config is OK but no image directory in xml file included .. ;/
how to solve this ?

#2

You have to go into the module folder and replace the diaporama.module with this one (obviously, untar it first). Then, the XML errors will go away, the XML file will get written, and the images will be copied over.

AttachmentSize
diaporama.tar_.gz 11.45 KB

#3

there is a little bug on line 1175 of the original .module :

replace filename by i.image_size...

<?php
    $result
= db_query("SELECT f.filepath, n.title, n.nid FROM {term_node} t INNER JOIN {image} i ON i.nid=t.nid INNER JOIN {files} f ON f.fid = i.fid INNER JOIN {node} n ON t.nid = n.nid WHERE t.tid = %d AND i.image_size='_original'", $node->tid);
?>

and there is a little error on a variable by reference just put off the & ... :p

nobody click here