1
mouacy
image.php file prevent pictures from showing in 2.0.9.2
  • 2005/1/13 9:00

  • mouacy

  • Not too shy to talk

  • Posts: 138

  • Since: 2002/11/2


I have successfully upgraded from 2.0.7.3 to 2.0.9.2 without any major problem. However, my shop pictures won't show anymore. (http://www.nplaimhlub.com/shop )

When I try to view a picture directly:

http://www.nplaimhlub.com/shop/images/34118.jpg

I get this error:
Quote:



Warning: readfile(XOOPS_UPLOAD_PATH/blank.gif): failed to open stream: No such file or directory in /home/nplaimhl/public_html/image.php on line 35



This is line 35 on the image.php file:
Quote:

readfile(XOOPS_UPLOAD_PATH.'/blank.gif');


Any idea how I can get my pictures to show again? Please help.

mouacy

PHP Version 4.3.10
Apache 1.3.31
MYSQL 3.23.49

2
Mithrandir
Re: image.php file prevent pictures from showing in 2.0.9.2

It seems XOOPS_UPLOAD_PATH is not set for some reason. That should be set at the top of include/common.php

3
mouacy
Re: image.php file prevent pictures from showing in 2.0.9.2
  • 2005/1/13 19:50

  • mouacy

  • Not too shy to talk

  • Posts: 138

  • Since: 2002/11/2


Thanks. I found the problem.

The problem is that I have another file image.php in oscommerce for watermark. Everything the .htaccess file calls for image.php, it always load up the XOOPS default image.php file and that causes the problem. I rename the image.php file for oscommerce into a different name and now everything works.

Thanks for being kind.

Login

Who's Online

343 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 343


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits