Community

Fatal error in drupal after removing a module. No access to the website.

Hi guys, I suddenly recieved this fatal error in my drupal website. i have tryed to have a look at the file it indicates but it seems to be ok.
I have a recent backup of my website so i guess i could just upload that back to my server but is there any way to recover the two documents i posted on the website recently?

This is the error : Fatal error: Call to undefined function profile_user_categories() in /membri/ital/all/modules/ctools/plugins/content_types/user_context/profile_fields.inc on line 3

Thank you

Comments

It looks like you deleted the

It looks like you deleted the "Profile" module.
It is a part of the Drupal core.
Just download the same Drupal release as you have on your site and recover the "Profile" module.

Thanks for your answer

I'm afraid that's not the problem. I have checked anche the profile module is there. I must have just deactivated it. Is there any way to activate a module from ftp? in text form?

Krishan Marco Madan

You can activate the module

You can activate the module only by the database.
Do you have any access to the database?
There is the table "system" in the database with a list of all existing modules.
You can see the current status of the module in the field "status" (0 - disabled, 1 - enabled), create a backup of the database and try to change this field.

Profile module activated

Looking at the profile module in the database it's value is 1 which means it's activated.
What else could be the problem?
Is there any way to copy my documents so i can go on creating a new website?

Krishan Marco Madan

nobody click here