• 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 with php 7.4.2 and VW 4.1 Beta 4 Build 5

    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 with php 7.4.2 and VW 4.1 Beta 4 Build 5

    • Issue Tools
      • View Changes
    1. issueid=5949 February 5, 2020 8:26 PM
      gerryvz gerryvz is offline
      New Member
      Error with php 7.4.2 and VW 4.1 Beta 4 Build 5
      Server error after upgrading form php 7.3.14 to 7.4.2

      Received this server error below, after moving to php 7.4.2. I reverted back to 7.3.14.

      Using XenForo 2.1.7.



      ErrorException: [E_NOTICE] Trying to access array offset on value of type null src/addons/vw/vw/_core/model/permissions/vw.php:1578

      Generated by: ahmat19 Feb 5, 2020 at 8:11 PM

      Stack trace

      #0 src/addons/vw/vw/_core/model/permissions/vw.php(1578): XF::handlePhpError()
      #1 src/addons/vw/vw/_core/model/permissions/vw.php(144): vw_Permissions_Model->is_vw_type()
      #2 src/addons/vw/vw/_core/controller/ui/discussion/vw.php(1450): vw_Permissions_Model->get()
      #3 src/addons/vw/vw/_core/view/ui/discussion/xf0.php(32): vw_UI_Discussion_Controller->reply_permissions()
      #4 src/addons/vw/vw/_core/view/ui/discussion/vw.php(678): vw_UI_Discussion_View_XF0->get_quick_reply()
      #5 src/addons/vw/vw/_core/view/reply/view/vw.php(48): vw_UI_Discussion_View->index()
      #6 src/addons/vw/vw/_core/view/reply/base/vw.php(134): vw_Reply_View_View->render_type()
      #7 src/addons/vw/vw/_core/view/ui/page/vw.php(266): vw_Reply_base_View->render()
      #8 src/addons/vw/vw/_core/view/ui/page/vw.php(92): vw_UI_Page_View->get_comments()
      #9 src/addons/vw/vw/_core/view/reply/view/vw.php(48): vw_UI_Page_View->view()
      #10 src/addons/vw/vw/_core/view/reply/base/vw.php(134): vw_Reply_View_View->render_type()
      #11 src/addons/vw/vw/_core/view/reply/stack/vw.php(44): vw_Reply_base_View->render()
      #12 src/addons/vw/vw/XF/Mvc/View.php(25): vw_Reply_Stack_View->render()
      #13 src/XF/Mvc/Renderer/AbstractRenderer.php(91): vw\vw\XF\Mvc\View->renderHtml()
      #14 src/XF/Mvc/Renderer/Html.php(45): XF\Mvc\Renderer\AbstractRenderer->renderViewObject()
      #15 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView()
      #16 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView()
      #17 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply()
      #18 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render()
      #19 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
      #20 src/XF.php(391): XF\App->run()
      #21 index.php(20): XF::runApp()
      #22 {main}

      Request state

      array(4) {
      ["url"] => string(13) "/forums/wiki/"
      ["referrer"] => string(61) "https://www.500eboard.co/forums/whats-new/posts/111903/page-2"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(0) {
      }
      }
    Issue Details
    Issue Number 5949
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Duplicate
    Priority 4 - Warnings / Script Errors
    Affected Version 4.1.0 Beta 4
    Fixed Version (none)
    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 5, 2020 10:56 PM
      pegasus pegasus is offline
      VaultWiki Team
      The earliest VaultWiki versions designed to be compatible with PHP 7.4 are:
      - 4.0.28
      - 4.1.0 RC 1

      Since you are using XenForo 2.1, we recommend upgrading to 4.1.0 RC 1, especially if you need PHP 7.4 support.
      Reply Reply  
    2. February 6, 2020 7:04 AM
      gerryvz gerryvz is offline
      New Member
      OK, thanks for the update. I hadn't seen 4.1.0 RC1 on the download section of this site at the time I posted this report. However, as of this morning, I am seeing it and have downloaded it. And I will send in a renewal before my license expires later this month.
      Reply Reply  
    3. February 6, 2020 7:51 AM
      gerryvz gerryvz is offline
      New Member
      I downloaded and installed RC 1 per the new download, and everything installed successfully. This is using php 7.3.14, on XenForo 2.1.7.

      Couple of things:

      First, I am not seeing the "Wiki" button in the top navigation bar, like I had with the previous versions. Wiki content is still available through another link I have down in the sub-forum list, but the "Wiki" button is not in the top nav bar like it used to be.

      Second, I had a BUNCH of these errors thrown when I accessed the Wiki:



      ErrorException: [E_NOTICE] Undefined index: pageid src/addons/vw/vw/_core/model/ui/tab/discussion/vw.php:45

      Generated by: gerryvz Feb 6, 2020 at 7:47 AM

      Stack trace

      #0 src/addons/vw/vw/_core/model/ui/tab/discussion/vw.php(45): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/var/www/html/5...', 45, Array)
      #1 src/addons/vw/vw/_core/model/ui/tab/discussion/vw.php(157): vw_UI_Tab_Discussion_Model->get_parent_node(Array)
      #2 src/addons/vw/vw/_core/model/ui/tab/vw.php(56): vw_UI_Tab_Discussion_Model->can_main_tab(Array, Array)
      #3 src/addons/vw/vw/_core/model/ui/vw.php(59): vw_UI_Tab_Model->check('can_main_tab', Array, Array)
      #4 src/addons/vw/vw/_core/controller/ui/discussion/vw.php(2564): vw_UI_Model->check('can_main_tab', Array)
      #5 src/addons/vw/vw/_core/controller/ui/discussion/vw.php(1418): vw_UI_Discussion_Controller->talk_permissions(false)
      #6 src/addons/vw/vw/_core/view/ui/discussion/xf0.php(32): vw_UI_Discussion_Controller->reply_permissions(false)
      #7 src/addons/vw/vw/_core/view/ui/discussion/vw.php(685): vw_UI_Discussion_View_XF0->get_quick_reply(Object(vw_UI_Discussion_Controller_XF2 ))
      #8 src/addons/vw/vw/_core/view/reply/view/vw.php(48): vw_UI_Discussion_View->index(Array)
      #9 src/addons/vw/vw/_core/view/reply/base/vw.php(134): vw_Reply_View_View->render_type('html')
      #10 src/addons/vw/vw/_core/view/ui/page/vw.php(288): vw_Reply_base_View->render('html')
      #11 src/addons/vw/vw/_core/view/ui/page/vw.php(114): vw_UI_Page_View->get_comments(Array)
      #12 src/addons/vw/vw/_core/view/reply/view/vw.php(48): vw_UI_Page_View->view(Array)
      #13 src/addons/vw/vw/_core/view/reply/base/vw.php(134): vw_Reply_View_View->render_type('html')
      #14 src/addons/vw/vw/_core/view/reply/stack/vw.php(44): vw_Reply_base_View->render('html')
      #15 src/addons/vw/vw/XF/Mvc/View.php(25): vw_Reply_Stack_View->render('html')
      #16 src/XF/Mvc/Renderer/AbstractRenderer.php(91): vw\vw\XF\Mvc\View->renderHtml()
      #17 src/XF/Mvc/Renderer/Html.php(45): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('vw\\vw:Wiki', 'public:vw_gener...', Array)
      #18 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('vw\\vw:Wiki', 'public:vw_gener...', Array)
      #19 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
      #20 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
      #21 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
      #22 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
      #23 src/XF.php(391): XF\App->run()
      #24 index.php(20): XF::runApp('XF\\Pub\\App')
      #25 {main}

      Request state

      array(4) {
      ["url"] => string(34) "/forums/wiki/?title=500E-E500-Wiki"
      ["referrer"] => string(32) "https://www.500eboard.co/forums/"
      ["_GET"] => array(1) {
      ["title"] => string(14) "500E-E500-Wiki"
      }
      ["_POST"] => array(0) {
      }
      }
      Reply Reply  
    4. February 6, 2020 10:23 AM
      pegasus pegasus is offline
      VaultWiki Team
      For the discussion messages, please make the following edit to src/addons/vw/vw/_core/model/ui/tab/discussion/vw.php. Find:
      Code:
      if ($contenttypeid == $pagetypeid AND !empty($item['areaid']) AND $item['pageid'] == $item['areaid'])
      Replace with:
      Code:
      if ($contenttypeid == $pagetypeid AND !empty($item['areaid']) AND $contentid == $item['areaid'])
      As for the wiki tab not appearing, I didn't have that issue on any of the sites I upgraded, but if you can still access the wiki then perhaps the tab got disabled. Check AdminCP > Setup > Public navigation.
      It is also possible that the wiki was disabled in Setup > Options > VaultWiki: Site config > Wiki active now or recently. In this case, if it is not already active, do so now. Then run the following MySQL query:
      Code:
      TRUNCATE TABLE vw_cache
      Reply Reply  
    5. February 6, 2020 11:38 AM
      gerryvz gerryvz is offline
      New Member
      I did all of the above -- edited the file.

      Then checked the Public Nav page in the AdminCP, as well as the Site Config->Wiki in Setup.

      All were checked/enabled.

      Performed the MySQL query.

      All is good now. Wiki button appears in top nav bar. No errors generated upon accessing the Wiki. It appears that everything is OK.
      Reply Reply  
    6. February 6, 2020 5:16 PM
      gerryvz gerryvz is offline
      New Member
      Another error received, just one time though. Appears to be VW related?:



      ErrorException: [E_WARNING] explode() expects parameter 2 to be string, array given src/XF/Mvc/Entity/ValueFormatter.php:42

      Generated by: Maxxximus Feb 6, 2020 at 3:37 PM

      Stack trace

      #0 [internal function]: XF::handlePhpError(2, '[E_WARNING] exp...', '/var/www/html/5...', 42, Array)
      #1 src/XF/Mvc/Entity/ValueFormatter.php(42): explode(',', Array)
      #2 src/XF/Mvc/Entity/ValueFormatter.php(59): XF\Mvc\Entity\ValueFormatter->decodeValueFromSource(65554, Array)
      #3 src/XF/Mvc/Entity/Manager.php(764): XF\Mvc\Entity\ValueFormatter->decodeValueFromSourceExtended(65554, Array, Array)
      #4 src/XF/Mvc/Entity/Entity.php(225): XF\Mvc\Entity\Manager->decodeValueFromSourceExtended(65554, Array, Array)
      #5 src/XF/Mvc/Entity/Entity.php(171): XF\Mvc\Entity\Entity->getValue('secondary_group...')
      #6 src/XF/Mvc/Entity/Entity.php(509): XF\Mvc\Entity\Entity->get('secondary_group...')
      #7 src/addons/vw/vw/_core/controller/fetch/user/xf2.php(122): XF\Mvc\Entity\Entity->toArray()
      #8 src/addons/vw/vw/_core/controller/fetch/user/vw.php(30): vw_Fetch_User_Controller_XF2->process_row(Object(SV\ElasticSearchEssentials\XF\Entity\ User))
      #9 src/addons/vw/vw/_core/controller/fetch/vw.php(541): vw_Fetch_User_Controller->query(Object(vw_Fetch_Controller), Array, false)
      #10 src/addons/vw/vw/_core/controller/fetch/vw.php(390): vw_Fetch_Controller->query(Array, Array, false)
      #11 src/addons/vw/vw/_core/view/ui/comment/vw.php(629): vw_Fetch_Controller->get('User', Array)
      #12 src/addons/vw/vw/_core/view/ui/discussion/vw.php(671): vw_UI_Comment_View->get_commentbits(Object(vw_UI_Discussion_View_XF2), Array)
      #13 src/addons/vw/vw/_core/view/reply/view/vw.php(48): vw_UI_Discussion_View->index(Array)
      #14 src/addons/vw/vw/_core/view/reply/base/vw.php(134): vw_Reply_View_View->render_type('html')
      #15 src/addons/vw/vw/_core/view/ui/page/vw.php(288): vw_Reply_base_View->render('html')
      #16 src/addons/vw/vw/_core/view/ui/page/vw.php(114): vw_UI_Page_View->get_comments(Array)
      #17 src/addons/vw/vw/_core/view/reply/view/vw.php(48): vw_UI_Page_View->view(Array)
      #18 src/addons/vw/vw/_core/view/reply/base/vw.php(134): vw_Reply_View_View->render_type('html')
      #19 src/addons/vw/vw/_core/view/reply/stack/vw.php(44): vw_Reply_base_View->render('html')
      #20 src/addons/vw/vw/XF/Mvc/View.php(25): vw_Reply_Stack_View->render('html')
      #21 src/XF/Mvc/Renderer/AbstractRenderer.php(91): vw\vw\XF\Mvc\View->renderHtml()
      #22 src/XF/Mvc/Renderer/Html.php(45): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('vw\\vw:Wiki', 'public:vw_gener...', Array)
      #23 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('vw\\vw:Wiki', 'public:vw_gener...', Array)
      #24 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
      #25 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
      #26 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
      #27 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
      #28 src/XF.php(391): XF\App->run()
      #29 index.php(20): XF::runApp('XF\\Pub\\App')
      #30 {main}

      Request state

      array(4) {
      ["url"] => string(71) "/forums/wiki/?title=Factory-Printed-Publications-for-the-124-036-Models"
      ["referrer"] => string(58) "https://www.500eboard.co/forums/wiki/?title=500E-E500-Wiki"
      ["_GET"] => array(1) {
      ["title"] => string(51) "Factory-Printed-Publications-for-the-124-036-Models"
      }
      ["_POST"] => array(0) {
      }
      }
      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:39 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.