server 500 error - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

server 500 error

hunter86hunter86 Posts: 1Member
Hello,
I have problem that I will try to explain I am a web designer not a developer I will do my best, I have run into some issues with this script I have a template of a system to sell hosting alongside my web design, I have moved some of the code from the index.rhtml to the header.rhtml and also to a new separate page so the login is on its own page. I now receive server 500 error when trying to log in .Once the attempt to log in has been made you recieve internal server error 500 but if you direct back to home url you have actually been logged in. It also happens when creating a new account although the log in and new sign up are successfulyou are directed to a page called front-page.rhtml this is where the error is coming from. The login code is below
[code]<% if !logged_in? %>

Log In

Email Address:

Password:

(Click here if you have forgotten your password)

<% else %>

Hello <%= contact.name %>. (log out)

<% end %>
[/code]
the only code on the front-page is [code]<% else %>[/code]
I guess there is a script file somewhere on the server which has the directives of where the code should be executed from? which is causing this error to occur as its coming from the wrong place I hope somebody could advise me or point me in the right direction. I did have similar problem before on and different piece of code and placing [code]<%= url_prefix %>[/code] on the get action did the job not this time though
many thanks
dan

Sign In or Register to comment.