Bug An exception occurred: [Error] Call to a member

Status
Not open for further replies.

rootksk

Customer
Hi,
I have a add post event but this error.


Code:
An exception occurred: [Error] Call to a member function toArray() on null in src/addons/DBTech/Credits/Application/Core.php on line 359

DBTech\Credits\Application\Core->getForumCache() in src/addons/DBTech/Credits/Application/includes/adminfunctions_xenforo2.php at line 377
construct_forum_chooser_options() in src/addons/DBTech/Credits/Application/includes/adminfunctions_xenforo2.php at line 338
print_forum_chooser() in src/addons/DBTech/Credits/ActionAdmin/Event.php at line 272
DBTech\Credits\ActionAdmin\Event->actionModify() in src/addons/DBTech/Credits/Application/Core.php at line 173
DBTech\Credits\Application\Core->runAction() in src/addons/DBTech/Credits/Admin/Controller/Route.php at line 45
DBTech\Credits\Admin\Controller\Route->actionIndex() in src/XF/Mvc/Dispatcher.php at line 249
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1931
XF\App->run() in src/XF.php at line 328
XF::runApp() in admin.php at line 13

How to fix it ?
 
Can you please try disabling all other modifications, leaving only this one enabled?
 
I believe I've seen this particular issue before, you may have an entry in your xf_forum table that does not have a corresponding entry in the xf_node table.

Run this query:
SQL:
SELECT forum.* FROM xf_forum AS forum
LEFT JOIN xf_node AS node USING(node_id)
WHERE node.node_id IS NULL
And see if you get any results.
 
Query results

turkmmo.png


https://www.imagevisit.com/image/8BAWm
 
Do those forum (node) IDs actually exist in your forum? If not, you should probably back up the xf_forum table and then delete those rows.

I've no idea how this happened to your site, but the problem is technically in your database, not this mod.
 
Hello @rootksk,

We hope your ticket regarding DragonByte Credits has been addressed to your satisfaction. This ticket has now been closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
Status
Not open for further replies.

DragonByte Credits

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
4,402
Customer rating
5.00 star(s) 4 ratings
Back
Top