RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : December 02, 2008, 11:28:10 pm
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  RSgallery2 bugs & problems (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Deletion of temporary files failing
Advanced search
  « previous next »
Pages 1
Author
Topic: Deletion of temporary files failing  (Read 528 times)
« on: October 02, 2008, 08:49:57 am »
Mike O'Brien Offline
Newbie
*
Posts: 1



Joomla 1.5.6
RSGallery2 2.00.0(SVN 802)

After uploading multiple photos in a single zip file and accepting the previewed photos the follow errors appear in syslog. The first error occurs once per temporary file:

PHP Warning:  unlink(/var/www/sites/sssssss.org/joomla/media/rsginstall_48e4c07c2a0f720071009_020.jpg) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /var/www/sites/sssssss.org/joomla/administrator/components/com_rsgallery2/includes/file.utils.php on line 394, referer: http://www.sssssss.org/administrator/index2.php

PHP Warning:  rmdir(/var/www/sites/sssssss.org/joomla/media/rsginstall_48e4c07c2a0f7) [<a href='function.rmdir'>function.rmdir</a>]: Directory not empty in /var/www/sites/sssssss.org/joomla/administrator/components/com_rsgallery2/includes/file.utils.php on line 400, referer: http://www.sssssss.org/administrator/index2.php

The second error is due to the first.

The problem is that RSGallery2 is referring to the wrong path for the file being deleted.
/var/www/sites/sssssss.org/joomla/media/rsginstall_48e4c07c2a0f720071009_020.jpg should be
/var/www/sites/sssssss.org/joomla/media/rsginstall_48e4c07c2a0f7/rsginstall_48e4c07c2a0f720071009_020.jpg

Looks like a simple fix. Note that without a fix users will eventually eat up gobs of disk space - there is no indication of a problem in the Admin UI when this occurs.

Also had to increase memory_limit from 32M to 64M in php.ini to upload 8 files. This seems a bit high.
Logged
 
Print  Pages 1
« previous next »
Jump to: