Hello,

Sorry for bothering, but this is something to learn for me. Our site is gone and I am getting this error:

Please check the code PHP Fatal error: Call to undefined function module_exist() in /home/ageapusa/public_html/includes/common.inc(1352) : eval()'d code on line 2

Could you give me an orientation about where to check the function, and how to solve the issue.

Thanks in advance,

Oscar

Comments

liquidcms’s picture

lol.. well not that it has anything to do with my module.. but if i were to guess; i would say you have a Drupal 4.7 version of a module on your Dr5.x site.

the function module_exist() is a Dr4.x function and was replaced in Dr5 with the function module_exists()

hope that helps.

oscarrg78’s picture

Project: PHP Error Report » Drupal core
Version: 5.x-1.0 » 5.7
Component: Code » php.module

OK

Thanks for the observation, all our modules are 5.x.

I removed the last modules that I installed, and still doesn't work.

Thanks again,

Oscar

oscarrg78’s picture

Component: php.module » database system

Sorry, maybe that will be a database system component error.

dave reid’s picture

Component: database system » other
Priority: Critical » Normal

One of your 5.x modules hasn't been updated to use module_exists (5.x function) instead of module_exist (used in 4.x). This is not a Drupal core problem.

asimmonds’s picture

The error is from a eval(), so it's likely that the module_exist() call is in a PHP block or page. Check all your blocks and content that use the PHP code input format.

oscarrg78’s picture

Thanks for the suggestions.

I removed all the modules that I added prior to getting the problem, but still I'm not able to see any content or block.

Any other suggestions?

Thanks again,

Oscar

oscarrg78’s picture

OK Buddies,

I ended up doing a backup restoration.

I will learn php coding at some point.

Cheers,

Oscar

ainigma32’s picture

Status: Active » Fixed

Issue resolved so I'm setting this to fixed.

Feel free to reopen if you think that us wrong.

- Arie

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

dgnova3’s picture

Version: 5.7 » 6.9

I also obtained this error on V6.9 when I swith my theme to Chameleon. The error was because the sql database still hade references to module_exist( which were created by an old OG block visibility installation. If you still struggle with this error, use PhpMyAdmin to locate the references to module_exist( and edit the entries.