By genemcc on
After several days of investigation and lots of different attempts to fix this I am at the end of my abilities here. I've been trying to upgrade a 4.7.5 site to 5.0. I've followed all the steps but no matter what I've done I keep getting this error:
Fatal error: Call to undefined function module_exist() in /htdocs/mysite/includes/common.inc(1342) : eval()'d code on line 2
Where am I going wrong?
Thanks.
Comments
Could be that one of your
Could be that one of your modules are not drupal 5 compatible. Try disabling one by one, till the error goes away.
Just trying to help. I have been thru so many errores too, its been fun, annoying, stressful...at the end, things pay off.
Tecito.com
Comunidad Latina en Canada, regístrate ya! Join the growing latin community in Canada.
Thanks hectr. I don't think
Thanks hectr. I don't think that's it because I've turned off all but core before moving to 5.0. I'll keep looking
After several days of
After several days of investigation and lots of different attempts to fix this I am at the end of my abilities here. I've been trying to upgrade a 4.7.5 site to 5.0. I've followed all the steps but no matter what I've done I keep getting this error:
Fatal error: Call to undefined function module_exist() in /htdocs/mysite/includes/common.inc(1342) : eval()'d code on line 2
. . . . . . . .
Where am I going wrong?
Thread
Please read this entire thread.
--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.
Update php in node or block
You need to update a php snippet in either:
- a node
- a custom block
- a block visibility setting
Modify module_exist to read module_exists.
--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.
Thanks Heine. Where do I
Thanks Heine. Where do I look for the PHP snippets? Are they part of the database? I've looked in the directories but everything there is from the 5.0 release.
You can find php posts and
You can find php posts, blocks and block visibility settings by executing the following queries (SQL tab in phpmyadmin).
PHP posts:
Custom PHP blocks:
Block visibility settings:
--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.
Wow! Many many thanks!
Wow! Many many thanks! I'll give that a try and report back. There's always more to learn!!! LOL
Heine, you're a genius!
Heine, you're a genius! Looks like we have a winner. It appears that the Google Adsense module used module_exist instead of module_exists. As soon as I can get access to my test server I'll see if that solves the issue.
This raises a new question, though. If the Adsense module was deactivated before making the conversion why is this even an issue? I would think that deactivated modules would not be an issue, hence the warning to deactivate non-core modules in the upgrade instructions.
Anyway, thanks again!
Yes, thanks Heine!
I found a couple old Google Adsense blocks I had manually created before the adsense module did it for you...
I agree... I wonder why a deactivated block still causes problems... these were "off" so I figured they didn't relate and hadn't even looked in the code.
Thanks for the SQL snippets!!!
Bruce
Issue solved
Just checking in to let you know that the Google Adsense issue was, indeed, the problem. Thanks again for your help!
Above queries
Tried and solved module_exist issue, but still not working... same error
Fatal error: Call to undefined function: module_exist() in ...... /includes/common.inc(1342) : eval()'d code on line 2
Nevertheless, I tried Heine's queries in this way filtering only module_exist
Also should use the PHPadmin search
I had a similar problem installing 5.1. All non-core modules were turned off. I had to search the database in the search tabd of myphpadmin. The OG module (organic groups) had 3 instances of the old spelling which had to be edited. Perhaps if I had installed the new OG before encountering this error it would have also resolved this but I did not try that.
Thanks!
I was having problems with our custom code calling modules I'd turned off... I'd never figured out how to fix it in the db. Thanks so much for your post!
Thanks Heine
It doesn't matter what the problem is... there is always someone on drupal.org who knows the solution.
Many thanks!
ian
http://fantasyformula1.uni.cc