Page 1 of 2

System Information - Page shows up blank

Posted: Sun Oct 22, 2006 4:34 pm
by cnymike
I just installed SystemInfo 0.1.1 in my cmsms 1.0.2 and other than the horizontal menu for the module, the page is blank. this is using firefox on a Mac. It does seem that that pages flashes with something really quickly when the sysinfo page first loads, but after the flash, it is devoid of any information.

Re: System Information - Page shows up blank

Posted: Sun Oct 22, 2006 5:14 pm
by Dee
I get the same... at the end of the "flash", this line is present:

Code: Select all

PHP Fatal error:  Call to undefined function:  str_ireplace() in /path/to/cmsms/modules/SystemInfo/phpinfo.php on line 8
str_ireplace is a PHP5 only function.

Replacing the str_ireplace instances in phpinfo.php with str_replace, gives another error:

Code: Select all

 PHP Fatal error:  Call to a member function on a non-object in /path/to/cmsms/modules/SystemInfo/external/phpsysinfo/includes/common_functions.php on line 337

Re: System Information - Page shows up blank

Posted: Sun Oct 22, 2006 5:29 pm
by Dee
According to modules/SystemInfo/external/phpsysinfo/README it should be able to work with PHP 4.x

Re: System Information - Page shows up blank

Posted: Sun Oct 22, 2006 5:59 pm
by Dee
replacing the instances of str_ireplace with str_replace in phpsysinfo.php also and adding/changing these lines to external/phpsysinfo/index.php fixes it. The changes are in SVN already, so you could also download an updated version of external/phpsysinfo/index.php here.

Re: System Information - Page shows up blank

Posted: Sun Oct 22, 2006 6:16 pm
by Silmarillion
Version 0.1.2 is now out in the Forge with these fixes. Thanks for noticing... only running php5 at home, so I forget stuff like that from time to time...

Best regards
Morten/Silmarillion

Re: System Information - Page shows up blank

Posted: Wed Jun 06, 2007 3:11 pm
by jmcgin51
Sorry to dredge up an old thread, but I'm having the same issue noted by the OP.  I'm running CMSMS 1.0.6 on a Windows 2003 shared host, with PHP 5.2.0.  I've uninstalled and reinstalled the System Information module from the Module Manager, but nothing changed.  As the page loads, I briefly get a glimpse of some system information, but when the page completes loading, I only the the System Information module menu, and clicking any of the tabs produces no results.

EDIT TO ADD: This happens in Explorer 6.0 and Firefox, so I don't think it's browser-related.  In IE, I do get the following script error, though:
Line: 56
Char: 3
Error: Object required
Code: 0
URL: http://mywebaddress/admin/moduleinterfa ... SystemInfo

I don't know if this error has anything to do with this issue.

Any ideas?

Re: System Information - Page shows up blank

Posted: Wed Jun 06, 2007 3:38 pm
by Nullig
Is your php memory limit set to 8M?

Nullig

Re: System Information - Page shows up blank

Posted: Wed Jun 06, 2007 3:58 pm
by jmcgin51
I'm checking with my host - should it be 16MB instead?

I've asked them to set it to 16MB, so what is the next step if a 16MB limit doesn't correct the problem?

Thanks for the response!

Re: System Information - Page shows up blank

Posted: Wed Jun 06, 2007 4:09 pm
by Nullig
Whenever I've had this problem, setting it to 16M usually works.

You could try adding:

ini_set("memory_limit", "16M");

near the top of your config.php file, to see if it makes a difference for you

Nullig.

Re: System Information - Page shows up blank

Posted: Wed Jun 06, 2007 4:18 pm
by jmcgin51
thanks, I'll let you know if a 16MB limit fixes the problem...

Re: System Information - Page shows up blank

Posted: Wed Jun 06, 2007 8:55 pm
by jmcgin51
well, my host responded and said that my account is already set to a 16MB PHP memory limit, so I added the
"ini_set("memory_limit", "16M");" line to my config.php file, but it doesn't appear to have made any difference.  I still just get the quick flash of information and then nothing...

Other ideas?

Re: System Information - Page shows up blank

Posted: Wed Jun 06, 2007 9:30 pm
by Nullig
Have you set your permissions correctly to give the admin group access to SystemInfo?

You could also try installing it via FTP, instead of the XML file.

Nullig

Re: System Information - Page shows up blank

Posted: Wed Jun 06, 2007 10:00 pm
by jmcgin51
Interesting - I don't have any SystemInfo items in my permissions list at all, so I can't select it for the Admin user.  Also interestingly, I only have one Admin user (me), and I haven't given myself access to all parts of the site, yet I do have access to all parts of the site (calendar, quizzard, questions/answers, etc.)

Is this a default setting so that if you're the only Admin, you have rights by default, or is this a significant bug?

And why don't I have a SystemInfo checkbox in my permissions list?

I'll try the FTP install...

thanks

Re: System Information - Page shows up blank

Posted: Thu Jun 07, 2007 12:45 am
by Nullig
Sorry, I got confused about the admin group rights - it doesn't have any permissions to set.

Nullig

Re: System Information - Page shows up blank

Posted: Thu Jun 07, 2007 8:25 am
by Silmarillion
Well, I also get a blank page and I did the module... I'll look into it!

sil.