CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#5223] admintemplate - no title, no active section (php-cgi)

avatar
Created By: Tomasz Szlagowski (spect)
Date Submitted: Wed Jul 28 11:16:00 -0400 2010

Assigned To: Ted Kulp (wishy)
Version: None
CMSMS Version: None
Severity: Trivial
Resolution: Awaiting Response
State: Closed
Summary:
admintemplate - no title, no active section (php-cgi)
Detailed Description:
Although I've had this issue with version 0.7.1, I'm reporting it as I haven't
noticed anything about it in changelogs.

The problem is title (<title>) being blank and no section being active.

The reason for such behavior is wrong data in AdminTheme->script
(lib/classes/class.admintheme.inc.php).

On my client's hosting they use PHP-CGI and _SERVER['SCRIPT_NAME'] returns
php5.cgi (or something like that).
Changing some code, so that it relies on REQUEST_URI (only the part between last
/ and first ?)  fixed the issue.

Sorry if the bug has already been fixed.


History

Comments
avatar
Date: 2010-07-29 07:20
Posted By: Ted Kulp (wishy)

Can you tell me what you actually changed?  I'm not quite sure I understand
where it was causing the issue.

Thanks,

      
avatar
Date: 2010-07-30 09:02
Posted By: Tomasz Szlagowski (spect)

in AdminTemplate instance:

before change: $this->script == 'php5.cgi'
after change: $this->script == 'index.php'

this matters for PopulateAdminNavigation method, where all the menu items',
checks like this happen:
strstr($sectionArray['url'],$this->script) !== FALSE

at least that's what happens in version 1.7.1.
      
avatar
Date: 2011-01-07 14:39
Posted By: Ronny Krijt (ronnyk)

Please provide more information. Otherwise the tracker will be closed.
      
avatar
Date: 2012-03-08 06:37
Posted By: Ronny Krijt (ronnyk)

1 year without information.
      
Updates

Updated: 2012-03-08 06:37
cmsms_version_id: => -1
state: Open => Closed

Updated: 2010-07-29 07:20
resolution_id: => 10
assigned_to_id: 100 => 102