By HHHoagie on
When I try to add a new module... doesn't matter which module I get this error
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 14592 bytes) in /home/rhnnnnn/www/drupal/modules/cck/fieldgroup.module on line 502
Does this error mean that my I have exceeded my web space allocated by my host?
Comments
=-=
It means you are using more RAM then your host has set for you. If your host allows you to change the amount of RAM you can use you can use one of these methods to do so http://drupal.org/node/76156
in future, if you paste the error you are getting into the search bar on drupal.org you are likely to find a previous forum thread where the same exact question was asked.
Questions that are often asked are added to the Troubleshooting FAQ's section of the handbooks. Fantastic place to start when you run into trouble.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Thanks for the response and
Thanks for the response and also the search tip.
I read the link you gave and went to my host and they say to create a .htaccess file. Since there already is one I copied and pasted the php_value line in my .htaccess file and I still got the error. So my guess is that I placed the line in the wrong place in the file. I'm using php 5.x and my drupal is 5.3??
Could there be a cache thing going on is why I'm still getting the same error?
=-=
A) you should be using Drupal 5.5, you are 2 security release behind.
B) if adding it to .htaccess doesn't work try the other methods.
you can also try creating a text file adding to it
memory_limit = 24Msaving it as php.ini and uploading it to your drupal installation.
I prefer using a custom php.ini file, which you can do as well if you host allows.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Thanks for your response and
Thanks for your response and patience on my question. I created the text file as you suggested and that didn't work either. I know I am doing something wrong with your suggestions?? Here is my host's text on php.ini files: "Q: I need to change values in the php.ini file. How can I do this?
A: We cannot make global changes to php.ini for clients, however php4 and apache allow you to change any value in php.ini for just your website (or a subset of your website) in the following manner:
Create a .htaccess file (the dot at the beginning is not a typo) in the directory from where you want the change to take effect - usually your topmost "www" dir.
You can then place most php.ini directives into your apache .htaccess file(s) by adding the "php_" prefix to the directive."
Is that any help?
=-=
You didn't want them to make a global change to php.ini : /
you wanted to run your own php.ini in your account. Allowing you to customize it as needed.
The question should have been.
Can I use a custom php.ini file in my account to override default settings of php.ini on the server?
The php prefix is already attached to the .htaccess directive in the example in the link I have previously posted. see again: http://drupal.org/node/76156
Where is drupal installed ? in the public root ?
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Ok, the Q and A posted above
Ok, the Q and A posted above was a stock question and answer supplied in my host's FAQ and seemed to me to be the closest to my problem. I have a very hard time getting answers out of my host's support. The last time I had a problem I ended up going to the sales department to have them put pressure on the support team to resolve my problem so I didn't want to post a question unless all options had failed. So I will post the question you suggested. I have done both of your suggestion... the .htaccess directive and the php.ini file and I thank you very much for those suggestions.
I will get back to you on the results of your question.
Thanks for your patience and please don't give up on me.
Bob
=-=
you may be able to save yourself the trouble of contacting the host if you can answer the last question I asked
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Yes but on my host it's
Yes but on my host it's called "www" but it is the public root
=-=
ok that being the case you have no place to add an extra .htaccess and avoid adding directives into drupals
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
ok, I think it time to ask
ok, I think it time to ask nicely for the towel!
=-=
nah!, i wasn't being sarcastic, I was trying to find away around your problem. Many choose to add drupal to a subdirectory which allows them to do other things.
you don't have that option since drupal in installed directly in the public root aka www/
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Ok, I got information back
Ok, I got information back from my host's support but I'm not sure I understand it. Could you decipher it for me.
Question:
Can I use a custom ph.ini file in my account to override default settings of php?.ini on the server\?
Updated: January 1, 2008, 11:13 pm by Support]
Answer:
Hi,
Yes, you can if you are running php-cgi. To do this-
Create the directory :
etc
in your root directory.
Upload your custom php.ini to this directory and it will be used instead of the default php.ini file.
You only need to specify the php.ini settings which you want to override. Otherwise the default settings will be used.
If you use a custom php.ini, you need to enter this value in order for database access to work correctly:
mysql.default_socket = /var/lib/mysql/mysql.sock
This is because the standard MySQL build from mysql.com and the default php.ini look for the MySQL socket in different locations. Using the setting above will correct this issue. You only need to use this setting if you use a custom php.ini file.
Best Regards,
Carl
I take this to mean if I am using php-cig [and I don't know if I am]. Then I would create a directory called "etc" in the root directory where my durpla is located and in that directory I would place a php.ini file with these two statements
memory_limit = 24m
mysql.default_socket = /var/lib/mysql/mysql.sock
Am I close? and how do I find out if I am using php-cgi? I'm not operating drupal form my cgi-bin if that is what is meant by that statement?
Thanking you in advance for any help on this
Bob
=-=
to see if php is running is php-cgi, run a phpinfo() . Why they haven't told you whether you are or not seems odd to me.
your cgi-bin has nothin to do with it.
Drupal status logs may also provide this information at the bottom.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Thank you for getting back
Thank you for getting back to me VMisunderstood. I just don't do well with this kind of stuff and I really appreciate your help.
Here is what I see when I run the phpinfo function that I think might mean that I am running php-cgi
GATEWAY_INTERFACE CGI/1.1
_SERVER["ORIG_SCRIPT_NAME"] /cgi-sys/php5
_SERVER["ORIG_SCRIPT_FILENAME"] /usr/local/cgisys/php5
If this is the case that I am running php-cgi then could you explain better the instructions from my host support please.
=-=
I suggest asking your host to complete this task for you. My directions aren't any different then the ones they've supplied. I've never had to complete the task in the way they've set their servers up to do this.
create a new directory above your public root
add to it a php.ini file with the lines they've given you.
run a phpinfo() did the memory limit change ?
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Case closed... It's now
Case closed... It's now working. My memory limits were 8m and now they are 24m. Thank you for hanging in there and giving me all the great advice. I was trying to change the memory limits from within the durpal directory. Your last post straighten me out. Thanks
=-=
you're welcome.
Glad you got it sorted out!
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )