[solved] module manager not displaying modules

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.
handcoded
Forum Members
Forum Members
Posts: 123
Joined: Thu Dec 06, 2007 2:26 pm

[solved] module manager not displaying modules

Post by handcoded »

Hi

I've moved a cms made simple install onto another server and the module manager displays page in admin displays fine but does no list any modules. I have re-uploaded the module manager files and checked that the modules directory is set to 777 but still nothing.

I am getting this error on page load
Allowed memory size of 8388608 bytes exhausted (tried to allocate 2103424 bytes) in /home/deco/public_html/modules/nuSOAP/nuSOAP.module.php on line 180

Is this the php memory limit ? If so what is a good amount to raise it to ?

Thanks
Last edited by handcoded on Sun Feb 24, 2008 5:09 pm, edited 1 time in total.
handcoded
Forum Members
Forum Members
Posts: 123
Joined: Thu Dec 06, 2007 2:26 pm

Re: module manager not displaying modules

Post by handcoded »

I upped the memory for php from 8 to 16mb and now the module manager is working fine.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: [solved] module manager not displaying modules

Post by Nullig »

16 is good, but if you have a lot of mods, 32 would be better.

Nullig
User avatar
goallblacks
Forum Members
Forum Members
Posts: 26
Joined: Wed Sep 19, 2007 8:27 pm

Re: [solved] module manager not displaying modules

Post by goallblacks »

FYI use
ini_set('memory_limit','??M');
replacing ?? with the amount you need 16, 32, or whatever
"It's better to be a lion for a day than a sheep all your life". - unknown.

"Plenty of people miss their share of happiness, not because they never found it, but because they didn't stop to enjoy it."  William Feather (1889-1981, Writer)
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: [solved] module manager not displaying modules

Post by darconny »

goallblacks wrote: FYI use
ini_set('memory_limit','??M');
replacing ?? with the amount you need 16, 32, or whatever
Can you please explain this more? I have a huge problem with cmsms running on a local provider with 8MB php memory limit. The modules are not working at all, neither the page manager etc. I just get blank white pages :(

I asked ISP administrator but I got negative answer, ie. "it's not possible to raise php memory". So, if this can be solved somehow from the user (my) side, please explain.

Thank you in advance
Darko
User avatar
goallblacks
Forum Members
Forum Members
Posts: 26
Joined: Wed Sep 19, 2007 8:27 pm

Re: [solved] module manager not displaying modules

Post by goallblacks »

Probably best to refer to the PHP manual for things like this. A description of ini_set is in section "XCII. PHP Options&Information"

However, here goes.

1.    edit admin/moduleinterface.php using whatever editor you have. I use Kate under SUSE linux
2.    Insert one of the following between line 19 and 20
        - if you want 16M allocated then insert          ini_set('memory_limit','16M');
        - if you want 20M allocated then insert          ini_set('memory_limit','20M');
        - if you want 32M allocated then insert          ini_set('memory_limit','32M');
        - ... and so on.
3.    save the module.
"It's better to be a lion for a day than a sheep all your life". - unknown.

"Plenty of people miss their share of happiness, not because they never found it, but because they didn't stop to enjoy it."  William Feather (1889-1981, Writer)
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: [solved] module manager not displaying modules

Post by darconny »

Thank you very much goallblacks :)

This solved just a part of my problem, some modules are accessible now (set to 32M). But, how can I raise that limit for other components, I get white pages when I try to reach Content/pages, or Content/images, templates etc?

regards
Darko
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: [solved] module manager not displaying modules

Post by RonnyK »

Another good point where to insert that logic is just inside the config.php, right fter the <?php opening....

This is because the config.php doesnt get overwritten in an upgrade, core-files can be overwritten. In the new version (1.4 upcoming) there is a global setting, that will set the memory in the config.php from within the backend.

Ronny
User avatar
goallblacks
Forum Members
Forum Members
Posts: 26
Joined: Wed Sep 19, 2007 8:27 pm

Re: [solved] module manager not displaying modules

Post by goallblacks »

That is true. I just change it where needed so as not to tie up resources uneccessarily. i reckon a hosting provider who sets it low does that for a reason and setting it high for every script will probably deregrade the server performance.

Grabbing resources the whol time may even cause the account to be suspended.
"It's better to be a lion for a day than a sheep all your life". - unknown.

"Plenty of people miss their share of happiness, not because they never found it, but because they didn't stop to enjoy it."  William Feather (1889-1981, Writer)
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: [solved] module manager not displaying modules

Post by darconny »

I still have problems with cmsms installation, despite the fact that local hosting provider raised php memory to 16M.
Now I try to force earlier version to work (mle 1.2.3), because it says that 16M is recommended for php memory limit. Something is wrong, part of menu disappeared and I get white page on Content/pages (listcontent.php). I used ftp for coping files to web server, is it possible this caused the problems?  I am not familiar with shell installation..

Also, I can't raise php limit manually, as goallblacks said, provider can suspend my account if that cause degrading server performance.

So, if you have some advice for me, let me know..

Thanks
Darko
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [solved] module manager not displaying modules

Post by Dr.CSS »

Sorry, it sounds like you need to switch to a new service provider...
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: [solved] module manager not displaying modules

Post by darconny »

Thank you Mark, I think you are right. But, the problem is that's the clients decision to go with that provider.
Unfortunately, I think this project will fail.
User avatar
goallblacks
Forum Members
Forum Members
Posts: 26
Joined: Wed Sep 19, 2007 8:27 pm

Re: [solved] module manager not displaying modules

Post by goallblacks »

before you give up check the file permissions. Some ftp programs set them incorrectly. Also the smarty templates_c and cache_c will need to be writable
"It's better to be a lion for a day than a sheep all your life". - unknown.

"Plenty of people miss their share of happiness, not because they never found it, but because they didn't stop to enjoy it."  William Feather (1889-1981, Writer)
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: [solved] module manager not displaying modules

Post by darconny »

Hmm, I've set the file/folders permissions following install docs through Total Commander. Seems to me that everything is ok, how can I see if the problem is with permissions?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [solved] module manager not displaying modules

Post by Dr.CSS »

?Total Commander? is this your FTP client/software?...

I use FileZilla and it shows the permissions on the folders/files next to type in the rwx format meaning ReadWriteeXecute also by right clicking and looking at file attributes...
Locked

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