• 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
    • Incorrect decimal value: '' for column

    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: Incorrect decimal value: '' for column

    • Issue Tools
      • View Changes
    1. issueid=6003 March 30, 2020 10:02 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Incorrect decimal value: '' for column

      XenForo_Exception: Database Error: UPDATE `vw_revision` SET `ratingcount` = 1, `ratingavg` = '' WHERE revisionid = 440 LIMIT 1 Mysqli statement execute error : Incorrect decimal value: '' for column `xxx_xxx`.`vw_revision`.`ratingavg` at row 1 - library/vw/_core/controller/db/xf.php:185
      Generated By: Alfa, A moment ago

      Stack Trace
      #0 /library/vw/_core/controller/db/xf.php(169): vw_DB_Controller_XF->throw_error(Object(Zend_Db_Statement_Mysqli_Exception) , 'UPDATE `vw_rev...')
      #1 /library/vw/_core/model/db/mysql/vw.php(1339): vw_DB_Controller_XF->query_write('UPDATE `vw_rev...')
      #2 /library/vw/_core/model/db/mysql/vw.php(983): vw_DB_MySQL_Model->shutdown_or_run('UPDATE `vw_rev...', false)
      #3 /library/vw/_core/model/rating/vw.php(281): vw_DB_MySQL_Model->update(Array)
      #4 /library/vw/_install/lib/upgradepath/steps/4/1/0/rc/2/base/vw.php(1657): vw_Rating_Model->cache(Array, Array, NULL, 0)
      #5 /library/vw/_install/lib/upgradepath/steps/4/1/0/rc/2/base/vw.php(1082): vw_Install_UpgradePath_Steps_410rc2_base_Controller->build_rating_scores(Object(vw_Install_UpgradePath_Contro ller_XF), true, 'Revision')
      #6 /library/vw/_core/controller/progress/steps/vw.php(85): vw_Install_UpgradePath_Steps_410rc2_base_Controller->{closure}(Object(vw_Install_UpgradePath_Controller_XF) , true)
      #7 /library/vw/_core/controller/progress/steps/vw.php(56): vw_Progress_Steps_Controller->call(Object(vw_Install_UpgradePath_Controller_XF), Object(Closure))
      #8 /library/vw/_install/lib/upgradepath/vw.php(78): vw_Progress_Steps_Controller->execute(Object(vw_Install_UpgradePath_Controller_XF))
      #9 /library/vw/_core/controller/progress/vw.php(169): vw_Install_UpgradePath_Controller->exec_script(Array)
      #10 /library/vw/_core/view/response/progress/vw.php(27): vw_Progress_Controller->execute()
      #11 /library/vw/_core/view/response/progress/vw.php(63): vw_Response_Progress_View->stream()
      #12 /library/vw/XenForo/ViewAdmin.php(67): vw_Response_Progress_View->render()
      #13 /library/XenForo/ViewRenderer/Abstract.php(229): vw_XenForo_ViewAdmin->renderRaw()
      #14 /library/XenForo/ViewRenderer/Raw.php(53): XenForo_ViewRenderer_Abstract->renderViewObject('vw_XenForo_View...', 'Raw', Array, 'vw_general_view')
      #15 /library/XenForo/FrontController.php(624): XenForo_ViewRenderer_Raw->renderView('vw_XenForo_View...', Array, 'vw_general_view', NULL)
      #16 /library/XenForo/FrontController.php(176): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Raw), Array)
      #17 /admin.php(13): XenForo_FrontController->run()
      #18 {main}
      Request State
      array(3) {
      ["url"] => string(57) "admin.php?wiki/upgrade&progress=1"
      ["_GET"] => array(3) {
      ["wiki/upgrade"] => string(0) ""
      ["progress"] => string(1) "1"
      ["panel"] => string(7) "install"
      }
      ["_POST"] => array(4) {
      ["wiki/upgrade"] => string(0) ""
      ["progress"] => string(1) "1"
      ["_xfToken"] => string(8) "********"
      ["panel"] => string(7) "install"
      }
      }
    Issue Details
    Issue Number 6003
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.0 RC 2
    Fixed Version (none)
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. March 30, 2020 11:02 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next build. In library/vw/_core/controller/db/xf.php, find:
      Code:
      		$str = $this->get_instance()->quote($str);
      		$len = strlen($str);
      
      		return substr($str, 1, $len - 2);
      Replace with:
      Code:
      		$newstr = $this->get_instance()->quote($str);
      
      		if ($newstr == $str)
      		{
      			return $str;
      		}
      
      		$len = strlen($newstr);
      
      		return substr($newstr, 1, $len - 2);
      Reply Reply  
    2. March 31, 2020 7:19 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Thanks!
      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 1:02 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.