System Information - Page shows up blank

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

System Information - Page shows up blank

Post 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.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: System Information - Page shows up blank

Post 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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: System Information - Page shows up blank

Post by Dee »

According to modules/SystemInfo/external/phpsysinfo/README it should be able to work with PHP 4.x
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: System Information - Page shows up blank

Post 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.
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm
Location: Denmark

Re: System Information - Page shows up blank

Post 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
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: System Information - Page shows up blank

Post 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?
Last edited by jmcgin51 on Wed Jun 06, 2007 3:27 pm, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: System Information - Page shows up blank

Post by Nullig »

Is your php memory limit set to 8M?

Nullig
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: System Information - Page shows up blank

Post 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!
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: System Information - Page shows up blank

Post 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.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: System Information - Page shows up blank

Post by jmcgin51 »

thanks, I'll let you know if a 16MB limit fixes the problem...
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: System Information - Page shows up blank

Post 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?
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: System Information - Page shows up blank

Post 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
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: System Information - Page shows up blank

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

Re: System Information - Page shows up blank

Post by Nullig »

Sorry, I got confused about the admin group rights - it doesn't have any permissions to set.

Nullig
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm
Location: Denmark

Re: System Information - Page shows up blank

Post by Silmarillion »

Well, I also get a blank page and I did the module... I'll look into it!

sil.
Post Reply

Return to “Modules/Add-Ons”