• 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
    • Deleting a attachment gives error

    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: Deleting a attachment gives error

    • Issue Tools
      • View Changes
    1. issueid=2989 March 28, 2013 12:43 AM
      delicateglow delicateglow is offline
      Junior Member
      Deleting a attachment gives error

      I was permanently/physically deleting an attachment then all of a sudden I get this error:
      Code:
      Fatal error: Call to a member function set_info() on a non-object in /var/www/vhosts/domain.net/httpdocs/vault/core/controller/dm/page/vw.php on line 1572
      Additionally, I backspaced, checked the area where the attachment was, and now it's called "Wiki" instead of it's named name. Clicking on it just leads to the page you were (the page where you clicked). So I have no idea how I'll delete those.

      EDIT: Confirming it's doing the same when deleting a category, but this time it gives me another error:
      Code:
      Warning: array_keys() expects parameter 1 to be array, integer given in [path]/vault/core/controller/dm/category/vw.php on line 85
      
      Warning: Invalid argument supplied for foreach() in [path]/vault/core/controller/dm/category/vw.php on line 90
      As well as a Database error
      Code:
      Database error in vBulletin 4.1.10:
      
      Invalid SQL:
      SELECT * FROM `vw_categoryitem` WHERE  `itemcategoryid` IN ();
      
      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 ')' at line 1
      Error Number  : 1064
      Request Date  : Thursday, March 28th 2013 @ 12:56:37 AM
      Error Date    : Thursday, March 28th 2013 @ 12:56:38 AM
      Script        : http://leafre.net/wiki_inlinemod.php?do=kill
      Referrer      : http://leafre.net/wiki/classes/category?do=delete

      For deleting book:
      Code:
      Warning: array_keys() expects parameter 1 to be array, integer given in [path]/vault/core/controller/dm/book/vw.php on line 98
      
      Warning: Invalid argument supplied for foreach() in [path]/vault/core/controller/dm/book/vw.php on line 103
      Code:
      Database error in vBulletin 4.1.10:
      
      Invalid SQL:
      SELECT * FROM `vw_chapter` WHERE  `itembookid` IN ();
      
      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 ')' at line 1
      Error Number  : 1064
      Request Date  : Thursday, March 28th 2013 @ 12:58:48 AM
      Error Date    : Thursday, March 28th 2013 @ 12:58:49 AM
      A wiki page
      Code:
      Invalid SQL:
      UPDATE `vw_counter` SET `pagecount` =  CASE `pageid` 
      		 WHEN  THEN pagecount - 1 
      	 END  WHERE  `pageid` IN ();
      
      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 'THEN pagecount - 1 
      	 END  WHERE  `pageid` IN ()' at line 2
      Error Number  : 1064
      Also, while I was checking for Database errors, this happens when attempting to create a social group:
      Code:
      Database error in vBulletin 4.1.10:
      
      Invalid SQL:
      SELECT  IF(`sub`.`userid`, 1, 0)  AS `issubscribed`,`mk`.`readtime`,`pi`.*,`gi`.*,`l`.*,`ch`.*,`c`.*,`r`.*,`r`.`dateline` AS `edit_dateline`,`r`.`flags` + 0 AS `flags`,`i`.*,`page`.*,`page`.`pageid`,`group`.*,`group`.`pageid` FROM `vw_group` `group`  LEFT JOIN `vw_page` `page` ON (`page`.`pageid` = `group`.`pageid`) 
       LEFT JOIN `vw_route` `i` ON (`page`.`pageid` = `i`.`itemid` AND `i`.`itemtypeid` = 1) 
       LEFT JOIN `vw_counter` `c` ON (`c`.`pageid` = `page`.`pageid`) 
       LEFT JOIN `vw_revision` `r` ON (`r`.`revisionid` = `page`.`revisionid`) 
       LEFT JOIN `vw_chapter` `ch` ON (`page`.`pageid` = `ch`.`pageid`) 
       LEFT JOIN `vw_langitem` `l` ON (`page`.`pageid` = `l`.`pageid`) 
       LEFT JOIN `vw_groupitem` `gi` ON (`page`.`pageid` = `gi`.`pageid`) 
       LEFT JOIN `vw_pollitem` `pi` ON (`page`.`pageid` = `pi`.`pageid`) 
       LEFT JOIN `vw_markread` `mk` ON (`mk`.`itemtypeid` = 1 AND `mk`.`itemid` = `page`.`pageid` AND `mk`.`userid` = 3) 
       LEFT JOIN `vw_subscribe` `sub` ON (`sub`.`nodetypeid` = 1 AND `sub`.`nodeid` = `page`.`pageid` AND `sub`.`userid` = 3)   WHERE `group`.`groupid` =;
      
      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 '' at line 10
      Error Number  : 1064
    Issue Details
    Issue Number 2989
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Wiki Groups
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.0 Alpha 2
    Fixed Version 4.0.0 Alpha 3
    Milestone VaultWiki 4 Alpha 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. March 28, 2013 10:39 AM
      pegasus pegasus is offline
      VaultWiki Team
      Yes, deleting things has been very unstable in these Alphas. We are hoping Alpha 3 will make it better for the users that had problems, since we got rid of more stepping-into infinite loops that happened during deletes. Let me ask that you please don't delete any more wiki content until Alpha 3, every failed delete leaves garbage data in your database that you don't really need there and it may cause problems later.

      I haven't seen the social group creation one before though, so I will have to look at that.
      Reply Reply  
    2. March 29, 2013 2:19 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed the group creation issue.
      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 4:01 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.