Dannymh
Active member
Hi All,
I write a plugin that has grown somewhat and is now getting more complex for my site and a few other sites.
One of the parts of the plugin modify the API POST class to action the deletion of content. It also modifies a few other classes.
It was all working fine however now I am getting the following error
I am not modifying that class under the same namespace and there is no duplicate in the class extensions. I assume using the same
Under different namespaces should work fine but I cant see any other reason this would occur.
Here is a list of class extensions
are the
Silvertais\CrossForumChat\XF\API\Controller\Post and Silvertails\CrossForumChat\XF\Pub\Controller\Post possibly interfering with each other?
Really stuck on whats causing this conflict but can only assume those two are for some reason not seeing themselves under different namespaces
I write a plugin that has grown somewhat and is now getting more complex for my site and a few other sites.
One of the parts of the plugin modify the API POST class to action the deletion of content. It also modifies a few other classes.
It was all working fine however now I am getting the following error
Code:
[LIST]
[*]ErrorException: Fatal Error: Cannot declare class Silvertails\CrossForumChat\XF\Api\Controller\Post because the name is already in us
[*]src/addons/Silvertails/CrossForumChat/XF/Api/Controller/Post.php:11
[/LIST]
I am not modifying that class under the same namespace and there is no duplicate in the class extensions. I assume using the same
Code:
class Post extends XFCP_Post
{
Under different namespaces should work fine but I cant see any other reason this would occur.
Here is a list of class extensions
are the
Silvertais\CrossForumChat\XF\API\Controller\Post and Silvertails\CrossForumChat\XF\Pub\Controller\Post possibly interfering with each other?
Really stuck on whats causing this conflict but can only assume those two are for some reason not seeing themselves under different namespaces