PDA

View Full Version : Two issues


Anonymous
11-23-2004, 04:05 AM
First, some butt kissing :)
I really like how easy it was to setup and it looks really easy to use. So, thank you for taking the time to make this. And make it freely available.

My two issues:
1) Blank index page. The source of the page simply has: <html><body></body></html>
Nothing else. I checked the paths on the OPTIONS page, but there doesn't seem to be one for the index, just for images.

2) Thumbnails. They don't appear. I don't get errors and the full size image shows up fine. I'm using a JPG file.

Info about my server:
Host information
PHP-version 4.2.2

MySQL version 3.23.54-log

GD-lib

Server software Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_fastcgi/2.2.10 mod_jk/1.2.0 mod_perl/1.24_01 PHP/4.2.2 FrontPage/5.0.2 mod_ssl/2.8.12 OpenSSL/0.9.6b mod_throttle/3.1.2

EXIF Your php was compiled with exif-enabled. This means you can add additional exif-information to your images such as camera model, aperture, exposure time and more.
There are certain tags to add to your templates for this. Check pixelpost homepage to learn more.

I'm guessing my problem with the thumbnails is with GD-lib, as seems to be the case with a lot of posts here.

The blank index page though, I have no idea.

http://www.cornerofnothing.com/phpinfo.php
http://www.cornerofnothing.com/v4/index.php

Any idea on either of these? Anyone? Bueller?

Anonymous
11-23-2004, 04:11 AM
I should also mention that I've tried different templates, no luck.

vagus
11-23-2004, 05:57 AM
This is the exact same problem I am having!

thread here:

http://www.pixelpunk.se/software/forum/viewtopic.php?t=184

pixelpunk
11-23-2004, 07:59 AM
I am sorry but your version of php 4.2.2 just falls short :(
Thumbnails not working is because of gd-lib not being there and recognized, it might be there but since your php is too old it can't be seen.

Anyway, I am using a function called "file_get_contents" which is available from php 4.3 and up. There exist a workaround for this.

Download php compat from here:
http://pear.php.net/package/PHP_Compat
Open the "PHP_Compat-1.3.0 Folder". Rename the folder inside to php.
Upload that folder to your pixelpost install under the admin/ folder.

Open up the main index.php file.
Look for line 60 // read the template file, below that line add

require_once("admin/php/Compat.php");
PHP_Compat::loadFunction('file_get_contents');

This should make the file_get_contents function working for older php versions.

I have not tested this, but I hope it'll work.

// punk

vagus
11-23-2004, 03:28 PM
I uploaded the folder you suggested but on further inspection I see that EXIF is not enabled. Any pointers on how to get that up and running?

pixelpunk
11-23-2004, 03:39 PM
PHP needs to be compiled with --enable-exif, not many hosts are that nice that they re-compile it for you, but you could always ask.

// punk

vagus
11-23-2004, 05:14 PM
Ok EXIF is installed after recompiling php, I did what you mentioned about adding PHP_Compat to my folder and renaming then modifying index.php

but still nothing happens. Sorry to be so much bother!

www.faceless.ca/pixelpost/index.php

pixelpunk
11-24-2004, 07:41 AM
In the main index.php the error reporting is turned completely off, since we don't want to spike out ugly error messages to users in case stuff happends, and we don't want malicious people getting too much information that can help them.

Anyway, turn error_reporting on.
Close to the top of the script you have a line that says
error_reporting(0);
Change that to
error_reporting(7);

and see what errors you'll receive.

// punk

vagus
11-26-2004, 11:43 PM
Figured it out! I uploaded with a program that renamed all file extensions to .*** instead of .**** so all the templates ended up .htm instead of .html!

works beautifully!