I get these errors when making a slideshow.

* sites/default/files/diaporamas/640x480_1/22: creation failed
* sites/default/files/diaporamas/640x480_1/23: creation failed

CommentFileSizeAuthor
#10 diaporama.tar_.gz11.45 KBgoz

Comments

Stewx’s picture

Okay, I think I fixed it just chmodded some directories.

goz’s picture

OKay that what i thinked about.

The last release is fixing a future bug about chmod.

manoloka’s picture

Version: 6.x-1.0 » 6.x-1.1

Hi there,

I'm using the 1.1 version and I've got the same problem.

Any idea how to solve it?

Thanks

manoloka’s picture

Hi again,

I have manually deleted the folder 400x400_1 and created it again so I could change the permisions and it works like.

It does the job for now but I don't want to have to do this everytime my power user (the one that creates the slideshows) has to add a new slideshow.

Can you take this in account for the next update.

Feel free to contact me for more details

goz’s picture

Version: 6.x-1.1 » 6.x-2.0-beta1
Status: Active » Needs review

Bug has been fixed with 6.x-2.0-beta1

alex.cunha’s picture

This problem occurs on 6.x.1.1 at least with me.
Do I need open a new issue/bug report for this version?

thanks

goz’s picture

This is a right error on directories which is fixed since 6.x-2.0-beta1.

Chech your rights on files and directories in sites/all/files/diaporamas or update the module to 6.x-2.0-beta1.

goz’s picture

Hoho, playing with the module I repoduced the issue. in fact, this error occure when you try to put an image smaller than the slideshow. I fix that right now.

alex.cunha’s picture

Hi,

Moved to 6.x-2.0-beta1 and found the same problem (maybe with permissions):
# /121: creation failed
# /122: creation failed
# /123: creation failed
# /124: creation failed
# /125: creation failed
# /126: creation failed
# xml file diaporama_128.xml has no images.

What are the recommended file/directory permissions?

I strictly followed the instruction posted here: http://blog.fclement.info/en/content/documentation-diaporama

goz’s picture

StatusFileSize
new11.45 KB

Can you try with this file and take me back the errors ? (rename the file to .tar.gz and untar it with 'tar zxvf diaporama.tar.gz')

Can you tell me the size of your images and the size of the slideshow too ?

Thanks

alex.cunha’s picture

The images used are the same as included on the dewslider package ( http://www.alsacreations.fr/mediaflash/dewslider5/dewslider.swf.zip )

I will test this package right now...

alex.cunha’s picture

Assuming the diaporama.module is for 6.x-2.0-beta1...

Creating a new content does't show any error.

However, theres no slideshow.

Looking into the directory files/diaporamas/images haves the images files!
1_640x480_1.jpg
...
6_640x480_1.jpg

Also there are 2 files:
diaporama_128.xml
diaporama_129.xml

Looking into the html code:

 <h1 class="title">teste dewslider</h1>
              <div class="tabs"></div>
                                          <div class="node">
  <div class="content"><div class="diaporama_order_info" style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="640" height="480">
<param name="movie" value="http://my.testesite.com/sites/my.testesite.com/files/diaporamas/dewslider.swf?xml=http://my.testesite.com/sites/my.testesite.com/files/diaporamas/diaporama_129.xml" /><param name="wmode" value="transparent" /><embed src="http://my.testesite.com/sites/my.testesite.com/files/diaporamas/dewslider.swf?xml=http://my.testesite.com/sites/my.testesite.com/files/diaporamas/diaporama_129.xml" wmode="transparent" width="640" height="480" name="diaporama129" TYPE="application/x-shockwave-flash" PLUGINSPACE="http://www.macromedia.com/go/getflashplayer"></embed>
</object></div></div>

This is just a copy & paste of the code. I have not checked if something is wrong here.

goz’s picture

Have you clear cache ?

If you have, can you post diaporama_129.xml ?

alex.cunha’s picture

Sorry the delay and many thanks for the help/troubleshoot!

The cache is cleared.

diaporama_129.xml content:

<?xml version="1.0" encoding="UTF-8" ?>
<album
	showbuttons="yes"
	showtitles="yes"
	randomstart="yes"
	timer="5"
	aligntitles="bottom"
	alignbuttons="bottom"
	transition="fade"
	speed="20">
	<img src="http://my.testesite.com/sites/my.testesite.com/files/diaporamas/images/1_640x480_1.jpg" title="1.jpg" url="?q=node/121" />
	<img src="http://my.testesite.com/sites/my.testesite.com/files/diaporamas/images/2_640x480_1.jpg" title="2.jpg" url="?q=node/122" />
	<img src="http://my.testesite.com/sites/my.testesite.com/files/diaporamas/images/3_640x480_1.jpg" title="3.jpg" url="?q=node/123" />
	<img src="http://my.testesite.com/sites/my.testesite.com/files/diaporamas/images/4_640x480_1.jpg" title="4.jpg" url="?q=node/124" />
	<img src="http://my.testesite.com/sites/my.testesite.com/files/diaporamas/images/5_640x480_1.jpg" title="5.jpg" url="?q=node/125" />
	<img src="http://my.testesite.com/sites/my.testesite.com/files/diaporamas/images/6_640x480_1.jpg" title="6.jpg" url="?q=node/126" />
</album>

The generated URLs like http://my.testesite.com/sites/my.testesite.com/files/diaporamas/images/1... are OK.

Im just answering you posting this now without my evaluation of what is wrong.

alex.cunha’s picture

Checking the generated html code, I found:

- opening on web browser the URL http://my.testesite.com/sites/my.testesite.com/files/diaporamas/dewslider.swf, starts the dewslider with images from alsacreation.fr

- opening on web browser the URL http://my.testesite.com/sites/my.testesite.com/files/diaporamas/diaporama_129.xml returns the contents of the XML file

Until here everything seems OK!

- opening the URL
http://my.testesite.com/sites/my.testesite.com/files/diaporamas/dewslider.swf?xml=http://my.testesite.com/sites/my.testesite.com/files/diaporamas/diaporama_129.xml
I got "page not found". Checking on another website using diaporama+dewslider, I found similar URL
http://blog.fclement.info/files/diaporamas/dewslider.swf?xml=http://blog.fclement.info/files/diaporamas/diaporama_22.xml
this doest get any error and shows the content.

Im starting checking again the install instruction to see what is missing...

goz’s picture

I make new update to module but i don't think this will help you.

Can you visualize images when you go to http://my.testesite.com/sites/my.testesite.com/files/diaporamas/images/6... ?

The images should have 544 rights or at least read and execute for your web user (www-data under debian & co).

When i told you if the cache was cleared, i thank about your browser cache. But you can clear both drupal and browser cache to be sure.

You can try the last version of module http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/diaporama/d... which take care about public and private files settings.

If the module doesn't work anymore, give me an access to your drupal installation by http://drupal.org/user/226961/contact so i'll can see error myself and trying to fix it.

narky’s picture

Have you resolved the issue yet?

I ran into the exact same issues: images correctly processed by Diaporama; files exist in the /files/diaporamas/images folder; diaporama_X.xml shows correct image paths; et c. No errors were generated during the test slideshow's create/edit, but still no image display.

For me, the missing link seems to be permissions settings at /admin/user/permissions. I gave the anonymous role permissions to 'access diaporama', and the images magically showed up.

Before trying the above, I did end up deleting the empty /files/diaporamas/images folder and recreating it, so that may have helped as well.

I also cleared the browser cache to reload the modified XML file immediately before the retry.

I'm not sure which one of the three (or combination of all/some of them) did the trick.

Any update on this issue, anyone?

Oh, and for GoZ: Fantastic module. I've been using it since the D5 version. Merci beaucoup!

p.s. I also applied the code provided in #10 sometime during the troubleshooting above.

goz’s picture

Anonymous should have 'access diaporama' permission to see diaporama (like all permissions rules)

I think you problem has been resolved with both other actions you did (and patch)

So you should not have problems anymore. I'll apply changes in the next release (which are already commited in the cvs repository ;) )