Page 1 of 1

[SOLVED] Admin screens are blank

Posted: Thu Apr 02, 2009 12:57 pm
by kahuna_999
Hi

I have installed CMSMS (1.5.3) under XAMPP (1.7.0) on two pc's, both running XP.

The first one (at home) installed without problem and works beautifully.

The second (at work) had a single failure during install due to remote_url check.  This I am assuming is because I am sitting behind a firewall.  No great problem I thought as I'm just playing at the moment.

The default site works fine, expect for the /admin/ screens.   I can log in but then have a long wait before being presented with the top half of the console screen.  The menus are there and offer dropdown choices, but other than that the screen is empty.

Looked at the source for the generated page and it is not complete. The last couple of lines are

Code: Select all

<div class="breadcrumbs"><p class="breadcrumbs"><a class="breadcrumbs" href="index.php?_s_=f03a619b">CMS</a> » 
<a class="breadcrumbs" href="index.php?_s_=f03a619b">Home</a></p></div><div class="hstippled"> </div>
<div id="MainContent">
The last entries in access.log are

Code: Select all

127.0.0.1 - - [02/Apr/2009:13:50:05 +0100] "GET /dev/cmsmadesimple-1.5.3-full/admin/index.php?_s_=223f20b8 HTTP/1.1" 302 -
127.0.0.1 - - [02/Apr/2009:13:50:08 +0100] "GET /dev/cmsmadesimple-1.5.3-full/admin/ HTTP/1.1" 200 5390
127.0.0.1 - - [02/Apr/2009:13:51:47 +0100] "GET /dev/cmsmadesimple-1.5.3-full/admin/style.php HTTP/1.1" 200 24733
127.0.0.1 - - [02/Apr/2009:13:51:47 +0100] "GET /dev/cmsmadesimple-1.5.3-full/admin/themes/NCleanGrey/includes/standard.js HTTP/1.1" 304 -
127.0.0.1 - - [02/Apr/2009:13:51:47 +0100] "GET /dev/cmsmadesimple-1.5.3-full/lib/scriptaculous/cmsext.js HTTP/1.1" 304 -
127.0.0.1 - - [02/Apr/2009:13:51:47 +0100] "GET /dev/cmsmadesimple-1.5.3-full/lib/scriptaculous/prototype.js HTTP/1.1" 304 -
127.0.0.1 - - [02/Apr/2009:13:51:47 +0100] "GET /dev/cmsmadesimple-1.5.3-full/lib/scriptaculous/scriptaculous.js HTTP/1.1" 304 -
127.0.0.1 - - [02/Apr/2009:13:51:47 +0100] "GET /dev/cmsmadesimple-1.5.3-full/lib/scriptaculous/util.js HTTP/1.1" 304 -
127.0.0.1 - - [02/Apr/2009:13:51:47 +0100] "GET /dev/cmsmadesimple-1.5.3-full/lib/scriptaculous/dragdrop.js HTTP/1.1" 304 -
127.0.0.1 - - [02/Apr/2009:13:51:47 +0100] "GET /dev/cmsmadesimple-1.5.3-full/lib/scriptaculous/effects.js HTTP/1.1" 304 -
127.0.0.1 - - [02/Apr/2009:13:51:47 +0100] "GET /dev/cmsmadesimple-1.5.3-full/lib/scriptaculous/controls.js HTTP/1.1" 304 -
127.0.0.1 - - [02/Apr/2009:13:51:47 +0100] "GET /dev/cmsmadesimple-1.5.3-full/admin/themes/NCleanGrey/images/logoCMS.png HTTP/1.1" 304 -
127.0.0.1 - - [02/Apr/2009:13:51:47 +0100] "GET /dev/cmsmadesimple-1.5.3-full/admin/themes/NCleanGrey/images/layout/body.jpg HTTP/1.1" 304 -
127.0.0.1 - - [02/Apr/2009:13:51:47 +0100] "GET /dev/cmsmadesimple-1.5.3-full/admin/themes/NCleanGrey/images/layout/bg_banner.png HTTP/1.1" 304 -
127.0.0.1 - - [02/Apr/2009:13:51:47 +0100] "GET /dev/cmsmadesimple-1.5.3-full/admin/themes/NCleanGrey/images/layout/nav.png HTTP/1.1" 304 -
127.0.0.1 - - [02/Apr/2009:13:51:47 +0100] "GET /dev/cmsmadesimple-1.5.3-full/admin/themes/NCleanGrey/images/icons/extra/nav-icons.gif HTTP/1.1" 304 -
No errors are reported anywhere...

Any ideas?

Re: Admin screens are blank

Posted: Thu Apr 02, 2009 2:24 pm
by tyman00
First, thank you for providing version information and the logs. Not many do that anymore.

It looks like your logs don't show the problem though. Check out the HTTP Status codes in the logs (200, 302, 304) everything seems to be loading fine. I am no expert with this, but I would be lead to believe it has something to do with an XAMPP install. Try removing and reinstalling it again.

Re: Admin screens are blank

Posted: Thu Apr 02, 2009 3:00 pm
by Ted
I'm betting that display_errors is turned off.  You're probably getting a decent PHP error, but that'll still show in the log as a 200.  Make sure you have this in your php.ini and restart apache:

Code: Select all

display_errors = On
error_reporting = E_ALL & ~E_NOTICE
And, yeah, that's for the great post.  That's the way to do it.  :)

Re: Admin screens are blank

Posted: Thu Apr 02, 2009 8:12 pm
by Nullig
In Site Admin/Global Settings, change the "Check for new CMS versions using this URL:" setting, by setting it to none (you have to type in the word none), and see if that helps.

Nullig

Re: Admin screens are blank

Posted: Fri Apr 03, 2009 8:56 am
by kahuna_999
Nullig, I cant see any of the Admin screens...  but once I can, I'll do this.  thanks  ;)

Ted / tyman
I have tried the following without any success.  I just want re-affirm, it is only the Admin section that fails to display, the 'site' content is showing just fine.

* Reinstall XAMPP
* Cleared *ALL* browser data and cookies
* dropped cmsms database
* reinstalled cmsms
* installed WAMP
* installed cmsms in WAMP

btw display_errors and error_reporting are already set as phpinfo() shows.

Code: Select all

display_errors On On 
display_startup_errors Off Off 
doc_root no value no value 
docref_ext no value no value 
docref_root no value no value 
enable_dl On On 
error_append_string no value no value 
error_log c:/wamp/logs/php_error.log c:/wamp/logs/php_error.log 
error_prepend_string no value no value 
error_reporting 6143 6143 
I was beginning to think it was mysql causing issues, but phpmyadmin is working fine, so it cant be that.

I then installed Joomla and the admin panels for that work just fine.  I did get some errors out into php_error.log indicating problems accessing remote sites, but that is to be expected.

Code: Select all

[03-Apr-2009 09:32:35] PHP Warning:  fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to feeds.joomla.org:80
I then retried the CMSMS admin pages.  Still nothing on screen, and nothing posted to the php_error.log

Is CMSMS trying to access remote sites during the admin screen build? 
Because the HTML is not complete, it looks as though whatever it was doing has been stopped mid flow.

Cant think of much else to try  ??? ??? ??? ??? ???

Re: Admin screens are blank

Posted: Fri Apr 03, 2009 10:49 am
by Ted
If it's stopping mid-flow, there might be an error in the source that wouldn't get rendered because of where it is in the html.  Do a "View Source" of the page in the browser, scroll all the way to the bottom, and if display_errors is on, there should be something there.

Re: Admin screens are blank

Posted: Fri Apr 03, 2009 10:59 am
by kahuna_999
Found it!!!! ;D ;D ;D ;D ;D

Nullig was spot on with his suggestion, although I couldnt do it via the admin screens...

I manually added a row to cms_siteprefs and voila..  problem solved

Code: Select all

insert into cms.cms_siteprefs (sitepref_name, sitepref_value) VALUES ("urlcheckversion", "none");
After quite a bit tracking it down, the problem line is 157 in admin/headers.php

Code: Select all

// we have a 'theoretically' valid url
$txt = @file_get_contents($url);
Because it was defaulting to "dev.cmsmadesimple.org/latest_version.php" and couldn't get past the firewall it was simply hanging.

It needs additional logic to check that remote calls can be made prior to running this code, similar to the 'remote url' check on install.

Thanks for all the help

Re: Admin screens are blank

Posted: Fri Apr 03, 2009 11:10 am
by Ted
Very cool.  Glad you figured that out.  I'll put in a bug into the tracker and we can get that fixed for 1.6.

http://dev.cmsmadesimple.org/bug/view/3246

Re: [SOLVED] Admin screens are blank

Posted: Tue Jul 21, 2009 11:27 am
by kahuna_999
Hi Ted and Co...

This is still an issue in fresh install of 1.6

Below fixes the issue...

Code: Select all

update `cms_siteprefs` set sitepref_value = 'none'
where sitepref_name = "urlcheckversion"
Although the 'urlcheckversion' row exists it has a default value of NULL

Re: [SOLVED] Admin screens are blank

Posted: Tue Jul 21, 2009 6:33 pm
by Pierre M.
Hello,

please file bug reports in the forge. It is where the DevTeam can track issues. They vanish in the forum. You can discuss here with a bug #id.

Pierre M.

Re: [SOLVED] Admin screens are blank

Posted: Tue Jul 21, 2009 7:05 pm
by kahuna_999