• 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
    • Physically Delete Page = Crash

    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: Physically Delete Page = Crash

    • Issue Tools
      • View Changes
    1. issueid=3705 April 21, 2014 10:15 AM
      Ptah Ptah is offline
      Junior Member
      Physically Delete Page = Crash
      Trying to physically delete a page results in errors, crash

      Create a page.
      Try to physically delete the page.
      Get a page with:

      Code:
      Warning: Illegal offset type in ..../vault/core/controller/dm/base/vw.php on line 534
      and
      Code:
      Database error in vBulletin 4.2.2:
      
      Invalid SQL:
      DELETE FROM `vw_subscribe` WHERE  `subscribeid` IN ()  LIMIT 0;
      
      MySQL Error   : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')  LIMIT 0' at line 1
      Error Number  : 1064
      Request Date  : Monday, April 21st 2014 @ 02:11:54 PM
      Error Date    : Monday, April 21st 2014 @ 02:11:55 PM
      Script        : [url]http://forums.intpcomplex.com/wiki_inlinemod.php?do=kill[/url]
      Referrer      : [url]http://forums.intpcomplex.com/wiki_index.php?title=Sandbox:Example&do=delete[/url]
      IP Address    : 71.201.229.147
      Username      : Ptah
      Classname     : vB_Database
      MySQL Version : 5.5.36-cll
      (Note: "soft" delete doesn't cause this)
    Issue Details
    Issue Number 3705
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Editing Pages
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.0 Gamma 5
    Fixed Version 4.0.0 Gamma 5
    Milestone VaultWiki 4 Gamma X
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 21, 2014 11:29 AM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/controller/dm/subscribe/vw.php, find:
      Code:
      public function delete_multiple($subscriptions)
      Add before:
      Code:
      	public function delete()
      	{
      		$existing = $this->instance->get_existing();
      
      		if ($existing)
      		{
      			$subscriptions = array(
      				$existing['subscribeid'] => $existing
      			);
      		}
      		else if ($this->instance->get_condition())
      		{
      			$subs = vw_DB::get()->query()->select(array(
      				'fields' => array('*'),
      				'table' => 'vw_subscribe',
      				'where' => $this->instance->get_condition()
      			));
      
      			$subscriptions = array();
      
      			while ($sub = vw_DB::get()->func()->fetch_array($subs))
      			{
      				$subscriptions[$sub['subscribeid']] = $sub;
      			}
      			vw_DB::get()->func()->free_result($subs);
      			unset($sub);
      		}
      
      		if empty($subscriptions)
      		{
      			return true;
      		}
      
      		return $this->delete_multiple($subscriptions);
      	}
      Reply Reply  
    2. April 21, 2014 11:29 AM
      Ptah Ptah is offline
      Junior Member
      FWIW: It seems it does actually delete the page, although it is crashing on the part about unsubscribing to it?

      edit: you ninja'ed me there, ok, thanks I'll give that a try.
      Reply Reply  
    3. April 21, 2014 11:34 AM
      Ptah Ptah is offline
      Junior Member
      Confirmed: that fixes it, 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 2:53 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 © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.