Cannot use XF\Entity\Thread as Thread because the name is already in use

Vekseid

New Member
Reactions
4
I'm actually getting a number of these with respect to your mods. I suspect it might be because of my older php version (still on 5.6 until I can upgrade my SMF forum, which is a major undertaking).

Code:
    ErrorException: Fatal Error: Cannot use XF\Entity\Thread as Thread because the name is already in use src/addons/SV/ModeratorEssentials/XF/Repository/Post.php:14 

    Generated by: Unknown account Aug 29, 2019 at 8:14 PM 

Stack trace

#0 [internal function]: XF::handleFatalError()
#1 {main}

Request state

array(4) {
  ["url"] => string(32) "/community/threads/99003/page-61"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["/community/threads/99003/page-61"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
Enabling opcode cache should actually prevent this bug from occurring.

But if you report them I'll fix them as php compatibility bugs. You probably should open a ticket so I can send you pre-release versions since there might be a bunch of them
 
Last edited:
I do:

1567148771645.png


I'll see if your update fixes things though. Thank you : )
 
Yep, this fixes things. Thank you very much.

I do know I have a funky and perhaps outdated config. so something might be going wrong somewhere.
 

Users who are viewing this thread

Back
Top