PDA

View Full Version : New install-index is plain text, Admin page OKAY.


editmonkey
03-16-2006, 10:43 PM
I'm so close to having this work, I hope this is the last hurdle.

My main page (index.php) appears as the source code for the PHP. A full screen of text and numbers with hardly any spaces. The Admin page displays fine. The install page displayed fine. All indications in the General info tab of the admin page say everything is okay. Just can't get the main page to load properly.

I'm hoping there is something very simle I've over looked. I searched and searched for this problem before posting so my applogies for reposting if it's been answered.

Here's the info from general info page.

Host Information
PHP-version 5.1.2 (Pixelpost's min requirement: PHP version 4.3.0)

MySQL version 4.0.26-standard (Pixelpost's min requirement: MySQL 3.23.58)

GD-lib bundled (2.0.28 compatible) with JPEG support

Server software Apache/1.3.33 (Darwin) PHP/5.1.2

EXIF Pixelpost is using exifer v1.5 for EXIF information.

Thanks

GeoS
03-16-2006, 11:17 PM
Any link?

Try to reupload /index.php

editmonkey
03-16-2006, 11:26 PM
Here's the link


www.dougfolkerts.com/pixel/index.php

Joe[y]
03-17-2006, 09:17 AM
it appears to be having trouble reading the exif data in your photo. never seen anything like THAT before! try reuploading all your files (make sure you upload them in ascii mode) and maybe try uploading images without exif info... see if that makes a difference.

se.nsuo.us
03-17-2006, 09:58 AM
']it appears to be having trouble reading the exif data in your photo.
He he - Nothing of that sort

Here is the solution - open the file includes/exifer1_5/index.php

Change the opening php tag from <? to <?php - that should fix it.

Short opening tags are not allowed on that server

GeoS
03-17-2006, 03:15 PM
Thanks to this issue there were an update on CVS server.

/includes/addons_lib.php was started with just <?.

PS exifer files were OK.

editmonkey
03-17-2006, 05:13 PM
First off Thanks in a big way. It's sooooooo coool that someone half way around the Earth was able to offer help for my little problem. I was so excited to see such a simple fix, a fix that I never, ever, would have been able to figure out.

unfortunately it didn't work. The file already said "<?php"

He he - Nothing of that sort
Here is the solution - open the file includes/exifer1_5/index.php
Change the opening php tag from <? to <?php - that should fix it.
Short opening tags are not allowed on that server

let me add some more info on the off chance that It'll help. The host is running OSX 10.3.9, I installed PHP, Entropy-PHP-5.1.2. I've also been toying with "folderblog" and "Minimal Gallery" On another machine through it's localhost. Mixed results with those. Folderblog worked, then it doesn't, Minimal Gallery also returns the garbled text page. It was a similar Exif PHP script in it like the one in Pixelpost. It also is already set to "<?php>".

I'm sensing the problem with pixelost and minimal gallery may very well be the same.

I don't know when the Exif script reads the picture, but I was able to upload a picture to Pixelpost and see it from the admin page.

Joe[y]
03-17-2006, 06:15 PM
what pixelpost version are you using? upgrading to 1.5 might help if you're running php5

editmonkey
03-17-2006, 06:27 PM
I don't see a version 5. You press download and version 1.4.3 comes to you.

I just thought of something though. I tried Joe[y]s advise and reloaded the files, didn't work, (but I may have screwed up somewhere while I was doing it.) But it got me to thinking about this Binary vs ascii thing. If I'm dragging a file from here to there with the finder (OSX) or across a LAN with the finder, could that be fouling the files? Should I do all my file moving with an FTP client?

I have other problems now on my laptop (where I'm testing and solving problems) PHP and MYSQL have stopped loading/running. Not sure what I've done. gotta get that working first.

Joe[y]
03-17-2006, 06:32 PM
you can get 1.5 from the version releases section of this forum. we will be releasing 1.5 release candidate soon as well so you may wanna wait for that.

as for file organisation - ideally you should be doing everything through ftp but i can't see what finder should be a problem - but perhaps it is.. i have no experience with it on a server.

editmonkey
03-17-2006, 11:29 PM
Okay, It might be fixed. in my last post I mentioned that PHP and MySql both stopped working on the machine I've been testing this on. I managed to fix it and this time I used version 4.3.11 of PHP. So far the mygallery pages (that had the same symptom) are working fine. I'm feeling pretty confident that pixelPost will work fine when i try it with that version of PHP.

If that's the case everyone be suspect of PHP 5.1.2

ranchnachos
03-18-2006, 05:28 PM
He he - Nothing of that sort

Here is the solution - open the file includes/exifer1_5/index.php

Change the opening php tag from <? to <?php - that should fix it.

Short opening tags are not allowed on that server


Just to put my .02 in on this thread as well..

I ended up with this same problem.. and took the advice of se.nsuo.us-
except the fact it was not the index.php within the directory stated, it was the exif.php file instead! :)

in any case. it works for me now

editmonkey
03-19-2006, 09:51 PM
I got it working finally. from a terminal window I removed the (i think the path was) /usr/local/php5 folder, edited the httpd.conf (in /etc/httpd/) file to remove the reference to Php5 (loacted at the very end of the file) and then installed PHP 4.3.1.

That worked, but it was scarry there for a while. You're trick looks like it would have been MUCH easier. oh well.

I still can't get MySql to start again on my other machine. The mysql.sock file was erased from the /temp directory, no doubt by a cron maintainence script in Tiger. (the machine running my site has Panther) So far it's still running. Problem now is, even after completely removing the /usr/local/mysql folder, I can't reinstall MySql or get it started to recreate the mysql.sock file. I can come close and them it's irritated by the permissions of the mysql/data folder. Very frustrating.