Block-random Include Error

axman

Joined: 2002-09-07
Posts: 57
Posted: Thu, 2005-02-03 00:49

I have the following error when trying to include the block-random file. I'm pretty sure its a php thing, and not a gallery thing, but i have not been able to figure it out and htought maybe someone here might have an idea.

Apache 2.0.52
PHP 5.0.3

open_basedir has no value

Warning: main(http://myserver.net/gallery/block-random.php) [function.main]: failed to open stream: Connection refused in /var/www/html/test1.php on line 2

Warning: main() [function.include]: Failed opening 'http://myserver.net/gallery/block-random.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /var/www/html/test1.php on line 2
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2005-02-03 07:04

moved to Random Block forum

 
lcf
lcf's picture

Joined: 2005-02-24
Posts: 4
Posted: Thu, 2005-02-24 01:56

I am having similar problem at http://www.liewcf.com. It shows the following error when include in the WordPress index.php. It is working if directly load the block-random.php file.

Warning: main(http://www.liewcf.com/gallery/block-random.php): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/liewcf/public_html/wp/index.php on line 533

Warning: main(): Failed opening 'http://www.liewcf.com/gallery/block-random.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/liewcf/public_html/wp/index.php on line 533

It was working fine previously...

ver: Gallery 1.4.4pl5

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2005-02-24 02:01

Your permissions are set incorrectly. You can't browse to the file. Make sure the file is readable (mode 644 or higher)