Not a bug AdminTools Generating Exceptions in server error log

marshreef

New member
Threads
1
Messages
3
88 pages of errors - started after installing tool.
  • Exception: Could not find class EAEAddons\AdminTools\XF\Entity\User when attempting to extend XF\Entity\User
  • src/XF/Extension.php:174
  • Generated by: Unknown account
  • May 25, 2020 at 7:13 AM
Stack trace
#0 src/XF/Mvc/Entity/Manager.php(53): XF\Extension->extendClass('XF\\Entity\\User')
#1 src/XF/Mvc/Entity/Manager.php(67): XF\Mvc\Entity\Manager->getEntityClassName('XF:User')
#2 src/XF/Repository/User.php(58): XF\Mvc\Entity\Manager->getEntityStructure('XF:User')
#3 src/XF/Repository/User.php(31): XF\Repository\User->getGuestUser()
#4 src/XF/App.php(1767): XF\Repository\User->getVisitor(NULL, Array)
#5 src/XF/Pub/App.php(154): XF\App->getVisitorFromSession(Object(XF\Session\Session))
#6 src/XF/App.php(2174): XF\Pub\App->start(true)
#7 src/XF.php(390): XF\App->run()
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}
Request state
array(4) {
["url"] => string(30) "/index.php?goto/post&id=489043"
["referrer"] => bool(false)
["_GET"] => array(2) {
["goto/post"] => string(0) ""
["id"] => string(6) "489043"
}
["_POST"] => array(0) {
}
}
 
Last edited:

Lawrence

Developer
Staff member
Threads
36
Messages
283
    • Developer
    • Administrator
    • Moderator
  • #2
Re: AdminTools Generating Exceptions in server error log
Hi, thank you for reporting this. Can you confirm all the files have been uploaded correctly? What does the file health check report with respect to this add-on?

Edit, I have this add-on installed here and no server errors reported. I'll do some more testing.
 

marshreef

New member
Threads
1
Messages
3
Re: AdminTools Generating Exceptions in server error log
File health check results
Re-run check
All 5,858 checked files are present and correct.
 

Lawrence

Developer
Staff member
Threads
36
Messages
283
    • Developer
    • Administrator
    • Moderator
  • #4
Re: AdminTools Generating Exceptions in server error log
The only way I can reproduce the error is if I renamed EAEAddons\AdminTools\XF\Entity\User.php to EAEAddons\AdminTools\XF\Entity\User2.php on my dev site, and then I get the exact error you posted. So that tells me you need to re-upload the admin tools files. I would first download then again, and upload them (making sure to over-write the files. If your download was some corrupted it would explain why the health check passed for all files (the checksum may not have been uploaded).
 

marshreef

New member
Threads
1
Messages
3
Re: AdminTools Generating Exceptions in server error log
How do I re-download the file?
 

Lawrence

Developer
Staff member
Threads
36
Messages
283
    • Developer
    • Administrator
    • Moderator
  • #6
Re: AdminTools Generating Exceptions in server error log
How do I re-download the file?

There is a link in the fetchapp email that will allow you to re-download. I'll send you the copy in a conversation, :)
 
Top