What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

Bug Fixed RM Resource Forums 1.0.4

puertoblack2003

New Member
additional error while processing rebuild cache

Code:
Error: Attempt to assign property "parent_node_id" on null in src\addons\XFA\RMResourceForum\Service\ResourceForum\UpdaterService.php at line 54

    XFA\RMResourceForum\Service\ResourceForum\UpdaterService->update() in src\addons\XFA\RMResourceForum\Job\Rebuild.php at line 51
    XFA\RMResourceForum\Job\Rebuild->rebuildById() in src\XF\Job\AbstractRebuildJob.php at line 42
    XF\Job\AbstractRebuildJob->run() in src\XF\Job\Manager.php at line 275
    XF\Job\Manager->runJobInternal() in src\XF\Job\Manager.php at line 205
    XF\Job\Manager->runJobEntry() in src\XF\Job\Manager.php at line 121
    XF\Job\Manager->runByIds() in src\XF\Admin\Controller\ToolsController.php at line 146
    XF\Admin\Controller\ToolsController->actionRunJob() in src\XF\Mvc\Dispatcher.php at line 362
    XF\Mvc\Dispatcher->dispatchClass() in src\XF\Mvc\Dispatcher.php at line 264
    XF\Mvc\Dispatcher->dispatchFromMatch() in src\XF\Mvc\Dispatcher.php at line 121
    XF\Mvc\Dispatcher->dispatchLoop() in src\XF\Mvc\Dispatcher.php at line 63
    XF\Mvc\Dispatcher->run() in src\XF\App.php at line 2826
    XF\App->run() in src\XF.php at line 806
    XF::runApp() in admin.php at line 15
 
Damn…

I guess it’s still an issue of thread deleted because I ran it smoothly on our website this weekend.

I’ll investigate during the week, really sorry about that, it’s corner cases that sidntoccur during my testings.
 
Damn…

I guess it’s still an issue of thread deleted because I ran it smoothly on our website this weekend.

I’ll investigate during the week, really sorry about that, it’s corner cases that sidntoccur during my testings.

trying to figure something out my server log, is different from the actual error when running rebuild error. this is what i got

Code:
   Error: Attempt to assign property "parent_node_id" on null src\addons\XFA\RMResourceForum\Service\ResourceForum\UpdaterService.php:54

    Generated by: elboriyorker Apr 24, 2025 at 2:20 AM

Stack trace

#0 src\addons\XFA\RMResourceForum\Job\Rebuild.php(51): XFA\RMResourceForum\Service\ResourceForum\UpdaterService->update()
#1 src\XF\Job\AbstractRebuildJob.php(42): XFA\RMResourceForum\Job\Rebuild->rebuildById(1)
#2 src\XF\Job\Manager.php(275): XF\Job\AbstractRebuildJob->run(8)
#3 src\XF\Job\Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8)
#4 src\XF\Job\Manager.php(121): XF\Job\Manager->runJobEntry(Array, 8)
#5 src\XF\Admin\Controller\ToolsController.php(146): XF\Job\Manager->runByIds(Array, 8)
#6 src\XF\Mvc\Dispatcher.php(362): XF\Admin\Controller\ToolsController->actionRunJob(Object(XF\Mvc\ParameterBag))
#7 src\XF\Mvc\Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(Truonglv\Watermark\XF\Admin\Controller\ToolsController), NULL)
#8 src\XF\Mvc\Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Truonglv\Watermark\XF\Admin\Controller\ToolsController), NULL)
#9 src\XF\Mvc\Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src\XF\App.php(2826): XF\Mvc\Dispatcher->run()
#11 src\XF.php(806): XF\App->run()
#12 admin.php(15): XF::runApp('XF\\Admin\\App')
#13 {main}

Request state

array(4) {
  ["url"] => string(24) "/admin.php?tools/run-job"
  ["referrer"] => string(129) "https://www.androidmobilejunkie.com/admin.php?tools/run-job&only_id=6865&_xfRedirect=%2Fadmin.php%3Ftools%2Frebuild%26success%3D1"
  ["_GET"] => array(1) {
    ["tools/run-job"] => string(0) ""
  }
  ["_POST"] => array(3) {
    ["_xfRedirect"] => string(69) "https://www.androidmobilejunkie.com/admin.php?tools/rebuild&success=1"
    ["_xfToken"] => string(8) "********"
    ["only_ids"] => string(4) "6865"
  }
}


In the bold letters #7 is that add-on causing a conflict?
 
Did you delete a resource forum for an existing resource ?
And then re-run that rebuild ?

OK, initially when first installed, i ran rebuild, but I then screwed up and I didn't assign to forum, so when the rebuild finished. it didn't go to the assigned forum ex: Resource Support > Resource Discussion. Not thinking right instead of assigning to a proper forum manually, I ended up deleting all of it, thinking i can redo it again which i then realized i screwed up. so I tried again that's when i received the error message. and posted here.
 
I'll release a version, it should get this fixed.

Though the error is odd because it would mean the forum was removed but not the node so that's really strange.
 

From bespoke add-on development to complex integrations and specialized enhancements, we offer a range of XenForo development services designed to help your community thrive.

Start discussing your needs
Back
Top
Cart