Archived CMSimple Support Forum

The Old CMSimple User Community
It is currently Thu Sep 02, 2010 4:38 pm

This archived CMSimple Support Forum will be locked primo June 2008. Users with a commercial licence are advised to register and use the new Official Support Forum at CMSimple.com instead. A community driven forum with free registration is found at cmsimpleforum.com.

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: ss in /var/www/htdocs/jenisej/cmsimple/cms.php on line 162
PostPosted: Tue Apr 26, 2005 2:04 pm 
Offline

Joined: Sat Mar 26, 2005 3:21 pm
Posts: 23
hello!

I've another problem. My site runs on my own apache server (1.3.33) with php (4.3.11) and I regulary get this text in apache log (error_log):

Code:
[Tue Apr 26 09:24:10 2005] [error] PHP Notice:  Undefined variable:  ss in /var/www/htdocs/jenisej/cmsimple/cms.php on line 162


The site seems to work perfectly, except the fact I get this error. I have checked my cms.php and found that I in line nr 157 I have this :

Code:
$ss=$s;$c[$s]=preg_replace("/<h[1-3][^>]*>(\&nbsp;| )?<\/h[1-3]>/i","",stripslashes($text));if($s==0)if(!preg_match("/^(\n)?<h1[^>]*>.*<\/h1>/i
",rmnl($c[0]))&&!preg_match("/^(<p[^>]*>)?(\&nbsp;| |<br \/>)?(<\/p>)?(\n)?$/i",rmnl($c[0])))$c[0]='<h1>'.$tx['toc']['missing'].'</h1>'.$c[0];$
title=ucfirst($tx['filetype']['content']);if($fh=@fopen($pth['file']['content'],"w")){fwrite($fh,'<html><head>'.head().'</head><body>'."\n");fo
reach($c as $i){fwrite($fh,rmnl($i."\n"));}fwrite($fh,'</body></html>');fclose($fh);rfc();}else e('cntwriteto','content',$pth['file']['content'
]);$title='';}


and in line 162 I have this:

Code:
if($s<0&&$ss<$cl)$s=$ss;if($s>-1){$su=$u[$s];$iimage='';


Is this normal?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 2:17 pm 
Offline

Joined: Wed Dec 31, 2003 1:07 pm
Posts: 2494
Location: planet earth
...


Last edited by djot on Wed Nov 01, 2006 9:03 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 10:03 pm 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
It is clearly a bug, which must be fixed sometime, even though it is a minor bug.

The $ss variable is to remember, which page was edited and saved. The if statement in line 162 should only be used if the $ss variable was defined in the save-section.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 10:38 pm 
Offline

Joined: Wed Dec 31, 2003 1:07 pm
Posts: 2494
Location: planet earth
...


Last edited by djot on Wed Nov 01, 2006 9:03 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 7:03 pm 
Offline

Joined: Sat Mar 26, 2005 3:21 pm
Posts: 23
thx for explaining


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: MSN [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group