Hi,

I downloaded Drupal folder and the data base from a remote site, on my PC(localhost) here i can see the front page, the header, footer, menu's side bars etc.
But when i click on login link or any other pages, on localhost, i get an error"Object not found".
And i can login as an admin, as well as view other pages from the primary menu ,when working on the same remote site.

I checked out whether the correct database is imported, what can possibly be the reason!! any suggestions?

I am new to Drupal, and stuck with this problem since a month,.Can someone please help me through.

Thankyou,

Comments

Iumentum’s picture

Do you load mod_rewrite.so in the apache config ?
This is needed for clean url and it sounds like you ran the webpage with clean url on the server and your localhost dosnt support it.
So either you need to get the RewriteEngine to work or change the setting in the database so it wont use clean urls.

Guddie’s picture

Did u mean uncommenting the line:
LoadModule rewrite_module modules/mod_rewrite.so in http.conf, it is already uncommented on my PC.

If not then how do we do this?... Can u plz elaborate

Thankyou

Iumentum’s picture

Yes thats what i ment :/
Can you check if you got the .htaccess file in the root of the drupal folder ?
There is some FTP clients there dosnt show these files as default.

Guddie’s picture

yes, i do have it in my drupal/files folder with the following data in it

Options None

RewriteEngine off

is there something we have to change here?

cferreira’s picture

Hi
I have the same problem.
When I move localhost to remote server or the server to my computer.
I disable all modules and drupal work, but have a strange behavior. When I load all my modules drupal give me a blank page.
The problems are related to a local server in MAMP.

Thanks for any help.

Guddie’s picture

My problem is viceversa,.. it works fine on remote site,
but not on localhost.

Do i have to do something for fushing cache,..
can i do it from database table? any idea.

Iumentum’s picture

You should have one in the root of the drupal installation as well.

Guddie’s picture

can u plz elaborate ur point

Iumentum’s picture

Hey.
There need to be a .htaccess file in the root folder of the drupal installation as well as in the files folder.
And if this is missing and you have clean url enabled you'll get a 404 error from your web server.
The htaccess in the root set RewriteEngine on and does the clean url will work.
So if you dont have this htaccess file download drupal same version as you got and take the htaccess file and put it in drupal root folder.

Guddie’s picture

GR8!! thankyou very much for the reply,..
This worked ,..
Now i can view many nodes/pages, from the primary menu....
but Admin login still doesn't work, and some sub menus too ,.... they show the same error: "Object not Found, Error 404."

what possibly can be the reason now when i have .htaccess file in the drupal folder too.

Iumentum’s picture

can you try to go to /index.php?q=admin and see if this works?

Guddie’s picture

On localhost, i can login as an admin, but cannot go to the administer page, error being Access Denied.

gjd’s picture

I had the same problem.

open Terminal application and type:

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

copy the .htaccess file from your FTP, on the public_html folder of your website, paste it on your Applications>MAMP>htdocs>(folderName) folder.

Now you should be able to see the .htaccess file along with the other system files in your finder window... This solved the problem for me.

J