Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Dashboard resets our changes - Users unable to edit their posts

Old discussion of similar issue, unresolved and outdated = http://vanillaforums.org/discussion/27605/authors-can-not-edit-messages
This issue happens across all platforms. We are using Vanilla 2.1.10

Issue: Our users are unable to edit their own posts. We want to change that setting.

  1. In the Dashboard, we go to Forums>Advanced. We then set Discussion and Comment Editing to "Authors may always edit." We click save.
  2. The users have no edit button on their posts within the thread.

  1. If the user browses the discussions, there is an edit button on the entire discussion. This should only be there for administrators and moderators.

  1. When the user attempts to edit this way, they are brought to a "Page Not Found" page.

  1. When you exit the dashboard and return, the change in the setting has reverted to "Authors may never edit".

I only know basic HTML/CSS. If you have a solution more complicated than that, please include step by step instructions. Thank you very much for your help.

Comments

  • Options
    hgtonighthgtonight ∞ · New Moderator

    Please confirm the line $Configuration['Garden']['EditContentTimeout'] in your /conf/config.php file.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options
    edited July 2015

    Hi @hgtonight! @tatortodd22 and I are working on this problem together.

    The config.php reads $Configuration['Garden']['EditContentTimeout'] = '-1';

    We cannot change the setting in the Dashboard, and if we try to hard-code a time into the config.php, it doesn't help.

    We installed via GoDaddy at 2.0.8 and manually upgraded to 2.1.10 (following all the steps provided by vanilla).

    We really want to avoid doing a re-install as the community is already active (and I believe this problem would just manifest itself again when we upgrade).

    Before you ask, it's not a plugins problem, as this occurs when all are disabled.

    I read another forum post in which someone said it could be a caching issue, but no remedial steps were given.

    Here are the contents of our config.php

    <?php if (!defined('APPLICATION')) exit();
    
    // Conversations
    $Configuration['Conversations']['Version'] = '2.1.10';
    
    // Database
    $Configuration['Database']['Name'] = '*****************';
    $Configuration['Database']['Host'] = '*****************';
    $Configuration['Database']['User'] = '*****************';
    $Configuration['Database']['Password'] = '*****************';
    
    // EnabledApplications
    $Configuration['EnabledApplications']['Conversations'] = 'conversations';
    $Configuration['EnabledApplications']['Vanilla'] = 'vanilla';
    $Configuration['EnabledApplications']['Yaga'] = 'yaga';
    
    // EnabledPlugins
    $Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed';
    $Configuration['EnabledPlugins']['Facebook'] = TRUE;
    $Configuration['EnabledPlugins']['Twitter'] = TRUE;
    $Configuration['EnabledPlugins']['BulkEdit'] = TRUE;
    $Configuration['EnabledPlugins']['BulkInvite'] = TRUE;
    $Configuration['EnabledPlugins']['DiscussionPolls'] = TRUE;
    $Configuration['EnabledPlugins']['Emotify'] = TRUE;
    $Configuration['EnabledPlugins']['Flagging'] = TRUE;
    $Configuration['EnabledPlugins']['Gravatar'] = TRUE;
    $Configuration['EnabledPlugins']['VanillaInThisDiscussion'] = TRUE;
    $Configuration['EnabledPlugins']['ProfileExtender'] = TRUE;
    $Configuration['EnabledPlugins']['Quotes'] = TRUE;
    $Configuration['EnabledPlugins']['Signatures'] = TRUE;
    $Configuration['EnabledPlugins']['SplitMerge'] = TRUE;
    $Configuration['EnabledPlugins']['VanillaStats'] = TRUE;
    $Configuration['EnabledPlugins']['cleditor'] = TRUE;
    $Configuration['EnabledPlugins']['YagaRankInMeta'] = TRUE;
    $Configuration['EnabledPlugins']['YagaFeaturedBadges'] = TRUE;
    $Configuration['EnabledPlugins']['YagaUnawardBadge'] = TRUE;
    $Configuration['EnabledPlugins']['MentionsLookup'] = TRUE;
    
    // Garden
    $Configuration['Garden']['Title'] = 'The Hive';
    $Configuration['Garden']['Cookie']['Salt'] = '*******';
    $Configuration['Garden']['Cookie']['Domain'] = '';
    $Configuration['Garden']['Registration']['ConfirmEmail'] = '1';
    $Configuration['Garden']['Registration']['Method'] = 'Invitation';
    $Configuration['Garden']['Registration']['CaptchaPrivateKey'] = '*******';
    $Configuration['Garden']['Registration']['CaptchaPublicKey'] = '*******';
    $Configuration['Garden']['Registration']['InviteExpiration'] = '-1 week';
    $Configuration['Garden']['Registration']['InviteRoles']['3'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['4'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['8'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['16'] = '-1';
    $Configuration['Garden']['Registration']['InviteRoles']['32'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['33'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['34'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['35'] = '0';
    $Configuration['Garden']['Registration']['ConfirmEmailRole'] = '4';
    $Configuration['Garden']['Registration']['SendConnectEmail'] = '1';
    $Configuration['Garden']['Registration']['DefaultRoles'] = array('34');
    $Configuration['Garden']['Registration']['ApplicantRoleID'] = '4';
    $Configuration['Garden']['Email']['SupportName'] = 'The Hive';
    $Configuration['Garden']['Email']['SupportAddress'] = 'info@hivejump.com';
    $Configuration['Garden']['Email']['UseSmtp'] = FALSE;
    $Configuration['Garden']['Email']['SmtpHost'] = '';
    $Configuration['Garden']['Email']['SmtpUser'] = '';
    $Configuration['Garden']['Email']['SmtpPassword'] = '';
    $Configuration['Garden']['Email']['SmtpPort'] = '25';
    $Configuration['Garden']['Email']['SmtpSecurity'] = '';
    $Configuration['Garden']['Version'] = '2.1.10';
    $Configuration['Garden']['RewriteUrls'] = TRUE;
    $Configuration['Garden']['CanProcessImages'] = TRUE;
    $Configuration['Garden']['Installed'] = TRUE;
    $Configuration['Garden']['InputFormatter'] = 'Html';
    $Configuration['Garden']['Format']['Hashtags'] = FALSE;
    $Configuration['Garden']['InstallationID'] = '******';
    $Configuration['Garden']['InstallationSecret'] = '********';
    $Configuration['Garden']['Embed']['Allow'] = FALSE;
    $Configuration['Garden']['SystemUserID'] = '3';
    $Configuration['Garden']['Messages']['Cache'] = array('[Base]');
    $Configuration['Garden']['Theme'] = 'bootstrap';
    $Configuration['Garden']['EditContentTimeout'] = '5600';
    $Configuration['Garden']['HomepageTitle'] = 'The Hive';
    $Configuration['Garden']['Description'] = 'Community forum for the backers, fans, and developers of Hive Jump. Hive Jump is a sci-fi action platformer for 1-4 players blending run ‘n gun gameplay with strategic campaigns.';
    $Configuration['Garden']['FavIcon'] = 'favicon_be992620d23a09da.ico';
    $Configuration['Garden']['ShareImage'] = 'GQ4I7QN0CW5F.png';
    $Configuration['Garden']['ThemeOptions']['Name'] = 'Bootstrap';
    $Configuration['Garden']['ThemeOptions']['Styles']['Key'] = 'Darkly';
    $Configuration['Garden']['ThemeOptions']['Styles']['Value'] = '%s_darkly';
    $Configuration['Garden']['Html']['SafeStyles'] = FALSE;
    $Configuration['Garden']['SignIn']['Popup'] = FALSE;
    
    // Plugins
    $Configuration['Plugins']['GettingStarted']['Dashboard'] = '1';
    $Configuration['Plugins']['GettingStarted']['Registration'] = '1';
    $Configuration['Plugins']['GettingStarted']['Plugins'] = '1';
    $Configuration['Plugins']['GettingStarted']['Categories'] = '1';
    $Configuration['Plugins']['GettingStarted']['Profile'] = '1';
    $Configuration['Plugins']['GettingStarted']['Discussion'] = '1';
    $Configuration['Plugins']['Facebook']['ApplicationID'] = '*****';
    $Configuration['Plugins']['Facebook']['Secret'] = '*****';
    $Configuration['Plugins']['Facebook']['UseFacebookNames'] = FALSE;
    $Configuration['Plugins']['Facebook']['SocialReactions'] = '1';
    $Configuration['Plugins']['Facebook']['SocialSharing'] = '1';
    $Configuration['Plugins']['Facebook']['Scope'] = array('email', 'public_profile');
    $Configuration['Plugins']['Twitter']['ConsumerKey'] = '******';
    $Configuration['Plugins']['Twitter']['Secret'] = '******';
    $Configuration['Plugins']['Twitter']['SocialReactions'] = '1';
    $Configuration['Plugins']['Twitter']['SocialSharing'] = '1';
    $Configuration['Plugins']['Flagging']['NotifyUsers'] = array('7');
    $Configuration['Plugins']['Signatures']['HideGuest'] = '1';
    $Configuration['Plugins']['Signatures']['HideEmbed'] = '1';
    $Configuration['Plugins']['Signatures']['AllowImages'] = '1';
    $Configuration['Plugins']['BulkInvite']['InsertUserID'] = 2;
    $Configuration['Plugins']['BulkEdit']['RoleIDs'] = array('34');
    $Configuration['Plugins']['BulkEdit']['UserIDs'] = '["25","30","31"]';
    $Configuration['Plugins']['BulkEdit']['RemoveType'] = 'delete';
    $Configuration['Plugins']['BulkEdit']['Confirm'] = '1';
    
    // ProfileExtender
    $Configuration['ProfileExtender']['Fields']['SteamID']['FormType'] = 'TextBox';
    $Configuration['ProfileExtender']['Fields']['SteamID']['Label'] = 'Steam ID';
    $Configuration['ProfileExtender']['Fields']['SteamID']['Options'] = '';
    $Configuration['ProfileExtender']['Fields']['SteamID']['OnRegister'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['SteamID']['OnProfile'] = '1';
    $Configuration['ProfileExtender']['Fields']['SteamID']['Required'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['SteamID']['Name'] = 'SteamID';
    $Configuration['ProfileExtender']['Fields']['PSNID']['FormType'] = 'TextBox';
    $Configuration['ProfileExtender']['Fields']['PSNID']['Label'] = 'PSN ID';
    $Configuration['ProfileExtender']['Fields']['PSNID']['Options'] = '';
    $Configuration['ProfileExtender']['Fields']['PSNID']['OnRegister'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['PSNID']['OnProfile'] = '1';
    $Configuration['ProfileExtender']['Fields']['PSNID']['Required'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['PSNID']['Name'] = 'PSNID';
    $Configuration['ProfileExtender']['Fields']['NintendoNetworkID']['FormType'] = 'TextBox';
    $Configuration['ProfileExtender']['Fields']['NintendoNetworkID']['Label'] = 'Nintendo Network ID';
    $Configuration['ProfileExtender']['Fields']['NintendoNetworkID']['Options'] = '';
    $Configuration['ProfileExtender']['Fields']['NintendoNetworkID']['OnRegister'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['NintendoNetworkID']['OnProfile'] = '1';
    $Configuration['ProfileExtender']['Fields']['NintendoNetworkID']['Required'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['NintendoNetworkID']['Name'] = 'NintendoNetworkID';
    $Configuration['ProfileExtender']['Fields']['GamertagMicrosoftXbox']['FormType'] = 'TextBox';
    $Configuration['ProfileExtender']['Fields']['GamertagMicrosoftXbox']['Label'] = 'Gamertag [Microsoft/Xbox]';
    $Configuration['ProfileExtender']['Fields']['GamertagMicrosoftXbox']['Options'] = '';
    $Configuration['ProfileExtender']['Fields']['GamertagMicrosoftXbox']['OnRegister'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['GamertagMicrosoftXbox']['OnProfile'] = '1';
    $Configuration['ProfileExtender']['Fields']['GamertagMicrosoftXbox']['Required'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['GamertagMicrosoftXbox']['Name'] = 'GamertagMicrosoftXbox';
    $Configuration['ProfileExtender']['Fields']['Facebook']['FormType'] = 'TextBox';
    $Configuration['ProfileExtender']['Fields']['Facebook']['Label'] = 'Facebook';
    $Configuration['ProfileExtender']['Fields']['Facebook']['Options'] = '';
    $Configuration['ProfileExtender']['Fields']['Facebook']['OnRegister'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['Facebook']['OnProfile'] = '1';
    $Configuration['ProfileExtender']['Fields']['Facebook']['Required'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['Facebook']['Name'] = 'Facebook';
    $Configuration['ProfileExtender']['Fields']['Twitter']['FormType'] = 'TextBox';
    $Configuration['ProfileExtender']['Fields']['Twitter']['Label'] = 'Twitter';
    $Configuration['ProfileExtender']['Fields']['Twitter']['Options'] = '';
    $Configuration['ProfileExtender']['Fields']['Twitter']['OnRegister'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['Twitter']['OnProfile'] = '1';
    $Configuration['ProfileExtender']['Fields']['Twitter']['Required'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['Twitter']['Name'] = 'Twitter';
    $Configuration['ProfileExtender']['Fields']['Website']['FormType'] = 'TextBox';
    $Configuration['ProfileExtender']['Fields']['Website']['Label'] = 'Website';
    $Configuration['ProfileExtender']['Fields']['Website']['Options'] = '';
    $Configuration['ProfileExtender']['Fields']['Website']['OnRegister'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['Website']['OnProfile'] = '1';
    $Configuration['ProfileExtender']['Fields']['Website']['Required'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['Website']['Name'] = 'Website';
    $Configuration['ProfileExtender']['Fields']['BattleTagBattlenet']['FormType'] = 'TextBox';
    $Configuration['ProfileExtender']['Fields']['BattleTagBattlenet']['Label'] = 'BattleTag [Battle.net]';
    $Configuration['ProfileExtender']['Fields']['BattleTagBattlenet']['Options'] = '';
    $Configuration['ProfileExtender']['Fields']['BattleTagBattlenet']['OnRegister'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['BattleTagBattlenet']['OnProfile'] = '1';
    $Configuration['ProfileExtender']['Fields']['BattleTagBattlenet']['Required'] = FALSE;
    $Configuration['ProfileExtender']['Fields']['BattleTagBattlenet']['Name'] = 'BattleTagBattlenet';
    
    // Routes
    $Configuration['Routes']['DefaultController'] = array('categories', 'Internal');
    $Configuration['Routes']['DefaultForumRoot'] = array('discussions', 'Internal');
    
    // Vanilla
    $Configuration['Vanilla']['Version'] = '2.1.10';
    $Configuration['Vanilla']['AdminCheckboxes']['Use'] = '1';
    $Configuration['Vanilla']['Discussions']['Layout'] = 'modern';
    $Configuration['Vanilla']['Discussions']['PerPage'] = '30';
    $Configuration['Vanilla']['Categories']['Layout'] = 'modern';
    $Configuration['Vanilla']['Categories']['Use'] = TRUE;
    $Configuration['Vanilla']['Categories']['MaxDisplayDepth'] = '3';
    $Configuration['Vanilla']['Categories']['DoHeadings'] = '1';
    $Configuration['Vanilla']['Categories']['HideModule'] = '1';
    $Configuration['Vanilla']['Comments']['AutoRefresh'] = NULL;
    $Configuration['Vanilla']['Comments']['PerPage'] = '30';
    $Configuration['Vanilla']['Archive']['Date'] = '';
    $Configuration['Vanilla']['Archive']['Exclude'] = '1';
    
    // Yaga
    $Configuration['Yaga']['Version'] = '1.0.3';
    $Configuration['Yaga']['Reactions']['Enabled'] = '1';
    $Configuration['Yaga']['Badges']['Enabled'] = '1';
    $Configuration['Yaga']['Ranks']['Enabled'] = '1';
    $Configuration['Yaga']['Ranks']['Photo'] = '/uploads/yaga/K2IO4TVBUQ24.jpg';
    $Configuration['Yaga']['LeaderBoard']['Enabled'] = '1';
    $Configuration['Yaga']['LeaderBoard']['Limit'] = '10';
    
    // Last edited by MattDonatelli (24.171.99.40)2015-07-07 03:35:20
    

    Here are the contents of our .htaccess

    # Modified
    # If you modify this file then change the above line to: # Modified
    <IfModule mod_rewrite.c>
       RewriteEngine On
       # Certain hosts may require the following line.
       # If vanilla is in a subfolder then you need to specify it after the /. 
       # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
       RewriteBase /community/
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
    </IfModule>
    

    Any help is appreciated.

  • Options
    hgtonighthgtonight ∞ · New Moderator

    Firstly, thanks for using my addons!

    Secondly, are you using a rank perk that changes the Edit Timeout dynamically?

    Thirdly, your current config shows $Configuration['Garden']['EditContentTimeout'] = '5600'; which should give you a timeout of about 1.5 hours.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options

    We will look for a rank perk and see if that's the issue.

    As I mentioned above, the edit timeout is hard-coded, but doesn't actually allow the user to edit their discussions or comments.

  • Options
    x00x00 MVP
    edited July 2015

    @mattdonatelli you posted a lot of credentials with your config details that you really aught to change now. Specifically the social networking stuff and the Captcha.

    Be careful. If it looks like private information it probably is. Make sure to censor you config file next time.

    grep is your friend.

  • Options

    @hgtonight You're a genius!

    It was being overridden by settings inside YAGA's rank perks. These default to Users May Never Edit in the timeout setting.

    Humble suggestion, maybe make them default to "default"? Or inherit the settings from Garden? (Not sure how that all works, I'm a novice for sure).

    Great plugin by the way, our forum goers are loving it!

    Thanks again.

    Matt

  • Options
    hgtonighthgtonight ∞ · New Moderator

    @mattdonatelli said:

    Humble suggestion, maybe make them default to "default"? Or inherit the settings from Garden? (Not sure how that all works, I'm a novice for sure).

    The default configuration uses the first rank as a "probation" rank that disables a lot of "nice" things until you level up. Feel free to customize your ranks to your taste/community.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options

    @hgtonight That makes sense! I bet we just missed that part in the documentation.

  • Options
    edited July 2017

    I am having this same issue. Are there any steps I can take to fix the YAGA rank perk issue that is causing this? @mattdonatelli @hgtonight

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    @LincolnWDaniel said:
    I am having this same issue. Are there any steps I can take to fix the YAGA rank perk issue that is causing this? @mattdonatelli @hgtonight

    Please do not post on three year old posts... specially if they have nothing to do with
    your problem.

Sign In or Register to comment.