Closed (fixed)
Project:
Drupal core
Version:
6.9
Component:
other
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2008 at 03:48 UTC
Updated:
9 Feb 2009 at 15:35 UTC
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
Comment #1
liquidcms commentedlol.. 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.
Comment #2
oscarrg78 commentedOK
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
Comment #3
oscarrg78 commentedSorry, maybe that will be a database system component error.
Comment #4
dave reidOne 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.
Comment #5
asimmonds commentedThe 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.
Comment #6
oscarrg78 commentedThanks 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
Comment #7
oscarrg78 commentedOK Buddies,
I ended up doing a backup restoration.
I will learn php coding at some point.
Cheers,
Oscar
Comment #8
ainigma32 commentedIssue resolved so I'm setting this to fixed.
Feel free to reopen if you think that us wrong.
- Arie
Comment #10
dgnova3 commentedI 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.