Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 19th, 2005, 09:33 PM
Registered User
 
Join Date: Nov 2005
Location: Fairfax, CA, USA.
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
Reply With Quote
  #2 (permalink)  
Old November 23rd, 2005, 10:46 AM
Authorized User
 
Join Date: Nov 2005
Location: Houston, TX, .
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>
Reply With Quote
  #3 (permalink)  
Old November 26th, 2005, 11:43 PM
Registered User
 
Join Date: Nov 2005
Location: Fairfax, CA, USA.
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:42 PM.


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