Ok, so third time I am posting today, I am sorry. My site was working until I installed and enabled the Address field for CCK and the location module. Now I am getting 500 errors on the site when I try to administer content and it will continue until I go back to the main page. I can administer everything else it seems without the error. I searched and did not see anything like this. I suspect it might be the permissions somewhere but I don't know where to start. Please can someone assist me?

Comments

alpinejag’s picture

Are any of your .php files or directories chmod 777? A lot of hosting companies won't scripts run if they are, for safety reasons. Is there anything showing up in the server log?

Mink’s picture

That isn't helping unfortunately. If it helps to find where the problem is, the address that starts the 500 error is below. I would love to fix this rather than exclude the address module. Thanks again.

http://curseoftime.com/GRS/drupal/?q=admin/content/types/assignment/fields

Mink’s picture

That isn't helping unfortunately. If it helps to find where the problem is, the address that starts the 500 error is below. I would love to fix this rather than exclude the address module. Thanks again.

http://curseoftime.com/GRS/drupal/?q=admin/content/types/assignment/fields

Mink’s picture

That isn't helping unfortunately. If it helps to find where the problem is, the address that starts the 500 error is below. I would love to fix this rather than exclude the address module. Thanks again.

http://curseoftime.com/GRS/drupal/?q=admin/content/types/assignment/fields

Mink’s picture

That isn't helping unfortunately. If it helps to find where the problem is, the address that starts the 500 error is below. I would love to fix this rather than exclude the address module. Thanks again.

http://curseoftime.com/GRS/drupal/?q=admin/content/types/assignment/fields

coltrane’s picture

It could be your host's php_memory_limit. Have you tried disabling those modules to see if the 500 error goes away? You may have to navigate directly to admin/build/modules (Drupal 5) rather than click through each page. The server error 500 issue has been discussed here a lot.

If the error goes away after disabling those modules then it's likely that your server has their php memory_limit set low. You can find out the memory limit at admin/logs/status/php. I think below 24megs is not enough, but it depends on the number of modules you have.

Mink’s picture

I did search through before I posted but did not find any solutions yet. I tried changing the memory setting using my .httaccess file but that gave me a 500 error for the whole site.

If this helps illuminate the problem any, I just found an error in the log (thanks for pointint out there is one) with a link to the content type I was trying to edit. Clicking on that I can access managing the fields but when I try to add a field for an address using the address module it gives me the 500 error again.

I am not sure that Memory limit is the problem. Currently according to the php status page my memory limit is 40M.

coltrane’s picture

Hmmn, yeah 40M should be enough. Do you have access your web server logs? If you're on shared hosting you likely don't, but its worth it to see if the error logs report what's causing the 500 error.

Mink’s picture

I don't have access to the logs but I fired off a support request to see if they can tell me what the logs say. Thanks for the advice.

Mink’s picture

Found out what might be the problem.

The memory limit under shared hosting is actually 12mb. While the
setting within PHP is usually either 8mb or 40mb, the 12mb is a hard CGI
limit and cannot be surpassed regardless of the PHP limit. 500 errors
like you are receiving are almost always due to hitting one of our CGI
limits. For your reference, we impose the following limits:

* A process may only use a CPU at 100% for 6 seconds
* A process may use a maximum of 12 mb of RAM
* A maximum of 12 process to be run at any single time

If any of these limits are surpassed, a 500 error will be displayed. It
would be advisable at this time to optimize your scripts so that they
use less resources from the server. If this usage were to increase in
the future, it may be a sign that you need to consider upgrading to a
dedicated server or VPS. These products provide a significantly larger
amount of resources as compared to what is given with shared hosting and
would likely eliminate any load problems like this.

From the 1and1 webhosting second level support. Anything that can be recommended? I have only the needed modules active, and it seems when it hits that CCK Address Filed module that it gets the error.

coltrane’s picture

I don't have a great recommendation as I'm stuck with this same problem on globat.com hosting (also 12mb). Other than moving to another host with a higher limit I only see the option of hacking contrib modules, basically hard coding what I need them to do and removing any excess. Obviously that's not the best option, so I'm avoiding it until I have to or another solution comes along.

Good luck! Let us know if you get anywhere with this.

iamjon’s picture

the tech support guy at globat told me to change it over here
http://members.globat.com/member/cgiManagement/PHPplus.bml

abhilasha bhardwaj’s picture

hi
whenever i access admin section the browser looks for q=admin . and there comes this error.
i can access by typing say.. q=admin/build/... etc.
also i can access admin section when i create my site offline.
what should i do??
HELP!!!!!!!!!