HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Internal Server error displaying in poll

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#67630 (In Topic #14414)
Avatar

Community saint

Hi everyone,

The last few days, I have been receiving this error message instead of the poll displaying.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server admini
Usually, it goes away and the poll displays after a few refreshes of the browser.

I am using version 5.0.1.

At first, I thought it was a file/folder chmod problem because my host had activated PHP mod_security. That had changed all the chmod setting back to 755 for folders and 644 for files. I convinced them to remove mod_security from the site as they did not list it as part of the configuration when I purchased hosting. However, I do not think it is a chmod problem because when the broswers are refreshed a few times the poll again appears.

Any ideas on how to fix this would be greatly appreciated.

Thanks,
Doc
Back to the top
 
Posted
Rating:
#67631
Avatar

Take a look in your Apache error log (your control panel should provide an option to see it). You're likely to find enlightening stuff in it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#67634
Avatar

Community saint

Hi Chris.

Since I got the host to remove the mod_security, the only message in the log files is file not found, and that is several days old.
Back to the top
 
Posted
Rating:
#67635
Avatar

Community saint

The is the last message, that just posted to the error log.
[Tue Mar 22 11:01:43 2011] [error] [client 76.25.162.203] File does not exist: /home/usrname/public_html/s7.addthis.com, referer: A Community by and for the members - The TrustServe Community
Back to the top
 
Posted
Rating:
#67636
Avatar

How about the ocPortal error log?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#67637
Avatar

Community saint

 O_o sorry, I forgot.  :$
[21-Mar-2011 12:13:19] PHP Fatal error:  Out of memory (allocated 524288) (tried to allocate 70148 bytes) in /home/usrname/public_html/sources/global.php on line 188
[22-Mar-2011 15:43:43] PHP Fatal error:  Out of memory (allocated 6291456) (tried to allocate 24 bytes) in /home/usrname/public_html/sources/global.php on line 69
If I remember, I had this memory problem a while back and fixed it by increasing the php.ini memory_limit. That was easy when I had my own server, now I am on shared hosting.

Do you think a line in the .htaccess file like "

Code

"php_value memory_limit 100M" would work?
Back to the top
 
Posted
Rating:
#67638
Avatar

It may well do, depending on the host.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#67639
Avatar

Community saint

My host blocked it. The whole site returned a 500 error.  :(

I do think that is what is causing the error, though. I will talk to my host, and see if they will do anything to fix the problem.

The only thing that sticks in the back of my brain is that streaming video/audio encounters no problems.
Back to the top
 
Posted
Rating:
#67640
Avatar

Community saint

I have forgotten. Is there a config.php file where I could define the limit in this way?

Code

define('MEMORY_LIMIT', '32M');
Back to the top
 
Posted
Rating:
#67642
Avatar

If it's blocked in htaccess, it's almost certainly blocked in PHP (in fact I think ocPortal 5 turns the limit off whenever it can).
v6 has significant optimisations if you want to upgrade, although I understand it's really inconvenient to have it forced on you by something like this.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#67643
Avatar

Community saint

I was hoping to wait a while to upgrade. I like to let lots of other people go first.  :$  :lol:  :lol:
Back to the top
 
Posted
Rating:
#67644
Avatar

Community saint

Thanks, Chris. As usual, your help is greatly appreciated.  :thumbs:
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: