Question XF2.2 DB Credits error when trying to perma delete a resource

Status
Not open for further replies.

chernabog

Customer
Hi there! I am getting this error when trying to perma delete a resource. I checked my events and I don't have anything listed for XFRM, so I don't know why it's blocking the deletion -- or if it's doing so thinking it should take credits from me?

Let me know if this helps or if I can provide any more info to try and troubleshoot? Thank you, mate


Code:
ErrorException: [E_WARNING] Attempt to read property "resource_version_id" on null in src/addons/DBTech/Credits/XFRM/Entity/ResourceItem.php at line 183

    XF::handlePhpError() in src/addons/DBTech/Credits/XFRM/Entity/ResourceItem.php at line 183
    DBTech\Credits\XFRM\Entity\ResourceItem->_postDelete() in src/addons/OzzModz/ScheduledContent/Entity/ScheduledTrait.php at line 35
    OzzModz\ScheduledContent\XFRM\Entity\ResourceItem->_postDelete() in src/XF/Mvc/Entity/Entity.php at line 1664
    XF\Mvc\Entity\Entity->delete() in src/addons/XFRM/Service/ResourceItem/Delete.php at line 91
    XFRM\Service\ResourceItem\Delete->delete() in src/addons/XFRM/InlineMod/ResourceItem/Delete.php at line 42
    XFRM\InlineMod\ResourceItem\Delete->applyToEntity() in src/XF/InlineMod/AbstractAction.php at line 87
    XF\InlineMod\AbstractAction->applyInternal() in src/XF/InlineMod/AbstractAction.php at line 80
    XF\InlineMod\AbstractAction->apply() in src/XF/Pub/Controller/InlineMod.php at line 129
    XF\Pub\Controller\InlineMod->actionPerform() in src/addons/Siropu/AdsManager/XF/Pub/Controller/InlineMod.php at line 54
    Siropu\AdsManager\XF\Pub\Controller\InlineMod->actionPerform() in src/XF/Mvc/Dispatcher.php at line 352
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 258
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2487
    XF\App->run() in src/XF.php at line 524
    XF::runApp() in index.php at line 20
 
Can you show me what's on line 183 in src/addons/DBTech/Credits/XFRM/Entity/ResourceItem.php? Looking at the release code of v5.9.0, line 183 contains a comment, not code.
 
Can you show me what's on line 183 in src/addons/DBTech/Credits/XFRM/Entity/ResourceItem.php? Looking at the release code of v5.9.0, line 183 contains a comment, not code.
Thanks for your help, Fillip. This is line 183:

PHP:
$attachments = $attachRepo->findAttachmentsByContent('resource_version', $firstVersion->resource_version_id)

Since it seems so off, I went ahead and uploaded my ResourceItem.php in case it would help to see the entire file.

Thank you for your help!
 

Attachments

Yeah, you're missing what might have been a hotfix to 5.9.0 😅

1738259567107.webp

If you re-download v5.9.0 and re-import it via the archive installer, it should work :)
 
Hello @chernabog,

We hope your ticket regarding DragonByte Credits has been addressed to your satisfaction. This ticket has now been scheduled to be 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
4,884
Customer rating
5.00 star(s) 5 ratings
Back
Top