Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 19th, 2005, 09:33 PM
Registered User
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Yet another Cannot modify header question

Howdy,

I'm new here and really know nothing about PHP coding. I do, however, want to use TikiWiki and can't login to do anything. I've searched quite a lot for an answer, and if I understand what I've read correctly, I'll need to ask my domain host to place an .ini file in the root on the server. I'm not clear what should be in it, and any help is greatly appreciated. I'll assume that the server admin will know, but I'd like to understand what it is.

A knowledeagle friend tried to fix it and kind of explained about the first msg being sent before the header and such, but I still can't login.

The error when I try to login:

Notice: Only variable references should be returned by reference in /home/jlarthos/public_html/wiki1/lib/adodb/adodb.inc.php on line 2737

Warning: Cannot modify header information - headers already sent by (output started at /home/jlarthos/public_html/wiki1/lib/adodb/adodb.inc.php:2737) in /home/jlarthos/public_html/wiki1/tiki-login.php on line 169

It's a fantastico setup of TikiWiki 1.8.6:

Operating system FreeBSD
Kernel version 5.1-RELEASE
Apache version 1.3.33 (Unix)
PERL version 5.8.7
PHP version 4.4.0
MySQL version 4.0.26

Thanks in advance,
Tim Bush
Ultra Newbie
 
Old November 23rd, 2005, 10:46 AM
Authorized User
 
Join Date: Nov 2005
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via Yahoo to tonyrosen
Default

With your header error:

All header information MUST be before ANYTHING else on the page with no white space above it in the code.

Code:
<?
// my header information
?>
<html>
 
Old November 26th, 2005, 11:43 PM
Registered User
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After trying several fixes I finally just contacted mthe admin guy at the host and he fixed it in about two seconds. Way too simple, but then, I don't know coding 8-)

> The reason being is that we upgraded the servers to php 4.4.0 and apparently TikiWiki
> doesn\t like that.
>
> The solution was actually simple, if you new what to do. There was a reference to line
> 2736 in the adodb.in.php file. That area is a subroutine and starts out as :
> function &FetchRow()
>
> I removed the ampersand (&).
>

And that, as they as, is that!

Thanks,
Tim Bush






Similar Threads
Thread Thread Starter Forum Replies Last Post
i want to modify the shopping ssomchai BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 April 3rd, 2008 01:52 AM
Simple header question smhaig BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 February 13th, 2007 05:07 PM
Modify header and footer of word file in ASP Andraw Classic ASP Basics 1 January 14th, 2005 08:04 PM
[Question]Warning: Cannot modify header informatio unknownu Beginning PHP 1 August 19th, 2004 05:16 AM
PHP ( Cannot modify header information) squared_ring Beginning PHP 6 August 14th, 2004 05:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.