[SOLVED] Admin screens are blank

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
kahuna_999
New Member
New Member
Posts: 6
Joined: Thu Apr 02, 2009 12:08 pm

[SOLVED] Admin screens are blank

Post 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?
Last edited by tyman00 on Fri Apr 03, 2009 4:07 pm, edited 1 time in total.
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Admin screens are blank

Post 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.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Admin screens are blank

Post 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.  :)
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Admin screens are blank

Post 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
kahuna_999
New Member
New Member
Posts: 6
Joined: Thu Apr 02, 2009 12:08 pm

Re: Admin screens are blank

Post 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  ??? ??? ??? ??? ???
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Admin screens are blank

Post 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.
kahuna_999
New Member
New Member
Posts: 6
Joined: Thu Apr 02, 2009 12:08 pm

Re: Admin screens are blank

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Admin screens are blank

Post 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
kahuna_999
New Member
New Member
Posts: 6
Joined: Thu Apr 02, 2009 12:08 pm

Re: [SOLVED] Admin screens are blank

Post 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
Pierre M.

Re: [SOLVED] Admin screens are blank

Post 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.
kahuna_999
New Member
New Member
Posts: 6
Joined: Thu Apr 02, 2009 12:08 pm

Re: [SOLVED] Admin screens are blank

Post by kahuna_999 »

Locked

Return to “[locked] Installation, Setup and Upgrade”