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

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
News : October 06 09:46:19 PM
+  RSGallery2 Support Forums
|-+  Developers corner
| |-+  Nightly Builds for RSGallery2 in Joomla 1.5 (Moderators: Jonah, Daniel Tulp, Ronald Smit)
| | |-+  [SVN565] Warning: getimagesize. failed to open stream: No such file...
Advanced search
  « previous next »
Pages 1
Topic: [SVN565] Warning: getimagesize. failed to open stream: No such file...  (Read 4181 times)
« on: January 05 02:13:52 PM »
Danny Offline
Posts: 21

View Profile Email

I get this warning during the FTP batch upload process (actually, while it's pre loading the images):

Warning: getimagesize(D:\[PLESK\DOMAINNAME]\httpdocs\media\rsginstall_477f8febae706\Array) [function.getimagesize]: failed to open stream: No such file or directory in D:\PLESK\[PLESK\DOMAINNAME]\httpdocs\administrator\components\com_rsgallery2\includes\file.utils.php on line 311

The rest of the process works and the images are posted without any apparent errors.

« Last Edit: January 07 12:37:18 PM by Danny » Logged
Reply #1
« on: January 05 03:18:37 PM »
john Offline
Dev Team
Sr. Member

Posts: 444

View Profile Email


Could you tell me what content the folder D:\[PLESK\DOMAINNAME]\httpdocs\media\rsginstall_477f8febae706\ has ?

that could help
Reply #2
« on: January 06 12:53:08 AM »
Danny Offline
Posts: 21

View Profile Email

Hi John,

That folder seems to get deleted after an upload and as mentioned my sets do in fact get uploaded (with SVN565). Thus, that specific directory is not there anymore ...

There are other similar named folders in the MEDIA directory but I can only assume these are from sets that I had problems with during the upload and the deletion process did not clear them (my theory).

The directories are filled with pictures. I'm betting this is where the process stores them temporarly during the whole resizing/cropping process.

Hope that helps,

Reply #3
« on: July 17 03:20:06 AM »
Chef Groovy Offline
Dev Team
Jr. Member

Posts: 93
View Profile WWW

I know it's old, but I think I figured out what was causing this bug. The array of file names in the temporary files is getting sent to "getImageType"  in the batchupload_2 function in images.html.php

it fails gracefully, but warnings are still annoying...

Can add
if ( is_array($filename))

directly after the foreach loop around line 575 in images.html.php

It's sloppy, yeah, but works. Keeps error_log from getting too cluttered.  I'll put it on svn for legacy mode, might work on v2 too ?


Chef Groovy
RSGallery2: Legacy - Dev
Test Site:
Print  Pages 1
« previous next »
Jump to: