Hello V@no, long time no see!
I have the same header error in my gallery, after upgrading to 1.7.10.
My phpinfo() shows allow_url_include is off, while allow_url_fopen is on.
I get this error in category.php while browsing, but the similar error as pkwebhost I get on rss.php:
Notice: Use of undefined constant MAIN_SCRIPT - assumed 'MAIN_SCRIPT' in /home/ciprian/public_html/gallery/includes/page_header.php on line 85
Warning: Cannot modify header information - headers already sent by (output started at /home/ciprian/public_html/gallery/includes/page_header.php:85) in /home/ciprian/public_html/gallery/rss.php on line 358
Warning: Cannot modify header information - headers already sent by (output started at /home/ciprian/public_html/gallery/includes/page_header.php:85) in /home/ciprian/public_html/gallery/rss.php on line 359
Warning: Cannot modify header information - headers already sent by (output started at /home/ciprian/public_html/gallery/includes/page_header.php:85) in /home/ciprian/public_html/gallery/rss.php on line 360
Warning: Cannot modify header information - headers already sent by (output started at /home/ciprian/public_html/gallery/includes/page_header.php:85) in /home/ciprian/public_html/gallery/rss.php on line 361
http://ciprianmp.com/gallery Wed, 01 Feb 2012 20:49:50 GMT http://ciprianmp.com/gallery/details.php?image_id=419 Mon, 30 Jan 2012 19:20:44 GMT My puppy ...
I get no error on the index.php file though.
Can you find a fix please? (other than having hosting people change php.ini directives?)
Thank you!
Later edit:
I just imported the gallery to my Windows Wamp server so I could enable both allow_url_... I still get an error, but different:
This page contains the following errors:
error on line 2 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.
There's nothing else on the page.
In category browsing is still the same error:
Notice: Use of undefined constant MAIN_SCRIPT - assumed 'MAIN_SCRIPT' in C:\wamp\www\home\gallery\includes\page_header.php on line 85
So I would shoot on that line in page_header.php:
$file = get_file_name(basename(MAIN_SCRIPT));
php=5.2.17
apache=2.2.21