Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 04-19-2005, 08:13 AM
-okapi-'s Avatar
-okapi- Offline
pixelpost guru
 
Join Date: Feb 2005
Location: Vienna, Austria
Posts: 252
random_thumb addon - error message

using the random_thumb addon, i get the following error message on the admin addon page:

Warning: getimagesize(thumbnails/thumb_20050418134352_050123a.jpg): failed to open stream: No such file or directory in /home/***/avisualnotebook/addons/random_thumb.php on line 34

what does that mean?

please note, that the line number does not correspond to the original file, because i have deleted the first comment lines of the script.
__________________
a visual notebook
michael singer photography
http://www.a-visual-notebook.at
Reply With Quote
  #2  
Old 04-20-2005, 08:17 AM
-okapi-'s Avatar
-okapi- Offline
pixelpost guru
 
Join Date: Feb 2005
Location: Vienna, Austria
Posts: 252
has nobody an idea what the getimagesize error for the random_thumb addon could mean?

Quote:
Warning: getimagesize(thumbnails/thumb_20050418134352_050123a.jpg): failed to open stream: No such file or directory in /home/***/avisualnotebook/addons/random_thumb.php on line 34
__________________
a visual notebook
michael singer photography
http://www.a-visual-notebook.at
Reply With Quote
  #3  
Old 04-20-2005, 05:08 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
This error message do not harm but it shouldn't be there!

Remedy
append the addon file with random_thumb.php at line 62 and add these
Code:
if(!file_exists("thumbnails/thumb_$image"))
break;
and the code will become like this
Code:
       while(list($id,$headline,$image) = mysql_fetch_row($thumbs_ahead)) {
	$image_name         = $image;
                if(!file_exists("thumbnails/thumb_$image")) break;	
	list($local_width,$local_height,$type,$attr) = getimagesize("thumbnails/thumb_$image");
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #4  
Old 04-21-2005, 05:19 AM
-okapi-'s Avatar
-okapi- Offline
pixelpost guru
 
Join Date: Feb 2005
Location: Vienna, Austria
Posts: 252
great! the error is gone.
thank you!

the same error still exists with reverse_thumbnails.php. maybe you will find a solution for this too?

thanks a lot!
have a nice day!
__________________
a visual notebook
michael singer photography
http://www.a-visual-notebook.at
Reply With Quote
  #5  
Old 04-21-2005, 09:32 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
it will be fixed in v1.4.1 that the tags are included inside the main index.php. the problem is the relative path is not the same as in admin menu and main page of pp and the addon does not(did not) check this!
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #6  
Old 04-21-2005, 11:46 PM
-okapi-'s Avatar
-okapi- Offline
pixelpost guru
 
Join Date: Feb 2005
Location: Vienna, Austria
Posts: 252
thank you, ramin!
i'm looking forward to version 1.4.1!
__________________
a visual notebook
michael singer photography
http://www.a-visual-notebook.at
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 05:33 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs