No images, header problem ??

when I upload images, I got this error message and all the image on my album is not visable even up via ftp. But the image is there, it has been successfully uploaded on my server. any help, please.

"Warning: Cannot modify header information - headers already sent by (output started at /home/szuhan0/public_html/zenphoto/zen/config.php:199) in /home/szuhan0/public_html/zenphoto/zen/admin.php on line 93
"
here is my album http://www.szuhan.com/zenphoto/index.php

Comments

  • When I look into the html-code i can see that the name of your picture is me2.jpg but zenphoto is trying to open %B9%CF%A4%F9+7.jpg.

    I'm not sure, but perhaps you should try another ftp-program or change the upload method (ASCII / binar / auto) in your prog.

    Maybe someone else has another idea?
  • trisweb Administrator
    Make sure there is NO space around the <?php ?> in the config.php file.
  • hi,, I try to reinstall zenphoto again, but I have this message during installation. and those header problem keeps poping when I try to access most of function on admin pannel. By the way, it seems to be a prefect program that I am seeking for, just have to make it work first :(

    Warning: Cannot modify header information - headers already sent by (output started at /home/szuhan0/public_html/zenphoto/zen/config.php:199) in /home/szuhan0/public_html/zenphoto/zen/auth_zp.php on line 22

    Warning: Cannot modify header information - headers already sent by (output started at /home/szuhan0/public_html/zenphoto/zen/config.php:199) in /home/szuhan0/public_html/zenphoto/zen/auth_zp.php on line 23
  • to sjard: I have a site on the same server, all the pic is working by uploading the same ftp program, so I dont think thats the problem and thank you for help, really apperciate it

    to trisweb: I dont think there is a space between the <?php ?>, although I am quiet familiar with coding, I did only key in the filed that I need to without any extra space in the config.php and thank you for reply
  • trisweb Administrator
    I'm not asking you to "look for" extra space - I'm telling you it is there.

    Make sure there's no space before the <php or after the ?> . If you're familiar with coding, what's happening is that config.php is *somehow* outputting something (which means there's something outside the php tags, or the PHP is explicitly printing something, and if you didn't modify the code, then it doesn't do the latter, so it must be the extra space). The file config.php should have no output.

    Just go to the end of the config.php file and delete everything after the ?> and everything before the <php
  • I am sorry, I should have double check what I type before post,, I mean I am "not" quiet familiar with coding, sorry for my bad english and mistype, and thanks trisweb, I will try it out :)
  • @ trisweb: that's right, thanks that's saved me a lot of times trying to scan the codes.

    So to conclude: One of the way to avoid displaying:
    Warning: Cannot modify header information - headers already sent by (output started) etc.

    1- As mentionned, go at the top and the bottom of the code and clear the space before and after the <? ?>
    2- Re-check the last page code you were working on (because it's where usually you will found 80% of the code problems) you did certainly put an ' instead of " somewhere, or forgot to add \n on a line or whatever. ;)
Sign In or Register to comment.