PHP Warning: PHP Startup: First Module: Unable to initialize module

I am getting a PHP warning that I am not sure how to resolve:

PHP Warning:  PHP Startup: First Module: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=1
PHP    compiled with module API=20060613, debug=0, thread-safety=1
These options need to match

From what I have read this is because the module is a different version that of my PHP installation right? How do I resolve the issue without having to reinstall everything?
mit1290Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
jentulmanCommented:
You are corect in stating that the module that is causing the error is incompatible with the version of PHP you are using.

These are the bits that show it

Module compiled with module API=20050922
PHP    compiled with module API=20060613

As you can see PHP is using a version of the module API several months older than the one the module was compiled against. I.e. the module doesn;t know how to talk correctly with your version of PHP, it was built to talk to an earlier version.

The 2 ways to fix this are
1. find a more recent version of the offending module
2. Downgrade PHP

Do you know which module is causing the problem? In the errorline

PHP Warning:  PHP Startup: First Module: Unable to initialize module

"First Module" is what the module is telling PHP it is called (looks like this module was built on the example code provided by the PHP guys, which calls itself "first module" and should have been renamed by the author).

I take it you may have recently installed a new module and therefore know which one it is.

 If not then I would suggest looking in your PHP dir for a file called "php.ini-dist", this is an example php.ini file that comes with php and contains a default installation configuration.
Try commenting out any modules that are loaded in your php.ini that are not loaded in the php.ini-dist. If php will start up after that, you can start uncommenting the extra modules one by one until you find the culprit.
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
jentulmanCommented:
whoops, the line

"As you can see PHP is using a version of the module API several months older than the one the module was compiled against"

should really read (for clarity)

"As you can see the module is using a version of the module API several months older than the one the PHP was compiled against"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.