Bug Error When Trying to Add or Modify Events

Status
Not open for further replies.

kbryant414

Customer
I've recently started receiving this error when trying to modify an existing event, or create a new one.

Fatal error: Call to a member function toArray() on null in /home/postterm/public_html/xf/src/addons/DBTech/Credits/Application/Core.php on line 359

This is on XF2 2.0.5, DBCredits 5.0.0.

Existing events still work and currencies can be Transferred or Donated.

Seems to be a problem retrieving the XF2 forum cache? I've done a cache repair on the add-on itself but of course it wouldn't be that simple.
 
Do you have any 3rd party addons that may have added forums or nodes using a nonstandard system?
 
You have an orphan forum record in your database.

If you go edit the event now, you'll see I added debug code. Forum ID 98 exists in your database (xf_forum table), but it does not have a corresponding Node record (xf_node table).

This is a problem you need to correct. Either you should erase that record from the xf_forum table, or you should manually create the xf_node table record.
Once you have done this, refresh the admin.php?action=modify&eventtriggerid=post page and see if this problem affects more than one forum.

I would check if forum ID 98 is accessible in the front-end, but my forum account does not have permission to view the forum.
 
Thanks. I'm out of town until Tuesday, so can't do much to fix it until then, but hopefully this puts everything in order. Sorry for the access restrictions, that wasn't intentional. Anyway just wanted to get a reply out so you know I'm not ignoring you.
 
You have an orphan forum record in your database.

If you go edit the event now, you'll see I added debug code. Forum ID 98 exists in your database (xf_forum table), but it does not have a corresponding Node record (xf_node table).

This is a problem you need to correct. Either you should erase that record from the xf_forum table, or you should manually create the xf_node table record.
Once you have done this, refresh the admin.php?action=modify&eventtriggerid=post page and see if this problem affects more than one forum.

I would check if forum ID 98 is accessible in the front-end, but my forum account does not have permission to view the forum.

Well, this is interesting...

History in brief: our original vB forum went down years ago, for a few months. While it was down, a new, temporary forum was made on Zetaboards. When we moved back to vB, we attempted to import the Zetaboards data, but it didn't take. It behaved as if the import was successful, but none of the imported threads could be viewed. No big deal, forgot all about it.

Fast-forward to now, 7 years later, and the ZB which was imported into vB which was imported into XF which was upgraded to XF2, still had some ghost records somehow.

The odd part is that this would have been with the XF2 forum since it was created (before I first installed the DBCredits). I wonder what changed in the forum software or the add-on to cause the problem to surface? Either way, I've cleared out the old ZB records and DBCredits is working again. Thanks, @Fillip H..
 
The odd part is that this would have been with the XF2 forum since it was created (before I first installed the DBCredits). I wonder what changed in the forum software or the add-on to cause the problem to surface? Either way, I've cleared out the old ZB records and DBCredits is working again. Thanks, @Fillip H..
Honestly, the reason why this issue came to light is the fact that DB Credits isn't coded to an entirely standard way, in order to allow it to run on XF1 and XF2 without needing to re-code the entire mod like normal mods do.

What this means is that instead of using the standard methods of fetching forum records (which fetches forum records only if they also have a corresponding node record), I fetch forum records only, directly. Then, when I try to access the Node relation, it doesn't exist, because the node record doesn't exist, and thus the error presented itself.

All of that being said, it's always good to do a little bit of spring cleaning, just in case another mod did something similar :)
 
Hello @kbryant414,

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 XenForo 2.3.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
5,004
Customer rating
5.00 star(s) 5 ratings
Back
Top