Check Tables [Deleted]

  • Thread starter Thread starter Deleted member 232995
  • Start date Start date
It should be working with XF2.2.6
This is not what the error tells me:

  • InvalidArgumentException: No basic data was found for the current XF version!
  • src/addons/X0815/ChkTables/ChkTable.php:198

#0 src/addons/X0815/ChkTables/ChkTable.php(32): X0815\ChkTables\ChkTable->createCleanTableData()
#1 src/addons/X0815/ChkTables/XF/Admin/Controller/Tools.php(46): X0815\ChkTables\ChkTable->loadTableDataSystem()
#2 src/XF/Mvc/Dispatcher.php(350): X0815\ChkTables\XF\Admin\Controller\Tools->actionChkTables(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'ChkTables', Object(XF\Mvc\RouteMatch), Object(X0815\ChkTables\XF\Admin\Controller\Tools), NULL)
#4 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(X0815\ChkTables\XF\Admin\Controller\Tools), NULL)
#5 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2344): XF\Mvc\Dispatcher->run()
#7 src/XF.php(512): XF\App->run()
#8 admin.php(13): XF::runApp('XF\\Admin\\App')
#9 {main}


array(4) {
["url"] => string(27) "/admin.php?tools/chk-tables"
["referrer"] => string(48) "https://xxxxxxx.com/admin.php?logs/server-errors/"
["_GET"] => array(1) {
["tools/chk-tables"] => string(0) ""
}
["_POST"] => array(0) {
}
}
 
What I'm getting is this:

InvalidArgumentException: No basic data was found for the current XF version! in src/addons/X0815/ChkTables/ChkTable.php at line 198
  1. X0815\ChkTables\ChkTable->createCleanTableData() insrc/addons/X0815/ChkTables/ChkTable.php at line 32
  2. X0815\ChkTables\ChkTable->loadTableDataSystem() insrc/addons/X0815/ChkTables/ChkTable.php at line 41
  3. X0815\ChkTables\ChkTable->getLostTablesForFileScan() insrc/addons/X0815/ChkTables/Job/ScanFiles.php at line 34
  4. X0815\ChkTables\Job\ScanFiles->run() in src/XF/Job/Manager.php at line 258
  5. XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line200
  6. XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 116
  7. XF\Job\Manager->runByIds() in src/XF/Admin/Controller/Tools.php at line 120
  8. XF\Admin\Controller\Tools->actionRunJob() insrc/XF/Mvc/Dispatcher.php at line 350
  9. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
  10. XF\Mvc\Dispatcher->dispatchFromMatch() insrc/XF/Mvc/Dispatcher.php at line 113
  11. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  12. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2344
  13. XF\App->run() in src/XF.php at line 512
  14. XF::runApp() in admin.php at line 13
 
It would be nice, if this addon can check if a addon is realy deinstalled or only deactivated to reduce false positive. :)
 
@0815 if i disable a add-on and check the tables, the tables belongs to the disabled add-on are shown as "Not in use". This is misleading 'cause it shows the same status as an uninstalled add-on.

upload_2021-7-14_11-30-39.webp
 

When I go to view "check tables" in the ACP I see: "Oops! We ran into some problems. You do not have permission to view this page or perform this action." I checked the user permissions and didn't see anything there (sorry for large font, it won't let me remove formatting)​

 
Read the description of this AddOn. You have to set a VAR in the config.php
I did read the description, and I added the var howevver it did not work. My superadmin account is user ID 1, so I added this:
$config['X0815']['ChkTables']['renameData'] = 1;
and it did not work. Is that how it should be formatted?
 
Top Bottom