Page 1 of 1

Interresting Warnings...

Posted: Thu Jul 06, 2006 7:01 pm
by bdub92
Hi!

I just installed the latest release today and had to fix a use sub dir safe mode problem

Code: Select all

		//use_sub_dirs doesn't work in safe mode
		if (ini_get("safe_mode") != "1")
			$this->use_sub_dirs = false;
...which fixed the fetching errors.  I can view the site fine now, however I'm receiving these errors at the top of every page:

Code: Select all

Notice: Only variable references should be returned by reference in C:\Accounts\reveriev\wwwRoot\start\lib\adodb_lite\adodb.inc.php on line 136
The pages seem to navigate fine, however I don't really want these errors shown, and i have no idea what a variable reference is or what is should be returned by for that matter  ;D

Also, the admin panel shows these errors, again at the top:

Code: Select all

Notice: Only variable references should be returned by reference in C:\Accounts\reveriev\wwwRoot\start\lib\adodb_lite\adodb.inc.php on line 136

Warning: Cannot modify header information - headers already sent by (output started at C:\Accounts\reveriev\wwwRoot\start\lib\adodb_lite\adodb.inc.php:136) in C:\Accounts\reveriev\wwwRoot\start\lib\classes\class.admintheme.inc.php on line 161

Warning: Cannot modify header information - headers already sent by (output started at C:\Accounts\reveriev\wwwRoot\start\lib\adodb_lite\adodb.inc.php:136) in C:\Accounts\reveriev\wwwRoot\start\lib\classes\class.admintheme.inc.php on line 164

Warning: Cannot modify header information - headers already sent by (output started at C:\Accounts\reveriev\wwwRoot\start\lib\adodb_lite\adodb.inc.php:136) in C:\Accounts\reveriev\wwwRoot\start\lib\classes\class.admintheme.inc.php on line 167

Warning: Cannot modify header information - headers already sent by (output started at C:\Accounts\reveriev\wwwRoot\start\lib\adodb_lite\adodb.inc.php:136) in C:\Accounts\reveriev\wwwRoot\start\lib\classes\class.admintheme.inc.php on line 168

Warning: Cannot modify header information - headers already sent by (output started at C:\Accounts\reveriev\wwwRoot\start\lib\adodb_lite\adodb.inc.php:136) in C:\Accounts\reveriev\wwwRoot\start\lib\classes\class.admintheme.inc.php on line 171

Warning: Cannot modify header information - headers already sent by (output started at C:\Accounts\reveriev\wwwRoot\start\lib\adodb_lite\adodb.inc.php:136) in C:\Accounts\reveriev\wwwRoot\start\lib\classes\class.admintheme.inc.php on line 176
The host uses IIS and Windows 2003 Server if that helps any.  Thank you for taking the time to look at the problem!

Re: Interresting Warnings...

Posted: Thu Sep 28, 2006 10:30 pm
by CMSMS-Fan
I am getting the same errors on the admin/login.php and the admin/index.php?
Also the FeedbackForm Module caused a problem so had to be deleted to allow access to the admin.
Has anyone else suffered the same errors?
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxxxx/user/htdocs/admin/index.php:1) in /home/xxxxxxxxx/user/htdocs/lib/classes/class.admintheme.inc.php on line 161

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxxxx/user/htdocs/admin/index.php:1) in /home/xxxxxxxxx/user/htdocs/lib/classes/class.admintheme.inc.php on line 164

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxxxx/user/htdocs/admin/index.php:1) in /home/xxxxxxxxx/user/htdocs/lib/classes/class.admintheme.inc.php on line 167

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxxxx/user/htdocs/admin/index.php:1) in /home/xxxxxxxxx/user/htdocs/lib/classes/class.admintheme.inc.php on line 168

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxxxx/user/htdocs/admin/index.php:1) in /home/xxxxxxxxx/user/htdocs/lib/classes/class.admintheme.inc.php on line 171

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxxxx/user/htdocs/admin/index.php:1) in /home/xxxxxxxxx/htdocs/lib/classes/class.admintheme.inc.php on line 176

Re: Interresting Warnings...

Posted: Fri Sep 29, 2006 4:04 am
by Dr.CSS
It is a windows server problem you may want to search the forum for it you may find window specific install/setup info...

Re: Interresting Warnings...

Posted: Fri Sep 29, 2006 5:12 pm
by CMSMS-Fan
Sorry but it appears not to be an issue associated with a windoze server as you will see from the path in my errors that the path is not that of a windoze file system - the xxxxxxxx in my post over right the full path.  I appreciate that the first post bybdub92 is from a windoze system but mine is Linux.

Re: Interresting Warnings...

Posted: Fri Sep 29, 2006 5:43 pm
by CMSMS-Fan
I have had a look at the code and it appears the header tags are being called twice:-
login.php:-

Code: Select all

158  // Language shizzle
159  //header("Content-Encoding: " . get_encoding());
160  header("Content-Language: " . $current_language);
161  header("Content-Type: text/html; charset=" . get_encoding());
What is even more worrying is that I must have only got into the admin last night due to cookies from earlier.  I can no longer log in at all.
It looks like Ver 1.02 may not be ready for use in anger.....?

Re: Interresting Warnings...

Posted: Fri Sep 29, 2006 5:48 pm
by tsw
php version?

each header call does different thing, the first one sets content language and the second content type and charset used...

Re: Interresting Warnings...

Posted: Fri Sep 29, 2006 5:51 pm
by CMSMS-Fan
Perl Executable: /usr/bin/perl
Perl Version: 5.008
PERL compile version OS: linux
GID: (If not blank, you are on a machine that supports membership in multiple groups simultaneously) 24714
Location of Perl: perl:
/usr/bin/perl
/usr/share/man/man1/perl.1.gz
Location of Sendmail: sendmail:
/usr/sbin/sendmail.sendmail
/usr/sbin/sendmail
/usr/lib/sendmail
/usr/lib/sendmail.sendmail
/usr/share/man/man8/sendmail.8.gz

Directory locations searched for perl executables
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0

Re: Interresting Warnings...

Posted: Fri Sep 29, 2006 5:52 pm
by tsw
php, not perl ;)

Re: Interresting Warnings...

Posted: Fri Sep 29, 2006 10:37 pm
by CMSMS-Fan
Sorry the PHP is version 4.2+

Re: Interresting Warnings...

Posted: Mon Oct 02, 2006 3:57 pm
by CMSMS-Fan
Sorry,
I have spent some time looking at the issue and I think it was due to some of the files not being overwritten during the upgrade and some of the uploaded files were corrupt or not uploaded at all.

I have now got the site up and running but the only way was to delete all CMSMS files from the server, Except config.php.  I uploaded the new files and ran the upgrade.php.  This then worked first time.

The issue I can only assume now was that my server did not overwrite correctly or my ftp was flawed in some way.
I hope this is helpfull to anyone else suffering the same.