CampaignChain / campaignchain

CampaignChain Community Edition
Other
119 stars 51 forks source link

Can't create any campaigns - error #397

Closed seanausti closed 7 years ago

seanausti commented 7 years ago

Hi,

I've just installed campaignchain on my server. I've successfully connected my twitter account and google analytics. However when I try to create a campaign I get an error on all three types of campaign.

Error: CampaignChain\Hook\TimespanBundle\EntityService\TimespanService cannot implement CampaignChain\CoreBundle\EntityService\HookServiceTriggerInterface - it is not an interface

**Stack Trace**
in vendor/campaignchain/hook-timespan/EntityService/TimespanService.php at line 27   -
use Doctrine\Common\Inflector\Inflector;
use Symfony\Component\DependencyInjection\ContainerInterface;
class TimespanService implements HookServiceTriggerInterface
{
    protected $em;
    protected $container;

What can I do to fix this?

Thanks, S.

seanausti commented 7 years ago

Nevermind, I have been working through several errors like this since I installed it. For anyone running into the same issues you can resolve them by looking at which bundle is causing the error. In this case it is hook-timespan. Then you just need to reinstall that bundle like so:

composer require campaignchain/hook-timespan dev-master