Can anyone assist me in this error I am getting for my clients site?

-Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4104 bytes) in /home/(websitename)/public_html/includes/bootstrap.inc on line 1546
-Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 196608 bytes) in /home/websitename/public_html/sites/all/modules/commerce/modules/product/includes/views/commerce_product_ui.views_default.inc on line 345

My research has told me I need to increase my PHP limit.

I have tried several based on my research such as
- altering the .htaccess file
-creating my php5.ini file with the suggested code

I'm not sure if the research articles I find are just outdated or go daddy just doesn't support this or if I am solving the wrong problem

Any help is appreciated.

Thanks
* I replaced my website name here with (websitename)

Comments

VM’s picture

are you sure godaddy's RUP allows the account to utilize more than 64MB of memory?

loftonkion’s picture

I'm actually not sure. I'm thinking that maybe the problem; I have been hearing bad things about drupal and go daddy so this may be one of them. (This is my first client site on go daddy). Any other solutions?

Jaypan’s picture

You can check your actual memory limit at /admin/reports/status/php
This is how you can test whether the changes you have made are properly working or not.

loftonkion’s picture

Thanks,

I checked that on one of my previous multiple attempts. It still said that the max was 64 I believe after I did the php.ini , .htaccess, etc. Right now I can't even get to the site to check because I get the error. I will have to restore from a site backup but this issue keeps happening and want to know how to resolve.

Jaypan’s picture

You are paying GoDaddy money - why not ask them? Always better to go to the source than to ask 3rd parties. Open a support ticket, and ask them how to change the memory limit, and what the maximum limit you can set is.

loftonkion’s picture

True,

It is a client site though so I guess I was trying to avoid the extra hoops but I will look into that. I just wanted to be absolutely sure that a increase in PHP limit is the problem of this error?

Thank you!

Jaypan’s picture

Allowed memory size of 67108864 bytes exhausted

"Allowed memory size ...exhausted".

It is.

loftonkion’s picture

Thank you I am investigating go daddy now.

loftonkion’s picture

For any other drupal newbies building a site with go daddy hosting, these links below helped me solve the problem:

First:
http://www.youtube.com/watch?v=JeIvfNkIyiU

Second:
http://codesteps.com/2014/01/12/how-to-resolve-fatal-error-class-pdo-not...

Thanks to everyone here who commented as well.

VM’s picture

how did the second link play a part considering the error is different than the one you reported?

loftonkion’s picture

Well that new error code came up after I fixed the first problem. The code needed to be added into the new php.ini file that I created in the first step. So I figured I would put it here incase the next person runs into the same problem.

Thanks for asking though, I probably should have cleared that up so others aren't confused.

CProfessionals’s picture

I had a client that had a Cpanel account with Godaddy and after hours of trying the "standard" php5.ini and an hour on the phone, I got this REALLY knowledgeable guy that gave me the answer.

He reverenced this article
https://support.godaddy.com/help/article/8913/what-filename-does-my-php-initialization-file-need-to-use?locale=en&ci=46061&countrysite=ca

in the footer it says "cPanel also supports .user.ini files."
what it should say is that it "ONLY supports .user.ini"

Long story short. Do not use php.ini or php5.ini. Use .user.ini

Hope this helps