PHP Fatal error: Trait 'Setono\SyliusMailchimpPlugin\Model\ChannelTrait' not found in /var/www/sylius/src/Entity/Channel/Channel.php on line 19
In Channel.php line 19:
Attempted to load trait "ChannelTrait" from namespace "Setono\SyliusMailchimpPlugin\Model".
Did you forget a "use" statement for another namespace?
This is my current Channel.php
<?php
// src/Entity/Channel/Channel.php
declare(strict_types=1);
namespace App\Entity\Channel;
use Sylius\Component\Core\Model\Channel as BaseChannel;
use Setono\SyliusMailchimpPlugin\Model\ChannelInterface as SetonoSyliusMailchimpPluginChannelInterface;
use Setono\SyliusMailchimpPlugin\Model\ChannelTrait as SetonoSyliusMailchimpPluginChannelTrait;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="sylius_channel")
*/
class Channel extends BaseChannel implements SetonoSyliusMailchimpPluginChannelInterface
{
use SetonoSyliusMailchimpPluginChannelTrait;
}
**UPDATE
Model files were missing, uploading them manually fixed this.
While installation getting this error
This is my current Channel.php
**UPDATE Model files were missing, uploading them manually fixed this.