Again someone with problems

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Virco
Posts: 6
Joined: Tue 17. Feb 2004, 11:03

Again someone with problems

Post 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.
Last edited by Virco on Tue 17. Feb 2004, 12:45, edited 1 time in total.
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post 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;	
}
?>
Virco
Posts: 6
Joined: Tue 17. Feb 2004, 11:03

Post by Virco »

Thnx. The first two errors are fixed.

Sonehow the file was incomplete.
Last edited by Virco on Tue 17. Feb 2004, 12:44, edited 3 times in total.
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

:)
Virco
Posts: 6
Joined: Tue 17. Feb 2004, 11:03

Post by Virco »

Image

Why can't I fill something in at the summary.
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post 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
Virco
Posts: 6
Joined: Tue 17. Feb 2004, 11:03

Post 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.
Virco
Posts: 6
Joined: Tue 17. Feb 2004, 11:03

Post by Virco »

ok is also solved.

My internet connection is the problem.

(office network)

Thnx for the support and the great work.
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

hehe, good work dude ;)
Post Reply