• 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 3.x Series
    • Bug
    • upload image not working

    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: upload image not working

    • Issue Tools
      • View Changes
    1. issueid=2454 September 14, 2011 12:52 AM
      william william is offline
      New Member
      upload image not working

      Dear Sir,

      when I try to upload image(clicking manage attachment), I got the follow message:

      "
      you do not have permission to access this page. This could be due to one of several reasons:

      Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
      If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
      "


      I set .haccess and registered user can upload attachment.
      how to fix this issue?
    Issue Details
    Issue Number 2454
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Attachments
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 3.0.14
    Fixed Version 3.0.15
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. September 14, 2011 2:03 AM
      william william is offline
      New Member
      https://www.vaultwiki.org/threads/4937/

      I tried to disable content cache, but this method is not working for me.
      Reply Reply  
    2. September 14, 2011 2:46 AM
      pegasus pegasus is offline
      VaultWiki Team
      The method is not working for you, but do you have the same problem? I mean, you have the no-permission error, but does the URL contain a valid contenttypeid value or not?

      Check your wiki permissions and make sure that edits for registered users don't go into the moderation queue. Moderated users aren't allowed to post attachments. However, I think it's more likely that the content type ID is missing, since the permissions would be the same for the button and the popup as long as the ID is passed.

      If the contenttypeid is missing, and you've tried clearing the cache, disabling/re-enabling VaultWiki, and the ID is still missing check your database's 'contenttype' table for a VaultArticle entry. Let me know if you find it or not. Also, please specify your exact vBulletin and VaultWiki versions. vBulletin changed the attachment code in almost every point release since 4.1.0, and introduced new problems that needed to be addressed with new VaultWiki patches. If you're using 4.1.6 or higher, we won't be able to help right now, since we don't have access to the source code for unreleased versions.
      Reply Reply  
    3. September 14, 2011 1:17 PM
      william william is offline
      New Member
      In addition, I just installed ssl, but I am able to upload attachment in forum.
      Reply Reply  
    4. September 14, 2011 2:26 PM
      pegasus pegasus is offline
      VaultWiki Team
      Okay, confirmed and fixed. This occurs when attempting to add an attachment to a new wiki page (as opposed to editing an existing one).

      To fix, edit vault/plugins/newattachment.php. Find:
      Code:
      	if (
      		!$foruminfo['vault_type'] OR
      		(
      			!$postinfo OR
      			(
      				!$postinfo['attach'] AND
      				// if the post already has attachments, let us remove them
      				!$foruminfo['allowposting']
      			)
      		) OR
      		(
      			!$postinfo AND
      			// if the forum has been changed, allow us to add attachments on old articles
      			!$foruminfo['cancontainthreads']
      		)
      	)
      Replace with:
      Code:
      	if (
      		!$foruminfo['vault_type'] OR
      		(
      			$postinfo AND
      			!$postinfo['attach'] AND
      			// if the post already has attachments, let us remove them
      			!$foruminfo['allowposting']
      		) OR
      		(
      			!$postinfo AND
      			// if the forum has been changed, allow us to add attachments on old articles
      			!$foruminfo['cancontainthreads']
      		)
      	)
      Fixed in the current release (Build 002), but this bug necessitates a new release of VaultWiki if 4.0.0 is not released within a week (doubt it).
      Reply Reply  
    5. September 14, 2011 2:56 PM
      william william is offline
      New Member
      Pegasus, you are wonderful! Thanks a lot.
      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:02 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.