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

bluefrog's avatar

Class 'IronMQ' not found

Hi,

I am moving a project over from 4.2 to 5.0 and I get this error for ironMQ:

FatalErrorException in IronConnector.php line 49: Class 'IronMQ' not found in IronConnector.php line 49 at HandleExceptions->fatalExceptionFromError(array('type' => '1', 'message' => 'Class 'IronMQ' not found', 'file' => '/Users/ollie_new/Sites/laravel/vendor/laravel/framework/src/Illuminate/Queue/Connectors/IronConnector.php', 'line' => '49')) in HandleExceptions.php line 116 at HandleExceptions->handleShutdown()

I have added "iron-io/iron_mq": "2.*", it to my composer.json in the require section, deleted composer.lock and run composer update followed by composer install. I still get the same error. Any ideas?

Thanks in advance.

0 likes
8 replies
bobbybouwmann's avatar
Level 88

I used this version:

"iron-io/iron_mq": "~3.0"

I had to delete the vendor directory and clear composer cache and do composer install to solve this issue, but I think if you update to 3.0 you're fine ;)

bluefrog's avatar

Thank you! That seems to have fixed the problem.

bobbybouwmann's avatar

Can you mark the answer as answered because other users can find this useful as well!

travoltron's avatar

I'm staying in L4.2 and seeing the same error on the same line. Is there something specific to 4.2 and "iron-io/iron_mq": "dev-master" I need to be aware of?

viglucci's avatar

Looks like the IronMQ package was updated to 1.4.8 for those of us still one Laravel 4.

I had to use:

"iron-io/iron_mq": "1.*",

for some reason 1.4.* did not work.

mechastorm's avatar

I am also using Laravel 4.2 and I managed to fix it by specifying "iron-io/iron_mq": "1.5.*" in composer.json

Please or to participate in this conversation.