Page 1 of 1
Again someone with problems
Posted: Tue 17. Feb 2004, 11:15
by Virco
After a smoothly installation of phpwcms there must be some problems
Get the following error after loging into te admin part:
Code: Select all
Parse error: parse error, unexpected $, expecting ']' in /www/htdocs/kvoko/cms/include/inc_lib/checkmessage.inc.php on line 27
And after logging out:
Code: Select all
Parse error: parse error, unexpected $, expecting ']' in /www/htdocs/kvoko/cms/include/inc_lib/checkmessage.inc.php on line 27
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/kvoko/cms/include/inc_lib/checkmessage.inc.php:27) in /www/htdocs/kvoko/cms/phpwcms.php on line 99
url of the site is:
http://www.kvoko.nl/cms
I can't find any solutions for it.
Perhaps there is someone who can help me out.
Posted: Tue 17. Feb 2004, 12:14
by pSouper
a header erro can mean there is an http output before a php output such as a space or new line where there shouldn't be.
here is my checkmessages.inc.php, try copying this over your file make sure you select all then paste to avoide any spaces and empty lines.
then let us know how you got on.
Code: Select all
<?php
/*************************************************************************************
Copyright notice
(c) 2002-2003 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
This script is part of PHPWCMS. The PHPWCMS web content management system is
free software; you can redistribute it and/or modify it under the terms of
the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.
The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
A copy is found in the textfile GPL.txt and important notices to the license
from the author is found in LICENSE.txt distributed with these scripts.
This script is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
This copyright notice MUST APPEAR in all copies of the script!
*************************************************************************************/
//Check is actual user has new messages waiting
$sql = "SELECT COUNT(*) FROM ".DB_PREPEND."phpwcms_message WHERE msg_uid=".$_SESSION["wcs_user_id"]." AND msg_read=0;";
if($check = mysql_query($sql, $db)) {
$wcs_msg_waiting = ($row = mysql_fetch_row($check)) ? $row[0] : 0;
} else {
$wcs_msg_waiting = 0;
}
if($wcs_msg_waiting) {
/*
$wcsnav["navspace1"] = "<img src='img/nav/new_mail_r1_c1.gif' height=15 width=8>".
"<a href='phpwcms.php?do=messages'>".
"<img src='img/nav/new_mail_r1_c2.gif' width=69 height=15 name='newmailpic0' border=0 ".
"title='".$wcs_msg_waiting." unread messages waiting!' ".
"onMouseOver='newmailpic0.src=\"img/nav/new_mail_r1_c2.gif\"' ".
"onMouseOut='newmailpic0.src=\"img/nav/new_mail_r1_c2.gif\"'></a>";
*/
$wcsnav["navspace1"] = "<a href=\"phpwcms.php?do=messages\" title=\"".$wcs_msg_waiting." new messages waiting!\">".
"<img src=\"img/symbole/new_mail.gif\" border=\"0\"></a>";
$new_mail_waiting = 1;
}
?>
Posted: Tue 17. Feb 2004, 12:33
by Virco
Thnx. The first two errors are fixed.
Sonehow the file was incomplete.
Posted: Tue 17. Feb 2004, 12:35
by pSouper
Posted: Tue 17. Feb 2004, 14:40
by Virco
Why can't I fill something in at the summary.
Posted: Tue 17. Feb 2004, 15:36
by pSouper
it looks like it's not loading htmlAREA [or FCKeditor whichever is your default]. do you have this app in your include/inc_ext dir?
also check that tyhis line in conf.inc.php is as you would like it to be...
Code: Select all
$phpwcms["wysiwyg_editor"] = 1; //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
Posted: Tue 17. Feb 2004, 15:42
by Virco
pSouper wrote:it looks like it's not loading htmlAREA [or FCKeditor whichever is your default]. do you have this app in your include/inc_ext dir?
The answer is: Yes
Code:
$phpwcms["wysiwyg_editor"] = 1; //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
Is also allright.
So that isn't the problem.
Posted: Tue 17. Feb 2004, 16:50
by Virco
ok is also solved.
My internet connection is the problem.
(office network)
Thnx for the support and the great work.
Posted: Tue 17. Feb 2004, 17:35
by pSouper
hehe, good work dude