Google+ Sandeepa On Life: Joomla: 500 - An error has occurred

Pages

Search this blog

Thursday, September 29, 2011

Joomla: 500 - An error has occurred

I got a strange error when I tried to login to the Administration section of my Joomla(1.7) installation. After I entered my login name and password and hit the singin button, I got the following error!

"500 - An error has occurred - Return to Control Panel"
500 - An error has occurred - Joomla
However, I could access the site(front end) without any problem. That didn't help me because I can't do any configuration changes without entering the administrator section(back end).

A Google search for the error message returned thousands of results. It looked like many people had this problem. 

The Solution:
Though it took couple of hours of going through results and tweaking the folder/permission settings on my hosting server, I could solve this problem.

This is what I did to solve the mysterious "500 - An error has occurred" problem:

I logged into my hosting server. Then in my Joomla installation directory, I changed the permission of following folders to 775.
  • administrator/cache
  • cache
  • logs
  • tmp
And it started working! I could login to the Joomla Admin Page of my site! I managed to solve the problem without understanding the problem!

If you have run into same/similar problem, and/or you know a better solution feel free to share your story in comments.

25 comments:

  1. hi,

    i have the same problem...when u says "changed the permission of following folders to 775"...how u make it?...by ssh? what is the path? or by ftp?

    Thaks!

    ReplyDelete
  2. @babelattke

    Hello,

    I used SSH and changed it. The path is relative to your Joomla installation folder.

    Hope this helps.

    ReplyDelete
  3. @st3ph

    You are welcome.

    Feel free to share the post and subscribe for more updates.

    ReplyDelete
  4. I'm facing the same issue as you did. Unfortunately your workaround did not work for me. The strange thing for me is: on my local server it's working all gravy but after I uploaded my files on my webspace and changed the configuration.php file I get these error messages...

    ReplyDelete
  5. @DUme,
    Hello,

    Let's see what's happening with your set up. Which version of Joomla are you using?

    Did you verify that the folder permissions have indeed changed?

    When do you get the error message?

    ReplyDelete
  6. I can't log in to joomla 1.7 adminitrator .I got an error(500 - An error has occurred.
    Return to Control Panel)

    ReplyDelete
  7. I have that error when I press the login button from the login form. No one could explain me why on my testing server works fine and not live on a linux server

    ReplyDelete
  8. @Ori & @Web design Ploiesti:

    Did you try the fixes I have mentioned in this blog?

    Do so and comment here with your results.

    ReplyDelete
  9. Nice explanation.How error will occurred it is really great information.Each content shows how it make.
    Joomla developer

    ReplyDelete
  10. @Sathya & Lauraine,

    Thanks for the comments and links :)

    ReplyDelete
  11. i changed the permission to 775, but problem not solved. it's showing
    -------------------------------------------------------------
    500 - An error has occurred.
    Layout default not found

    Return to Control Panel
    --------------------------------------------------------------
    let me add one more thing, i have deleated the default file that was in the public file

    ReplyDelete
  12. Thanks for the post, my error occured because of my log and tmp folder paths in configuration.php

    ReplyDelete
  13. hi captainsai
    I got the same problem, i think that my error occured because of configuration.php, how did you fix it?

    ReplyDelete
  14. Boa tarde,

    The Solution by Sandeepa Nadahall, 05-03-2012 at 4:01pm:

    Though it took couple of hours of going through results and tweaking the folder/permission settings on my hosting server, I could solve this problem.

    This is what I did to solve the mysterious "500 - An error has occurred" problem:

    I logged into my hosting server. Then in my Joomla installation directory, I changed the permission of following folders to 775.

    administrator/cache
    cache
    logs
    tmp

    And it started working! I could login to the Joomla Admin Page of my site! I managed to solve the problem without understanding the problem!

    --

    I usei um programa chamado PuTTY.exe para mudar as permissões das pastas citadas acima, logado com root do servidor.

    O funcionamento não é de imediato. Após uma(1) hora, eu consegui logar como administrador. Não entendi a modificação mas funcionou.

    Obrigado.

    Gilson Brazil.
    bye.

    ReplyDelete
  15. This comment has been removed by the author.

    ReplyDelete
  16. I've the same problem but, is when i try to enter in Menu Manager, how do i can make for the solution? i hope a help please...

    ReplyDelete
    Replies
    1. Where do you get the error? At what step of the process? Please give details.

      Delete
  17. i changed the permission to 775, but problem not solved. it's showing
    -------------------------------------------------------------
    500 - An error has occurred.
    Return to Control Panel

    ReplyDelete
    Replies
    1. Hello,
      Which version of Joomla are you using?

      Delete
    2. Because, there is probably no relation to permissions. Search for coockies in your browser and remove all which has association to your website. This issue can occure when you logout as admin in unusual way.

      Delete
    3. Okay. May be you are right. Let me try to find more about this and update. Thanks.

      Delete
  18. am having the same problm am using joomla 2.5. when i changed the permission to 775 and saved it appears as 0775 and the problem still persist. pls help

    ReplyDelete
  19. I have found that if you use any account other than default "admin" during installation, It gives this error. Nasty :P

    ReplyDelete
    Replies
    1. That's good info. But I've seen this problem even when installed with admin account.
      This one is a crazy error.

      Delete
  20. how to resolved this error "500 - An error has occurred.
    Return to Control Panel"

    ReplyDelete