no images are showing up

does any one have any idea why no images are showing up, including top logo and drop shadows? They just appear as broken links.

check if you have installed

check if you have installed and enabled GD2 PHP Library. It is used for resizing of pictures.

Same Problem

I am seeing the same behavior, no images appear on the site at all. (Including standard application images, such as logo.png.) It looks like the GET of the image fails. The URL to the home image appears like this in the source of the HTML for the home page:

http://localhost/phpAlbum/main.php?cmd=logo&var1=phpAlbum.net&var2=EEDD99res/logo.png_file

This results in the following error when making an HTTP GET request:

The image “http://localhost/phpAlbum/main.php?cmd=logo&var1=phpAlbum.net&var2=EEDD99res/logo.png_file” cannot be displayed, because it contains errors.

I'm guessing main.php is trying to resolve to the file: http://localhost/phpAlbum/res/logo.png

When accessing this direct with the URL above, the file displays fine.

For some reason the images are not resolving via main.php. I'm new to PHP and cannot readily see how resolution takes place. Does anyone have any ideas?

Thanks.

Solution Which Worked for Me

Here are my rough notes on what I did to resolve this situation on a Windows platform. Apache 2.2 and PHP 5. Hope it helps.

1.
Install PHP5.

2.
Enable PHP in Apache. Open httpd.conf and add the following in the load module section.

# For PHP 5 do this:
LoadModule php5_module "C:\devapps\PHP_525\php5apache2_2.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:\devapps\PHP_525\php.ini"

3.
In php.ini enable the following:
short_open_tag = On

NOTE: The short open tag setting was posted on the php album support forum as being needed
due to a defect. So this MIGHT not be needed in the future.

One Last Step

I forgot one step in the notes above. In php.ini, be sure to uncomment the extension for GD2.

extension=php_gd2.dll

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-8698264690166658"
data-ad-slot="4417389723">