• 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
    • Undefined index: pageid

    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: Undefined index: pageid

    • Issue Tools
      • View Changes
    1. issueid=5968 February 25, 2020 6:02 AM
      expanserpb expanserpb is offline
      Junior Member
      Undefined index: pageid

      ErrorException: [E_NOTICE] Undefined index: pageid src/addons/vw/vw/_core/controller/proxy/like/comment/vw.php:43
      Generated by: Unknown account Feb 23, 2020 at 12:41 AM
      Stack trace
      #0 src/addons/vw/vw/_core/controller/proxy/like/comment/vw.php(43): XF::handlePhpError(8, '[E_NOTICE] Unde...', 's...', 43, Array)
      #1 src/addons/vw/vw/_core/controller/proxy/like/xf2.php(168): vw_Proxy_Like_Comment_Controller->get_url('likes')
      #2 src/addons/vw/vw/_core/controller/proxy/like/vw.php(102): vw_Proxy_Like_Controller_XF2->perform_likes()
      #3 src/addons/vw/vw/_core/controller/ui/discussion/vw.php(2765): vw_Proxy_Like_Controller->likes(Object(vw_UI_Stack_Controller), Array, 'Comment', 'commentid')
      #4 src/addons/vw/vw/_core/controller/ui/discussion/vw.php(160): vw_UI_Discussion_Controller->likes()
      #5 src/addons/vw/vw/_core/controller/ui/discussion/xf0.php(61): vw_UI_Discussion_Controller->execute()
      #6 src/addons/vw/vw/_core/controller/ui/discussion/xf2.php(28): vw_UI_Discussion_Controller_XF0->execute()
      #7 src/addons/vw/vw/_core/controller/ui/page/vw.php(889): vw_UI_Discussion_Controller_XF2->execute()
      #8 src/addons/vw/vw/_core/controller/ui/page/vw.php(841): vw_UI_Page_Controller->do_comments(true)
      #9 src/addons/vw/vw/_core/controller/ui/page/vw.php(215): vw_UI_Page_Controller->comments()
      #10 src/addons/vw/vw/_core/controller/ui/stack/vw.php(294): vw_UI_Page_Controller->execute()
      #11 src/addons/vw/vw/Pub/Controller/Wiki/Wiki.php(80): vw_UI_Stack_Controller->execute()
      #12 src/addons/vw/vw/Mvc/Dispatcher.php(30): vw\vw\Pub\Controller\Wiki\Wiki->_actionIndex(Object(XF\Mvc\ParameterBag))
      #13 src/addons/vw/vw/Pub/Controller/Wiki/AbstractController.php(26): vw\vw\Mvc\Dispatcher::dispatch(Object(vw\vw\Pub\Controlle r\Wiki\Wiki), 'index', Object(XF\Mvc\ParameterBag))
      #14 src/XF/Mvc/Dispatcher.php(350): vw\vw\Pub\Controller\Wiki\AbstractController->actionIndex(Object(XF\Mvc\ParameterBag))
      #15 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('\\vw\\vw\\Pub\\Cont...', 'Index', Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Wiki), NULL)
      #16 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Wiki), NULL)
      #17 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #18 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
      #19 src/XF.php(391): XF\App->run()
      #20 index.php(20): XF::runApp('XF\\Pub\\App')
      #21 {main}
      Request state
      array(4) {
      ["url"] => string(63) "/Folklore/The-Messengers?do=comments&action=likes&commentid=229"
      ["referrer"] => bool(false)
      ["_GET"] => array(4) {
      ["/Folklore/The-Messengers"] => string(0) ""
      ["do"] => string(8) "comments"
      ["action"] => string(5) "likes"
      ["commentid"] => string(3) "229"
      }
      ["_POST"] => array(0) {
      }
      }
    Issue Details
    Issue Number 5968
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category User Alerts / Likes
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 4.1.0 RC 1
    Fixed Version 4.1.0 RC 2
    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. February 25, 2020 10:11 AM
      pegasus pegasus is offline
      VaultWiki Team
      In src/addons/vw/vw/_core/controller/proxy/like/comment/vw.php, find:
      Code:
      $this->parent = vw_Hard_Core::controller('Fetch')->get('Page', $this->proxy->content['pageid']);
      Replace with:
      Code:
      $this->parent = vw_Hard_Core::controller('Fetch')->get($this->proxy->content['contenttypeid'], $this->proxy->content['contentid']);
      Reply Reply  
    2. February 26, 2020 11:30 AM
      expanserpb expanserpb is offline
      Junior Member
      Now I get:

      ErrorException: [E_NOTICE] Undefined index: displayorder src/addons/vw/vw/_core/controller/ui/discussion/vw.php:1437
      Generated by: Raigryn Vayd Feb 26, 2020 at 4:30 PM
      Stack trace
      #0 src/addons/vw/vw/_core/controller/ui/discussion/vw.php(1437): XF::handlePhpError(8, '[E_NOTICE] Unde...', 's...', 1437, Array)
      #1 src/addons/vw/vw/_core/controller/ui/discussion/vw.php(323): vw_UI_Discussion_Controller->reply_permissions()
      #2 src/addons/vw/vw/_core/controller/ui/discussion/vw.php(124): vw_UI_Discussion_Controller->postcomment()
      #3 src/addons/vw/vw/_core/controller/ui/discussion/xf0.php(61): vw_UI_Discussion_Controller->execute()
      #4 src/addons/vw/vw/_core/controller/ui/discussion/xf2.php(28): vw_UI_Discussion_Controller_XF0->execute()
      #5 src/addons/vw/vw/_core/controller/ui/page/vw.php(889): vw_UI_Discussion_Controller_XF2->execute()
      #6 src/addons/vw/vw/_core/controller/ui/page/vw.php(841): vw_UI_Page_Controller->do_comments(true)
      #7 src/addons/vw/vw/_core/controller/ui/page/vw.php(215): vw_UI_Page_Controller->comments()
      #8 src/addons/vw/vw/_core/controller/ui/stack/vw.php(294): vw_UI_Page_Controller->execute()
      #9 src/addons/vw/vw/Pub/Controller/Wiki/Wiki.php(80): vw_UI_Stack_Controller->execute()
      #10 src/addons/vw/vw/Mvc/Dispatcher.php(30): vw\vw\Pub\Controller\Wiki\Wiki->_actionIndex(Object(XF\Mvc\ParameterBag))
      #11 src/addons/vw/vw/Pub/Controller/Wiki/AbstractController.php(26): vw\vw\Mvc\Dispatcher::dispatch(Object(vw\vw\Pub\Controlle r\Wiki\Wiki), 'index', Object(XF\Mvc\ParameterBag))
      #12 src/XF/Mvc/Dispatcher.php(350): vw\vw\Pub\Controller\Wiki\AbstractController->actionIndex(Object(XF\Mvc\ParameterBag))
      #13 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('\\vw\\vw\\Pub\\Cont...', 'Index', Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Wiki), NULL)
      #14 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Wiki), NULL)
      #15 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #16 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
      #17 src/XF.php(391): XF\App->run()
      #18 index.php(20): XF::runApp('XF\\Pub\\App')
      #19 {main}
      Request state
      array(4) {
      ["url"] => string(34) "/Folklore/Kaska-Sample?do=comments"
      ["referrer"] => string(58) "https://chroniclesrp.net/Folklore/Kaska-Sample?do=comments"
      ["_GET"] => array(2) {
      ["/Folklore/Kaska-Sample"] => string(0) ""
      ["do"] => string(8) "comments"
      }
      ["_POST"] => array(12) {
      ["quickreply_html"] => string(11) "<p>Test</p>"
      ["do"] => string(8) "comments"
      ["action"] => string(11) "postcomment"
      ["fromquickreply"] => string(1) "1"
      ["attachment_hash"] => string(32) "4cb9c863b39901360c32d1b6791b985b"
      ["attachment_hash_combined"] => string(131) "{"type":"vwcomment","context":{"contentid":1566,"content typeid":1,"areaid":6,"userid":8},"hash":"4cb9c863b3990136 0c32d1b6791b985b"}"
      ["last_date"] => string(1) "0"
      ["last_known_date"] => string(10) "1582734613"
      ["_xfToken"] => string(8) "********"
      ["_xfRequestUri"] => string(34) "/Folklore/Kaska-Sample?do=comments"
      ["_xfWithData"] => string(1) "1"
      ["_xfResponseType"] => string(4) "json"
      }
      }
      Reply Reply  
    3. February 26, 2020 11:44 AM
      pegasus pegasus is offline
      VaultWiki Team
      That has been resolved as part of: https://www.vaultwiki.org/issues/5970/
      Which is a bundle of undefined index errors (the error messages may be slightly different in PHP 7.4).

      Under PHP 7.4, we expect that a lot more of these will be found. It seems like PHP 7.4 is a lot more strict when it comes to missing indexes than previous PHPs were.
      Reply Reply  
    4. February 26, 2020 12:33 PM
      expanserpb expanserpb is offline
      Junior Member
      Yes I'm on 7.3 for clarity.
      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 2:36 PM.
    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.