Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

skyquek's avatar

(The specified module could not be found.) in Unknown on line 0

Hi all, I want to composer install in the code but I get the error like below. I already enable the extension in php.ini but it still did not work Does anyone know who to solve this error?

Problem 1 - Root composer.json requires php-mime-mail-parser/php-mime-mail-parser ^7.0 -> satisfiable by php-mime-mail-parser/php-mime-mail-parser[7.0.0]. - php-mime-mail-parser/php-mime-mail-parser 7.0.0 requires ext-mailparse * -> it is missing from your system. Install or enable PHP's mailparse extension.

To enable extensions, verify that they are enabled in your .ini files: - D:\wamp64\bin\php\php7.3.21\php.ini You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

0 likes
7 replies
SilenceBringer's avatar

@yaojingquek@gmail.com the problem is obvious - you didn't enable extension.

run it terminal

php -r "var_dump(extension_loaded('mailparse'));"
skyquek's avatar

@SilenceBringer I have enabled the extension with write down

extension=mailparse at php.ini.

After I run the command php -r "var_dump(extension_loaded('mailparse'));"

I get

bool(false)

skyquek's avatar

@SilenceBringer Thank you for your reply, I have read the docs and google before I ask the question. I have enabled the extension like this in php.ini

extension=mailparse

Sinnbeck's avatar

Use php -m to check which modules are currently loaded. Perhaps you just need to reload php (perhaps just restart the computer)

skyquek's avatar

@Sinnbeck Thank you for your reply. After I tun php -m, I found that the mailparse extension did not load. I already enable the extension and also reload PHP and restart the computer. But it still getting the error.

I have enabled the extension in php.ini like this:

extension=mailparse

Please or to participate in this conversation.