• 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
    • Missing tables after importing xml - can´t install.

    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: Missing tables after importing xml - can´t install.

    • Issue Tools
      • View Changes
    1. issueid=4669 June 1, 2016 8:59 AM
      Marv Marv is offline
      Junior Member
      Missing tables after importing xml - can´t install.

      I´ve bought a license somehow a decade ago and never could get this addon to work in my old vb. Now I´m on XF and thought, give it a 2nd shot. Unfortunal it was a short flight by now. Followed the install instructions step by step and after importing the install.xml this happens when I click on the wiki tab to start the install script:


      Help appreciated.
    Issue Details
    Issue Number 4669
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.11
    Fixed Version 4.0.11
    Milestone (none)
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags database, error, install


    Page 1 of 2 12 Next LastLast


    1. June 1, 2016 9:36 AM
      pegasus pegasus is offline
      VaultWiki Team
      Please manually navigate to admin.php?wiki/install and let me know if the issue persists.
      Reply Reply
    2. June 1, 2016 9:59 AM
      pegasus pegasus is offline
      VaultWiki Team
      If you still receive the error when accessing the installer directly via that URL, the fastest way to resolve this issue for now will be to edit vault/core/model/encode/vw.php. Find:
      Code:
      	public function url($url)
      	{
      		$out = '';
      
      		$parts = explode('?', $url, 2);
      		$path = array_shift($parts);
      		$query = array_pop($parts);
      
      		if ($path)
      		{
      			$prot = explode('//', $path, 2);
      
      			if (isset($prot[1]))
      			{
      				if ($prot[0] AND strpos($prot[0], '/') !== false)
      				{
      					$prot[1] = $prot[0] . $prot[1];
      					$prot[0] = '';
      				}
      
      				$out .= preg_replace('#[^a-z0-9]#i', '', $prot[0]) . '://';
      			}
      
      			$realpath = array_pop($prot);
      
      			if ($realpath)
      			{
      				$dirs = explode('/', $realpath);
      				$encpath = '';
      
      				foreach ($dirs AS $dir)
      				{
      					$encpath .= '/';
      					$hbts = explode('.', $dir);
      					$hbtpath = '';
      
      					foreach ($hbts AS $hbt)
      					{
      						$hbtpath .= '.' . $this->encode($hbt);
      					}
      
      					$encpath .= substr($hbtpath, 1);
      				}
      
      				$out .= substr($encpath, 1);
      			}
      		}
      
      		if ($query)
      		{
      			$vars = explode('&', $query);
      			$encquery = '';
      			$out .= '?';
      
      			foreach ($vars AS $var)
      			{
      				$varbits = explode('=', $var, 2);
      				$encquery .= '&' . $this->encode($varbits[0]);
      
      				if (isset($varbits[1]))
      				{
      					$encquery .= '=' . $this->encode($varbits[1]);
      				}
      			}
      
      			$out .= substr($encquery, 1);
      		}
      
      		return $out;
      	}
      Replace it with:
      Code:
      	public function url($url)
      	{
      		$out = '';
      
      		$parts = explode('?', $url, 2);
      		$path = array_shift($parts);
      		$query = array_pop($parts);
      
      		if ($path)
      		{
      			$prot = explode('//', $path, 2);
      
      			if (isset($prot[1]))
      			{
      				if ($prot[0] AND strpos($prot[0], '/') !== false)
      				{
      					$prot[1] = $prot[0] . $prot[1];
      					$prot[0] = '';
      				}
      
      				$out .= preg_replace('#[^a-z0-9]#i', '', $prot[0]) . '://';
      			}
      
      			$realpath = array_pop($prot);
      
      			if ($realpath)
      			{
      				$dirs = explode('/', $realpath);
      				$encpath = '';
      
      				foreach ($dirs AS $dir)
      				{
      					$encpath .= '/';
      					$hbts = explode('.', $dir);
      					$hbtpath = '';
      
      					foreach ($hbts AS $hbt)
      					{
      						$hbtpath .= '.' . urlencode($hbt);
      					}
      
      					$encpath .= substr($hbtpath, 1);
      				}
      
      				$out .= substr($encpath, 1);
      			}
      		}
      
      		if ($query)
      		{
      			$vars = explode('&', $query);
      			$encquery = '';
      			$out .= '?';
      
      			foreach ($vars AS $var)
      			{
      				$varbits = explode('=', $var, 2);
      				$encquery .= '&' . urlencode($varbits[0]);
      
      				if (isset($varbits[1]))
      				{
      					$encquery .= '=' . urlencode($varbits[1]);
      				}
      			}
      
      			$out .= substr($encquery, 1);
      		}
      
      		return $out;
      	}
      I will update the ZIP with this change this morning.
      Reply Reply
    3. June 1, 2016 10:49 AM
      pegasus pegasus is offline
      VaultWiki Team
      Yes, the hotfix should correct the errors you posted.
      Reply Reply
    4. June 1, 2016 10:58 AM
      Marv Marv is offline
      Junior Member
      Okay, seems the new code is working for now. I´ll get back to you when (or if) I find something new. Thanks for now!
      Reply Reply
    5. June 1, 2016 11:04 AM
      Marv Marv is offline
      Junior Member
      don´t wanna stress it, but automode has hang up at 35%. Manual mode has this surprise in step 10:
      Code:
      Fatal error: Call to undefined method vw_Install_View_XF::print_radio_row() in /var/www/vhosts/myhost/httpdocs/vault/install/lib/full/steps/xf.php on line 411
      Can´t install further on, as there is no NEXT button. Of course. Fatal means fatal

      Any hints?
      Reply Reply
    6. June 1, 2016 11:12 AM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/view/install/vw.php, find:
      Code:
      	public function print_submit_row($phrase, $cancel = '', $cancel_url = '')
      Before it, add:
      Code:
      	public function print_radio_row($phrase, $description, $name, $value)
      	{
      		return vw_Hard_Core::view('CP')->print_radio_row($phrase, $description, $name, $value);
      	}
      Reply Reply
    7. June 1, 2016 11:14 AM
      Marv Marv is offline
      Junior Member
      WILCO - better you stay on the keyboard as I may come back for more
      Hang on.
      Reply Reply
    8. June 1, 2016 11:19 AM
      Marv Marv is offline
      Junior Member
      Here I am again. I was going back to automode and let it run. Next issue came up on step 12:

      Code:
      Step 12
      
      Importing forum languages as wiki languages
      
      Illegal string offset 'varname'
      
          vw_CP_Progress_View->handle_php_error() in vault/core/model/settings/xf.php at line 207
          vw_Settings_Model_XF->create() in vault/install/lib/full/steps/xf.php at line 550
          vw_Install_Full_Steps_Controller_XF->{closure}() in vault/core/controller/progress/steps/vw.php at line 76
          vw_Progress_Steps_Controller->call() in vault/core/controller/progress/steps/vw.php at line 49
          vw_Progress_Steps_Controller->execute() in vault/install/lib/full/steps/vw.php at line 243
          vw_Install_Full_Steps_Controller->execute() in vault/core/controller/progress/vw.php at line 92
          vw_Progress_Controller->exec_script() in vault/core/controller/progress/vw.php at line 74
          vw_Progress_Controller->execute() in vault/core/controller/cp/progress/vw.php at line 34
          vw_CP_Progress_Controller->process() in vault/core/controller/cp/install/vw.php at line 258
          vw_CP_Install_Controller->install() in vault/core/controller/cp/install/vw.php at line 62
      Your call
      Reply Reply
    9. June 1, 2016 11:30 AM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/install/lib/full/steps/xf.php, find:
      Code:
      				vw_Hard_Core::model('Settings')->create(array(
      					'varname' => 'vw_languageid',
      					'value' => intval($wikidefaultid)
      				));
      Replace with:
      Code:
      				vw_Hard_Core::model('Settings')->create(array(array(
      					'varname' => 'vw_languageid',
      					'value' => intval($wikidefaultid)
      				)));
      Reply Reply
    10. June 1, 2016 11:44 AM
      Marv Marv is offline
      Junior Member
      The installer seems to be okay now, has run through without further errors. But you should check the
      Warning

      The vault/core/controller/install directory has not yet been removed from the file system. You MUST remove this directory prior to any future upgrade to prevent conflicts with the new directory contents.
      The directory is already removed and it´s still saying I have to remove it.

      Thanks so far, I´ll setup the wiki now and hopefully I don´t find anymore cliffs
      Reply Reply
    11. June 1, 2016 11:59 AM
      pegasus pegasus is offline
      VaultWiki Team
      The text you have quoted does not exist in the ZIP you downloaded from us (I just downloaded your copy and checked it). Did you install a language pack? If so, the language pack is outdated.

      The directory you need to remove is vault/install/lib. The vault/core/controller/install directory should not be removed, but you will not need it again until you want to upgrade.
      Reply Reply
    12. June 1, 2016 12:14 PM
      Marv Marv is offline
      Junior Member
      Yep, I am using a language pack for version 4.08b3 so it´s outdated as you say. For that reason I´ld give otto from xen-hilfe.de a copy for translation, if this is okay for you. otto is translating addons nearly perfectly since years. May be you think over, to gift him a license when he has finished the translation
      Reply Reply
    13. June 7, 2016 5:33 AM
      Marv Marv is offline
      Junior Member
      May be you have missed my private follow-up post, Pegasus. Could you assist me with that please, as we are planning to go live in about 2 weeks and this wiki including the import has to be finished til then..
      Reply Reply
    14. June 7, 2016 10:02 AM
      pegasus pegasus is offline
      VaultWiki Team
      The error is saying that the importer cannot find MediaWiki's 'page' table based on the information you provided in vault/core/controller/import/config/vw.php. Make sure the correct database is named as a source. If there is a table prefix on your MediaWiki dump, make sure to specify it. If the information is correct, make sure the source is actually turned on (the 'on' field).

      If your MediaWiki installation really has no page table, then it is a really old version of MediaWiki (1.4 or lower) that our importer does not support. Update to a newer version of MediaWiki before dumping.

      The config file lets you specify which namespaces should be imported (near the bottom of the config file). If you set it appropriately, you should not have any empty spaces after the import.

      For VaultWiki to import your MediaWiki images, your old wiki's image data directory must first be placed on the same server as your VaultWiki installation. If your wiki image directory is currently on a different server, you must access that server via FTP or your preferred means, download the directory in full, and upload it to a location of your choosing on the new wiki server. Then you must specify the correct local path to the image-data directory in the config file.
      Reply Reply
    15. June 8, 2016 12:24 PM
      pegasus pegasus is offline
      VaultWiki Team
      What you are describing might be possible using the XML export that you have. Since your source is MediaWiki.org the images should be public over HTTP.

      However, even if you want us to perform the import, you will need to still do the following:
      1. Install MediaWiki on your server.
      2. Upload the wiki XML to your server's MediaWiki.
      3. Install VaultWiki on your forum. (as I think you did already)
      4. Order the "Import Service" (it is a different charge than Install) https://www.vaultwiki.org/members/?do=service
      5. Let us know where to find the list of images that you need from MediaWiki.org.
      Reply Reply
    Page 1 of 2 12 Next LastLast
    + 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 5: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.