Jump to content

HELP - blank php web page


cello33

Recommended Posts

Hi
I have a web site thats uses mysql and php to display images. The galleries page has stopped working and rather then see links to various areas 2003 2004 2005 etc and a option to upload files I just see a blank white page.

The site is usually managed by a friend but they have gone awol for a few weeks so I am trying to solve the problem  myself. The code should not have been changed and I have checked that mysql dbase is running.

Can anyone else offer a few pointer of what to look for in a aid to fault finding.  All other pages work fine but they are just text/graphics.........HELP
Link to comment
Share on other sites

Well if the code is indeed still there and the database is still working what probably happened is that you're getting some raw data that is trying to be parsed by php.  What I mean is that you probably have an apostrphe or some ugly character that is trying to be displayed and the software wasn't written to accomodate such a thing.  You need to raise your error your reporting to see what kind of errors are being generated.
Off the top of my head you can do this in .htaccess or use php_ini_set() whcih you can look up in the manual.

Good luck and happy debugging, it's fun = /
Link to comment
Share on other sites

Hi Thanks for your advice. I must say I am a complete PHP novice , infact all programming is a bit scary and especially when its my live site....oh well its broekn now so i cannot do any  more harm.

I have had a look at the error log and copied a selection. Can you interpret for me ........



[Tue Sep 12 22:49:43 2006] [error] [client x.x.x.x] PHP Fatal error:  (sql->query) Query failed: SQL was "SELECT * FROM pix_index WHERE catid = -1 ORDER BY timestamp DESC\n\tLIMIT -9,9" MySQL said: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-9,9' at line 2". in /home/virtual/site58/fst/var/www/html/lib/sql.php on line 28, referer: http://www.myownsite.co.uk/clients.php


Could it be that the sql or php code has been upgraded by the isp or my admin before he went awol....yours still perplexed!

Thanks

[
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.