Save $50 on Dreamhost Hosting - Any Plan

As a preferred visitor, you can get $50 off of any Dreamhost hosting plan by using coupon code CWD50 when you check out, for a limited time. Dreamhost is a reliable hosting provider with solid customer service and a proven track record.

Attorney Approved Web Design Contract Template

Due to the popularity of our web development contract template article, we're offering the contract, estimate, and invoice templates for $199.50 $49.50 if you order by March 15. Click here to learn more.



Aug 28 2006

URL Is Not Valid and Cannot Be Loaded


Filed under:
Tools:

URL Is Not Valid and Cannot Be Loaded Error

I recently had this error pop up as I tried to log into my Drupal site from the main page (the error did not occur when I logged in from /user).

The Problem

This error pops up when Drupal cannot resolve the path for the front page in the login form. The problem in my case was that I had the front page link as "/" (under settings -> general -> default front page). The problem was the backslash, which you are advised not do use, but I used it because I didn't like having the "node/3" attached to the URL when "forward this page" was selected. In my case the new link would show as //, instead of /node/3, and since I have .htaccess setup to remove trailing slashes (not generally recommended, but there's a specific reason I do this that I'll explain if you're interested - just comment below) it would resolve to /, which is the appropriate URI formulation.

The Solution

I had to remove the trailing slash and now the login works fine. The form code now shows:

instead of:

Hope this helps. If this did not solve your problem please comment below.

Average: 5 (1 vote)
Select your preferred way to display the comments and click "Save settings" to activate your changes.

the url is not valid...

Hi, so where do you make the change, and how do you get to it to change it to < form action="/node/1?destination=" >?
Thanks!

Remove backslashes

Make sure you don't have any backslashes set for the location of your front page. For example, if you browse to Drupal's Site Configuration -> Site Information, the front page should be set to "node" (or a specific path) not "/node" or "/".

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

CAPTCHA
This question is used to make sure you are a human visitor and to prevent spam submissions.