Archived CMSimple Support Forum

The Old CMSimple User Community
It is currently Thu Sep 02, 2010 4:37 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.  [ 14 posts ] 
Author Message
 Post subject: Version 2.7
PostPosted: Sun Dec 03, 2006 8:17 pm 
Offline

Joined: Mon Sep 04, 2006 12:01 pm
Posts: 83
Location: Belgium
I've installed 2.7 from scratch, and I find this strange problem.

When I set the plugins folder to 'plugins', I can save, but on logout, I end up with a full white screen. The website is no longer functionnal, it's only a white page.

If I edit the 'config.php' file, via FTP, and I change the line

Code:
$cf[folder][plugins]="plugins"

to
Code:
$cf[folder][plugins]=""


everything is OK again...

I verified if all the right were OK, everything's 777. Then I tought it was because my plugins folder was empty, so I've installed a plugin, but that doesn't seem to change.

Who knows what's wrong here?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 03, 2006 8:50 pm 
Offline

Joined: Mon Sep 04, 2006 12:01 pm
Posts: 83
Location: Belgium
..and the problem is gone when I specify the full path for the plugins folder (in my case, "cms/plugins").

CAn anybody (Peter?) explain, please?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 03, 2006 9:41 pm 
Offline

Joined: Sun Oct 17, 2004 9:47 pm
Posts: 2505
must be a problem with your server, i dont have this..


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 10:25 am 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
The default for $cf[folder][plugins] in config.php is that it is empty.

Code:
$cf['plugins']['folder']="";


If you set it to something different, this code will have influence on the run process:

Code:
Line 70:
$pth['folder']['plugins']=$pth['folder']['base'].$cf['plugins']['folder'].'/';

Line 107
// Plugin loading
if($cf['plugins']['folder']!="")@include($pth['folder']['plugins'].'/index.php');


I don't understand why you get the blank screen. Maybe it has to do with something different?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 4:28 pm 
Offline

Joined: Mon Sep 04, 2006 12:01 pm
Posts: 83
Location: Belgium
I retried, it's the same behaviour. I'l try to find out and report.

But I'm not much of a PHP programmer, and there's something I don't understand.

I read line 70 as:
Code:
pluginPath = baseFolder & pluginFolder & slash


I read line 107 as:
Code:
IF pluginFolder exists THEN include the plugins at pluginPath & slash & index.php


Isn't there a slash too much? (there's one at the end of line 70, and there's one at the start of "/index.php")


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 9:04 am 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
Quote:
Isn't there a slash too much?


You are absolutely right - it must be fixed. But it shouldn't do much difference - which OS/Webserver are you running?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 5:55 pm 
Offline

Joined: Mon Sep 04, 2006 12:01 pm
Posts: 83
Location: Belgium
Server=
Red Hat Linux / Apache

Client=
Windows XP Servcie Pack 2 / Internet Explorer 6

Question: regarding the double slashes: does't it send me to the root directory. Which is not a problem if the files are in the root directory. But which causes a problem when they are not in the root...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 06, 2006 8:12 am 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
As far as I know, double slashes are just threated as single slash.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 06, 2006 8:44 am 
Offline

Joined: Wed Dec 31, 2003 1:07 pm
Posts: 2494
Location: planet earth
-
harteg wrote:
As far as I know, double slashes are just threated as single slash.

You should not rely on that ...

djot
-


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 07, 2006 6:59 pm 
Offline

Joined: Mon Sep 04, 2006 12:01 pm
Posts: 83
Location: Belgium
I tried with a single or a double slash, no change...
-----
If I write 'plugins' I have the problem as described above.
If I write an emty field or any non-existing value (I tried "dummy"), then I dont get the error.


-----
On my hosting server where I have the problem, I have different directories available.

One of them is the "httpdocs" , that's where http://www.mydomain.com will look for the index.html file.

Another directory is "httpsdocs", that's where https://www.mydomain.com will look for the index.html file.

Thus:

Code:
xxxxx
  :
  +--httpdocs
  :       :
  :      +-index.html (for http)
  :
  +--httpsdocs
  :      :
  :      +-index.html (for https)
  :
  +--statistics
  :
etc
-----
I've copied everything to another hosting provider, and there it works! On that server, there's only a folder called "www.mydomain.com" in which the index.html must reside...

-----
So it must have to do with the server, but how?
Does anybody have a clue?
Are there 'paths' to setup in the php environment or so?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 07, 2006 7:30 pm 
Offline

Joined: Mon Sep 04, 2006 12:01 pm
Posts: 83
Location: Belgium
Apparently the PHP script hangs up, so can I do some "echo blabla" to find out 'where' the loader-script is searching? This might give the PHP experts amongst you a clue?
Thx.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 08, 2006 7:48 pm 
Offline

Joined: Mon Sep 04, 2006 12:01 pm
Posts: 83
Location: Belgium
It looks like someone has a similar problem... (as far as my Deutsch goes)

http://www.cmsimple.dk/forum/viewtopic.php?t=4988


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 09, 2006 3:24 pm 
Offline

Joined: Mon Sep 04, 2006 12:01 pm
Posts: 83
Location: Belgium
Well after some (a lot of) testing:

when I replace the latest pluginloader (from djot's) by an older version (svarrer's) then the problem is gone, everything is working fine then.

So I guess that the problem is not at my server but in the pluginloader code that comes with the latest CMSimple package...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 18, 2007 9:21 pm 
Offline

Joined: Wed Dec 31, 2003 1:07 pm
Posts: 2494
Location: planet earth
-
Quote:
Isn't there a slash too much?
harteg wrote:
You are absolutely right - it must be fixed. But it shouldn't do much difference - which OS/Webserver are you running?

Are you sure? I use the settings from CMSimple. I can't find any double slahes in the Plugin Loader code.

djot
-


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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