WildPHP / irc-bot

A simple and modular PHP IRC bot
MIT License
84 stars 24 forks source link

There is no module with key Configuration registered #64

Closed harkor closed 7 years ago

harkor commented 8 years ago

Hello,

I'm trying to use the code but after create config.neon, added in the main.modules the 4 first modules is README and execute "composer require wildphp/..." I have this error when I execute wildphp.php

PHP Fatal error: Uncaught exception 'RuntimeException' with message 'There is no module with key Configuration registered.' in /XXX/lib/WildPHP/Modules/ModulePool.php:127

NanoSector commented 8 years ago

Hey,

You probably forgot to install the Configuration module. (http://github.com/WildPHP/module-configuration).

harkor commented 8 years ago

Ok, that's correct, I forgot the Configuration in main.modules.

But I have another error => PHP Fatal error: Uncaught exception 'RuntimeException' with message 'There is no module with key Logger registered.'

NanoSector commented 8 years ago

And that's because the Logger module is missing ;) Install it: http://github.com/WildPHP/module-logger

You need to add all modules in main.modules, unfortunately there is no way around this for now.

harkor commented 8 years ago

I'm a little lost... On the README of Wild-IRC-Bot, we only speak of :

How can I now if I installed all modules ?

NanoSector commented 7 years ago

Configuration is no longer a module in 3.0 (and it no longer requires you to install modules to work), closing this.