Hi, i just installed drupal and i already broke it :D

I activated PHP Filter module and i inserted some php code in article. Now when i access the site it report error 500.

How can i edit my article to solve the error or how i make a rollback or something ? i can't go to admin because of this error.

PS : my article had some connection to another database on the same server as drupal, maybe that's why it give me the error.

Comments

Go into the database, and

Go into the database, and edit the body in which you added the PHP. Edit the body and delete all the PHP. Do not delete the whole row from the database though, this will likely cause you more troubles.

And be careful with that PHP filter in the future!

Jaypan We build websites

database ?

which database ? in mysql ?? :) i was in phpmyadmin and search for the article but didnt found it. I think i don't know at what database do you refer ?

LE : oh i solved it, i found a folder named PHP in /modules and i delete it :D , now it works, don't if that is the php module or that is my article name...

That's the whole php filter

That's the whole php filter module. You shouldn't have deleted that. This will likely cause errors in the future. To fix this do the following:

1) Delete the node that you originally created that had the problem
2) Download a fresh copy of Drupal
3) Copy the php folder to the location you deleted it from

Jaypan We build websites

php filter

Yes, i thought it was the whole module, i made a backup before, i know it's not so nice to delete that but i didnt knew other way to solve the error just drupal fresh reinstall...How i can delete the node ? i dont know what do you mean by that, the error it's an article with some buggy php text and i can't access the admin panel because of that. Do you mean at a file from the drupal server ?

Go to the 'Content' page that

Go to the 'Content' page that lists all your content. Delete the node there. It will be the top node in the list.

Jaypan We build websites

nobody click here