|
Title: problem Post by: Diavolino on June 26, 2005, 06:27:08 AM Warning: Cannot modify header information - headers already sent by (output started at
.....\forum\Sources\Load.php(1040) : eval()'d code:455) in ....\forum\Sources\Subs.php on line 1725 Warning: Cannot modify header information - headers already sent by (output started at ......\forum\Sources\Load.php(1040) : eval()'d code:455) in ....\forum\Sources\Subs.php on line 1726 Title: Re: problem Post by: cowboy on June 26, 2005, 06:40:59 PM where did you get this error?
Title: Re: problem Post by: Scott on July 09, 2005, 08:00:33 AM Cowboy,
I just installed Mambo-SMFForum after uninstalling the SMF Bridge as it stopped working when I upgraded Mambo-phpShop. Your version works with Mambo-phpShop without any mods to Sorens great component. The only problem is, is that I get the same errors as Diavolino when loading index.php, ie the home page... Any thoughts?? Scott Title: Re: problem Post by: Scott on July 10, 2005, 05:40:08 PM Cowboy,
The full errors appearing at the head of the home page, visible to the user.. Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/forum/Sources/Load.php(1040) : eval()'d code:462) in /var/www/html/site/includes/mambo.php on line 302 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/forum/Sources/Load.php(1040) : eval()'d code:462) in /var/www/html/site/index.php on line 214 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/forum/Sources/Load.php(1040) : eval()'d code:462) in /var/www/html/site/index.php on line 215 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/forum/Sources/Load.php(1040) : eval()'d code:462) in /var/www/html/site/index.php on line 216 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/forum/Sources/Load.php(1040) : eval()'d code:462) in /var/www/html/site/index.php on line 217 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/forum/Sources/Load.php(1040) : eval()'d code:462) in /var/www/html/site/index.php on line 218 Title: Re: problem Post by: cowboy on July 12, 2005, 12:55:07 AM edit index.php in mambo root...
search for... Code: header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' ); header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); header( 'Cache-Control: no-store, no-cache, must-revalidate' ); header( 'Cache-Control: post-check=0, pre-check=0', false ); header( 'Pragma: no-cache' ); then replace with... Code: if (!headers_sent()) { header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' ); header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); header( 'Cache-Control: no-store, no-cache, must-revalidate' ); header( 'Cache-Control: post-check=0, pre-check=0', false ); header( 'Pragma: no-cache' ); } Title: Re: problem Post by: Scott on July 12, 2005, 07:32:56 AM Comboy,
I changed the code as you said and the error has now become that shown below and the page fails to load all together?? Scott The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Only one top level element is allowed in an XML document. Error processing resource 'http://www.electricorange.com.au/site/... <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /var/www/html/for... Title: Re: problem Post by: cowboy on July 13, 2005, 03:12:51 PM so you only got this once you installed mambo-smf? any other component installed?
Title: Re: problem Post by: Scott on July 13, 2005, 06:06:46 PM Cowboy,
Yes this error has only occured once installing Mambo-SMF component. I can create the error by installing the component. Uninstall and the error diappears and the page loads ok. I have been running SMF (now version 1.0.5)for a while with another SMF bridge (you know the one I mean). It was working Ok but I also run Mambo-phpShop which was recently upgraded to the latest version. The "other bridge" hack would not work with the new phpShop. Maybe some legacy from the other bridge?? Thanks for the help. Scott Title: Re: problem Post by: cowboy on July 15, 2005, 04:12:20 PM I found this on google.
Try this... ----- This means that the first file name mentioned has a space either before the opening php or after the closing php. You will need to open that file and make sure <?php is the first line with no spaces before it, and ?> is the very last line with no spaces after it. ----- Title: Re: problem Post by: Scott on July 15, 2005, 10:30:36 PM Cowboy,
Thanks for the feedback. I should have searched the net myself. For some reason there was an extra line after the ?> in index.php. So the homepage loads fine now and the bridge works. I now get the following error when clicking on the forum menu item. The error appears in the body of the forum page. An error has occured! Cannot modify header information - headers already sent by (output started at /var/www/html/forum/Sources/Load.php(1040) : eval()'d code:462) Does this require a similar code twick that the index.php file required? Thanks for your help. Scott Title: Re: problem Post by: Scott on July 15, 2005, 10:37:34 PM Hmm...
Just tried logging out. The bridge will log out of mambo but the forum page comes up with the following error. Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/forum/Sources/Load.php(1040) : eval()'d code:462) in /var/www/html/forum/Sources/Subs.php on line 1725 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/forum/Sources/Load.php(1040) : eval()'d code:462) in /var/www/html/forum/Sources/Subs.php on line 1726 Title: Re: problem Post by: Scott on July 16, 2005, 04:42:07 AM Cowboy,
A few more interesting things... I found the header calls in both Load.php and Subs.php and added the !headers_sent() logic to disable them if the header had been sent already. Now doing this has allowed the forum to kind of work. The login and logout work but during the process a forum error page (displaying a header already sent error) flashes up and then the home page will load. This does not sound correct and is very noticable on 28.8k dial up.. yep very slow working over snail dial up. Interested to hear your comments... Scott Title: Re: problem Post by: cowboy on July 19, 2005, 05:54:48 PM The "!headers_sent()" (my first suggestion) should do the trick if you will put it in you mambo's index.php.
Title: Re: problem Post by: Scott on July 20, 2005, 08:57:41 AM Cowboy,
I did modify the index.php file as you said. This solved the problem except for when trying to login or logout of the forum. The headers sent error would then reoccur??? Scott
Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved. |