• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • Error when attempting to add an existing page to a feed

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Error when attempting to add an existing page to a feed

    • Issue Tools
      • View Changes
    1. issueid=6277 November 29, 2021 12:35 PM
      expanserpb expanserpb is offline
      Junior Member
      Error when attempting to add an existing page to a feed

      InvalidArgumentException: Attempted to convert NULL to string/binary [username] src/XF/Mvc/Entity/Entity.php:761
      Generated by: Raigryn Vayd Nov 29, 2021 at 5:34 PM
      Stack trace
      #0 src/XF/Mvc/Entity/Entity.php(639): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'username', 5, Array)
      #1 src/XF/Mvc/Entity/Entity.php(569): XF\Mvc\Entity\Entity->set('username', NULL)
      #2 src/XF/Repository/UserAlert.php(151): XF\Mvc\Entity\Entity->__set('username', NULL)
      #3 src/XF/Repository/UserAlert.php(116): XF\Repository\UserAlert->insertAlert(546, 8, NULL, 'vwfeeditem', 8, 'mention2', Array, Array)
      #4 src/addons/SV/UserMentionsImprovements/XF/Repository/XF22/UserAlert.php(21): XF\Repository\UserAlert->alert(Object(SV\Threadmarks\XF\Entity\User), 8, NULL, 'vwfeeditem', 8, 'mention2', Array, Array)
      #5 src/addons/vw/vw/_core/model/alert/xf2.php(64): SV\UserMentionsImprovements\XF\Repository\XF22\UserAlert->alert(Object(SV\Threadmarks\XF\Entity\User), 8, NULL, 'vwfeeditem', 8, 'mention2', Array)
      #6 src/addons/vw/vw/_core/controller/dm/item/feed/vw.php(528): vw_Alert_Model_XF2->add_alert(Array, Array, Array)
      #7 src/addons/vw/vw/_core/controller/dm/item/feed/vw.php(482): vw_DM_Item_Feed_Controller->notify_content_owners()
      #8 src/addons/vw/vw/XF/Entity/EntityBase.php(660): vw_DM_Item_Feed_Controller->post_save_each()
      #9 src/XF/Mvc/Entity/Entity.php(1268): vw\vw\XF\Entity\EntityBase->_postSave()
      #10 src/addons/vw/vw/XF/Entity/EntityBase.php(583): XF\Mvc\Entity\Entity->save(false, false)
      #11 src/addons/vw/vw/_core/controller/dm/xf2.php(401): vw\vw\XF\Entity\EntityBase->vwSave()
      #12 src/addons/vw/vw/_core/controller/ui/feed/vw.php(568): vw_DM_Controller_XF2->save()
      #13 src/addons/vw/vw/_core/controller/ui/feed/vw.php(91): vw_UI_Feed_Controller->bulk()
      #14 src/addons/vw/vw/_core/controller/ui/feed/xf2.php(28): vw_UI_Feed_Controller->execute()
      #15 src/addons/vw/vw/_core/controller/ui/stack/vw.php(295): vw_UI_Feed_Controller_XF2->execute()
      #16 src/addons/vw/vw/Pub/Controller/Wiki/Feed.php(165): vw_UI_Stack_Controller->execute()
      #17 src/addons/vw/vw/Mvc/Dispatcher.php(30): vw\vw\Pub\Controller\Wiki\Feed->_actionEntries(Object(XF\Mvc\ParameterBag))
      #18 src/addons/vw/vw/Pub/Controller/Wiki/Feed.php(126): vw\vw\Mvc\Dispatcher::dispatch(Object(vw\vw\Pub\Controlle r\Wiki\Feed), 'entries', Object(XF\Mvc\ParameterBag))
      #19 src/XF/Mvc/Dispatcher.php(352): vw\vw\Pub\Controller\Wiki\Feed->actionEntries(Object(XF\Mvc\ParameterBag))
      #20 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('vw\\vw:Wiki\\Feed', 'Entries', Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Feed), NULL)
      #21 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Feed), NULL)
      #22 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #23 src/XF/App.php(2345): XF\Mvc\Dispatcher->run()
      #24 src/XF.php(512): XF\App->run()
      #25 index.php(20): XF::runApp('XF\\Pub\\App')
      #26 {main}

      -------------

      Previous InvalidArgumentException: Attempted to convert NULL to string/binary - src/XF/Mvc/Entity/ValueFormatter.php:138
      #0 src/XF/Mvc/Entity/Entity.php(757): XF\Mvc\Entity\ValueFormatter->castValueToType(NULL, 5, Array)
      #1 src/XF/Mvc/Entity/Entity.php(639): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'username', 5, Array)
      #2 src/XF/Mvc/Entity/Entity.php(569): XF\Mvc\Entity\Entity->set('username', NULL)
      #3 src/XF/Repository/UserAlert.php(151): XF\Mvc\Entity\Entity->__set('username', NULL)
      #4 src/XF/Repository/UserAlert.php(116): XF\Repository\UserAlert->insertAlert(546, 8, NULL, 'vwfeeditem', 8, 'mention2', Array, Array)
      #5 src/addons/SV/UserMentionsImprovements/XF/Repository/XF22/UserAlert.php(21): XF\Repository\UserAlert->alert(Object(SV\Threadmarks\XF\Entity\User), 8, NULL, 'vwfeeditem', 8, 'mention2', Array, Array)
      #6 src/addons/vw/vw/_core/model/alert/xf2.php(64): SV\UserMentionsImprovements\XF\Repository\XF22\UserAlert->alert(Object(SV\Threadmarks\XF\Entity\User), 8, NULL, 'vwfeeditem', 8, 'mention2', Array)
      #7 src/addons/vw/vw/_core/controller/dm/item/feed/vw.php(528): vw_Alert_Model_XF2->add_alert(Array, Array, Array)
      #8 src/addons/vw/vw/_core/controller/dm/item/feed/vw.php(482): vw_DM_Item_Feed_Controller->notify_content_owners()
      #9 src/addons/vw/vw/XF/Entity/EntityBase.php(660): vw_DM_Item_Feed_Controller->post_save_each()
      #10 src/XF/Mvc/Entity/Entity.php(1268): vw\vw\XF\Entity\EntityBase->_postSave()
      #11 src/addons/vw/vw/XF/Entity/EntityBase.php(583): XF\Mvc\Entity\Entity->save(false, false)
      #12 src/addons/vw/vw/_core/controller/dm/xf2.php(401): vw\vw\XF\Entity\EntityBase->vwSave()
      #13 src/addons/vw/vw/_core/controller/ui/feed/vw.php(568): vw_DM_Controller_XF2->save()
      #14 src/addons/vw/vw/_core/controller/ui/feed/vw.php(91): vw_UI_Feed_Controller->bulk()
      #15 src/addons/vw/vw/_core/controller/ui/feed/xf2.php(28): vw_UI_Feed_Controller->execute()
      #16 src/addons/vw/vw/_core/controller/ui/stack/vw.php(295): vw_UI_Feed_Controller_XF2->execute()
      #17 src/addons/vw/vw/Pub/Controller/Wiki/Feed.php(165): vw_UI_Stack_Controller->execute()
      #18 src/addons/vw/vw/Mvc/Dispatcher.php(30): vw\vw\Pub\Controller\Wiki\Feed->_actionEntries(Object(XF\Mvc\ParameterBag))
      #19 src/addons/vw/vw/Pub/Controller/Wiki/Feed.php(126): vw\vw\Mvc\Dispatcher::dispatch(Object(vw\vw\Pub\Controlle r\Wiki\Feed), 'entries', Object(XF\Mvc\ParameterBag))
      #20 src/XF/Mvc/Dispatcher.php(352): vw\vw\Pub\Controller\Wiki\Feed->actionEntries(Object(XF\Mvc\ParameterBag))
      #21 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('vw\\vw:Wiki\\Feed', 'Entries', Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Feed), NULL)
      #22 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Feed), NULL)
      #23 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #24 src/XF/App.php(2345): XF\Mvc\Dispatcher->run()
      #25 src/XF.php(512): XF\App->run()
      #26 index.php(20): XF::runApp('XF\\Pub\\App')
      #27 {main}
      Request state
      array(4) {
      ["url"] => string(48) "/Folklore-feed/entries/raigryn-vayd.8/1/?do=bulk"
      ["referrer"] => string(64) "https://chroniclesrp.net/Folklore-feed/entries/raigryn-vayd.8/1/"
      ["_GET"] => array(2) {
      ["/Folklore-feed/entries/raigryn-vayd_8/1/"] => string(0) ""
      ["do"] => string(4) "bulk"
      }
      ["_POST"] => array(7) {
      ["query"] => string(6) "battle"
      ["data-from"] => string(4) "none"
      ["pageid"] => array(3) {
      [0] => string(4) "1387"
      [1] => string(3) "675"
      [2] => string(4) "1388"
      }
      ["_xfToken"] => string(8) "********"
      ["type"] => string(4) "feed"
      ["do"] => string(4) "bulk"
      ["ajax"] => string(1) "1"
      }
      }
    Issue Details
    Issue Number 6277
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category User Alerts / Likes
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.3
    Fixed Version 4.1.3
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. November 29, 2021 12:41 PM
      expanserpb expanserpb is offline
      Junior Member
      Also, I can in no way convince a Wiki:feed updates widget to display.
      Reply Reply  
    2. November 29, 2021 12:44 PM
      pegasus pegasus is offline
      VaultWiki Team
      The "Feed Updates" widget will only display in an area that contains a collaborative feed that has been updated. Make sure that area has allowed the "Feed Updates" widget in its area settings (Allowed widgets in this area).
      Reply Reply  
    3. November 29, 2021 1:11 PM
      expanserpb expanserpb is offline
      Junior Member
      Okay so I've made a test collab feed, managed to get the widget appearing. As per above errors I can't add existing pages but new ones. Added a new page. What should the widget show?

      Reply Reply  
    4. November 29, 2021 1:13 PM
      expanserpb expanserpb is offline
      Junior Member
      Although what I'm trying to achieve here is a widget on my forum homepage that has a list of specific new articles so perhaps there is a better way to do that?

      (it's an aside from the error causing the problem with feeds though...)
      Reply Reply  
    5. November 29, 2021 1:49 PM
      expanserpb expanserpb is offline
      Junior Member
      Okay now the widget has cached and it just doesn't display very well at all.

      Reply Reply  
    6. November 29, 2021 2:35 PM
      pegasus pegasus is offline
      VaultWiki Team
      This widget was originally intended to be displayed in the Wiki: Header position. I have added some better CSS rules for the sidebar position in the next release.
      Reply Reply  
    7. November 29, 2021 2:55 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed the alert issue in the next build. In src/addons/vw/vw/_core/model/alert/xf2.php, find:
      Code:
      $receiver = \vw\vw\Helper\Entity\Entity::instantiateSafely('XF:User', $user);
      BEFORE it, add:
      Code:
      		if (empty($alert['imod']) AND !isset($item['username']))
      		{
      			$item['username'] = '';
      
      			if ($item['userid'])
      			{
      				$contentUser = vw_Hard_Core::controller('Fetch')->get('User', $item['userid']);
      
      				if ($contentUser)
      				{
      					$item['username'] = $contentUser['username'];
      				}
      			}
      		}
      Reply Reply  
    8. November 29, 2021 3:01 PM
      expanserpb expanserpb is offline
      Junior Member
      I'll have a play with that position!
      Reply Reply  
    9. November 29, 2021 3:43 PM
      expanserpb expanserpb is offline
      Junior Member
      Okay so I set quite a large value for maximum feeds and entries being displayed in the widget itself, but it still only shows one article in the header:

      https://chroniclesrp.net/Folklore/Board-Story

      Is there another setting to expand this?
      Reply Reply  
    10. November 29, 2021 3:55 PM
      expanserpb expanserpb is offline
      Junior Member
      Oh never mind, it seems to have recached and added them
      Reply Reply  
    11. December 1, 2021 5:44 AM
      expanserpb expanserpb is offline
      Junior Member


      Like that would work, maybe with more line spacing
      Reply Reply  
    12. December 1, 2021 7:43 AM
      expanserpb expanserpb is offline
      Junior Member
      Is there a way I can get aa widget with a wiki feed into the sidebar on the forum homepage?
      Reply Reply  
    13. December 1, 2021 11:25 AM
      pegasus pegasus is offline
      VaultWiki Team
      It should be possible to get any of the wiki-related widgets to render on the forum homepage, but most of the widgets need to be fed a wiki context to work correctly. It looks like the field that allows this is missing in XenForo 2. We'll have to add that for the next release.
      Reply Reply  
    14. December 1, 2021 11:33 AM
      expanserpb expanserpb is offline
      Junior Member
      For now I've managed a workaround using an HTML widget and calling this widget by its key
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 8:31 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.