• 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
    • images not shown after upgrade to 4.0.9

    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: images not shown after upgrade to 4.0.9

    • Issue Tools
      • View Changes
    1. issueid=4561 March 2, 2016 3:54 AM
      hollosch hollosch is offline
      Senior Member
      images not shown after upgrade to 4.0.9

      After upgrade to 4.0.9 no images are shown on the wiki-pages:

      e,g,: http://regio-portal.wiki/wiki/Stadtwiki_Geislingen
    Issue Details
    Issue Number 4561
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.0.9
    Fixed Version 4.0.9
    Milestone (none)
    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 2, 2016 12:32 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed. It turned out an expected leading space was missing from vw_route records for attachments that were either created or edited after version 4.0.4. Please do the following:
      1. Download the ZIP again, and re-upload the fixed files to your server.
      2. Run the following MySQL query:
        Code:
        UPDATE vw_upgradelog SET version = '4.0.9 Beta 1' WHERE upgradetype = 'C'
      3. Visit the upgrade script and run the upgrade again.
      Reply Reply
    2. March 2, 2016 6:23 PM
      hollosch hollosch is offline
      Senior Member
      thx a lot !
      Reply Reply
    3. March 2, 2016 6:43 PM
      hollosch hollosch is offline
      Senior Member
      Hi,
      why the image on this page is not shown?
      http://regio-portal.wiki/wiki/Martina_Brandl

      And there is also no pageview-count...
      Reply Reply
    4. March 3, 2016 10:41 AM
      pegasus pegasus is offline
      VaultWiki Team
      That occurs when you edit the text of an image page, without uploading the image at the same time.

      In vault/core/controller/ui/edit/page/vw.php, find:
      Code:
      $edit['minor'] = $input->get('minor');
      After it, add:
      Code:
      		if (!empty($edit['add_meta']))
      		{
      			foreach ($edit['add_meta'] AS $meta)
      			{
      				$pagedm->add_meta($meta);
      			}
      		}
      In vault/core/controller/ui/edit/attach/vw.php, find:
      Code:
      		$caller->item['skip_dm'] = 'Attach';
      		$edit['add_types'][] = 'Attach';
      Before it, add:
      Code:
      		$input = vw_Hard_Core::controller('Input');
      
      		$input->clean_array_gpc('p', array(
      			'attachfileid' => 'UINT',
      			'filehash' => 'NOHTML'
      		));
      
      		$filedataid = $input->get('attachfileid');
      		$filehash = $input->get('filehash');
      
      		$edit['filedataid'] = 0;
      		$edit['filedatahash'] = '';
      		$edit['filedatasize'] = 0;
      		$edit['filedatamime'] = '';
      
      		if ($filedataid AND (empty($orig['attachfileid']) OR $orig['attachfileid'] != $filedataid))
      		{
      			$file = vw_DB::get()->query()->select(array(
      				'fields' => array(
      					'attachfileid',
      					'filesize',
      					'extension'
      				),
      				'table' => 'vw_attachmentfile',
      				'where' => vw_DB::get()->query()->eq('filehash', "'" . vw_DB::get()->func()->escape_string($filehash) . "'"),
      				'order' => array('dateline' => 'DESC'),
      				'first' => 1
      			));
      
      			if ($file AND $file['attachfileid'] == $filedataid)
      			{
      				// set a key that doesn't normally exist so it's unique for this action
      				$edit['filedataid'] = $filedataid;
      				$edit['filedatahash'] = $filehash;
      				$edit['filedatasize'] = $file['filesize'];
      				$edit['filedatamime'] = $file['extension'];
      			}
      		}
      
      		if (empty($edit['filedataid']) AND !empty($orig['attachfileid']))
      		{
      			$edit['add_meta'][] = 'file_' . $orig['extension'];
      		}
      Find:
      Code:
      		$input = vw_Hard_Core::controller('Input');
      
      		$input->clean_array_gpc('p', array(
      			'attachfileid' => 'UINT',
      			'filehash' => 'NOHTML'
      		));
      
      		if (array_key_exists('has_pending_file', $orig) AND $orig['has_pending_file'] !== null)
      		{
      			$caller->errorlist[] = vw_Hard_Core::view('Phrase')->get('vw_file_moderated');
      			return;
      		}
      
      		$filedataid = $input->get('attachfileid');
      		$filehash = $input->get('filehash');
      
      		$edit['filedataid'] = 0;
      		$edit['filedatahash'] = '';
      		$edit['filedatasize'] = 0;
      		$edit['filedatamime'] = '';
      
      		if ($filedataid AND (empty($orig['attachfileid']) OR $orig['attachfileid'] != $filedataid))
      		{
      			$file = vw_DB::get()->query()->select(array(
      				'fields' => array(
      					'attachfileid',
      					'filesize',
      					'extension'
      				),
      				'table' => 'vw_attachmentfile',
      				'where' => vw_DB::get()->query()->eq('filehash', "'" . vw_DB::get()->func()->escape_string($filehash) . "'"),
      				'order' => array('dateline' => 'DESC'),
      				'first' => 1
      			));
      
      			if ($file AND $file['attachfileid'] == $filedataid)
      			{
      				// set a key that doesn't normally exist so it's unique for this action
      				$edit['filedataid'] = $filedataid;
      				$edit['filedatahash'] = $filehash;
      				$edit['filedatasize'] = $file['filesize'];
      				$edit['filedatamime'] = $file['extension'];
      			}
      		}
      Replace with:
      Code:
      		if (array_key_exists('has_pending_file', $orig) AND $orig['has_pending_file'] !== null)
      		{
      			$caller->errorlist[] = vw_Hard_Core::view('Phrase')->get('vw_file_moderated');
      			return;
      		}
      Afterwards:
      1. Edit the text of the image again to fix the image metadata.
      2. Use AdminCP > Wiki > Maintenance > Rebuild Counters / Caches > Cache Parsed Content.
      Reply Reply
    5. March 3, 2016 10:54 AM
      hollosch hollosch is offline
      Senior Member
      thx!
      Reply Reply
    6. This petition for a change to Unconfirmed was accepted
      March 7, 2016 4:42 PM
      hollosch hollosch is offline
      Senior Member
      Hi, same problem here on new page:
      http://regio-portal.wiki/wiki/Peter_Hofelich
    7. March 8, 2016 9:46 AM
      pegasus pegasus is offline
      VaultWiki Team
      Should be fixed again. It affected new images and edits of images that don't have descriptions too. Like before, you will need to edit the image-page of an image that isn't working. This will rebuild the data for that image.
      Reply Reply
    8. March 8, 2016 11:52 AM
      hollosch hollosch is offline
      Senior Member
      don't know why this error comes again...
      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 12:27 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 © 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.