Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 02:09:41 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: RandomImage problem  (Read 1519 times)
abel

Offline Offline

Posts: 3


« on: March 13, 2007, 05:24:35 PM »

Hello all,

Recently found WebsiteBaker and it seems ace so far. grin

Tried to install the RandomImage module and all works apart from an error message:

Warning: getimagesize(http://totallyzero.com/wb/media/random/clan_denny.jpg) [function.getimagesize]: failed to open stream: Connection refused in /home/sites/totallyzero.com/public_html/wb/modules/randomimage/include.php on line 30

It shows the images fine but also shows this error!

am using latest websitebaker

Thanks
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #1 on: March 13, 2007, 07:03:45 PM »

Go to settings "Show Advanced Options" and try setting the errorlevel there. The different Levels are explained here: http://de.php.net/error_reporting

This is not really an error, but only a warning. Let us know, if the warning disappears.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

abel

Offline Offline

Posts: 3


« Reply #2 on: March 14, 2007, 08:55:40 AM »

Hi,

Thanks for the reply, unfortunately I tried all of the various error reporting levels but they all returned the same error/warning as before.

Also changed the chmod levels of the folder to 777 with no difference.

any ideas?
 
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #3 on: March 14, 2007, 11:52:53 AM »

Hello,

is this function available on your server?

http://de3.php.net/manual/en/function.getimagesize.php

Matthias
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #4 on: March 14, 2007, 12:07:52 PM »

OK ... if the function is not available, you can change following lines in the file include(.)php:

FROM:
Code:
//image dimensions
$dimensions = GetImageSize(WB_URL.$dir.'/'.$image);
echo '<img src="'.WB_URL.$dir.'/'.$image.'" '.$dimensions[3].'>';

TO:
Code:
//image dimensions
echo '<img src="'.WB_URL.$dir.'/'.$image.'>';

I haven't tested it though ...

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

abel

Offline Offline

Posts: 3


« Reply #5 on: March 14, 2007, 03:40:01 PM »

Hi,

Thanks a lot Klaus,

taking out the $dimensions seemed to work fine and has not given me any problems. One thing though:-


Code:

//image dimensions
echo '<img src="'.WB_URL.$dir.'/'.$image.'" alt="'.$image.'" />';

The original code doesn't validate because there was no alt or closing on the img tag.
The above amended works fine and validates.

Thanks again.

Abel.
 cheesy
« Last Edit: March 14, 2007, 03:42:04 PM by abel » Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #6 on: March 14, 2007, 08:49:10 PM »

sorry, accidently cut that one out wink ... good to know, that it is working.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!