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.

Upgrade to 2.2 getting error 404 from server

Trying to run utility/update/ but getting error 404. Any help would be appreciated.

Tagged:

Comments

  • You need to make sure your htaccess file is correct because update overwrites it and if you had pretty Url enabled this can happen.

  • What do you mean by correct? It's the file from the 2.2 download.

  • Vanilla asks for the following information and only that. I've entered it but when I click continue it says it needs FirstName LastName but doesn't say in which field. None of these fields seem to be asking for a first name last name. Thank you.

    Database Host
    Database Name
    Database User
    Database Password

    Application Title
    Admin Email
    Admin Username
    Admin Password
    Confirm Password

  • so this is not a 404 error ?

    Please post the contents of your htaccess file and the contents of the config.php

    BUT REMOVE PASSWORD AND KEYS OR ANYTHING SENSITIVE BEFORE YOU PASTE IT !!!!

  • abrownabrown New
    edited May 2016
    # 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 /
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
    </IfModule>
    
    <?php if (!defined('APPLICATION')) exit();
    
    // Conversations
    $Configuration['Conversations']['Version'] = '2.0.13';
    
    // Database
    $Configuration['Database']['Name'] = 'xxx';
    $Configuration['Database']['Host'] = 'localhost';
    $Configuration['Database']['User'] = 'xxx';
    $Configuration['Database']['Password'] = 'xxx';
    
    // DiscussionExcerpt2
    $Configuration['DiscussionExcerpt2']['Number_of_words'] = '50';
    $Configuration['DiscussionExcerpt2']['Show_announcements'] = FALSE;
    
    // EnabledApplications
    $Configuration['EnabledApplications']['Skeleton'] = 'skeleton';
    $Configuration['EnabledApplications']['Vanilla'] = 'vanilla';
    $Configuration['EnabledApplications']['Conversations'] = 'conversations';
    
    // EnabledPlugins
    $Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed';
    $Configuration['EnabledPlugins']['GravityInsights'] = 'GravityInsights';
    $Configuration['EnabledPlugins']['About Me'] = 'About Me';
    $Configuration['EnabledPlugins']['AddonManager'] = 'AddonManager';
    $Configuration['EnabledPlugins']['Pockets'] = 'Pockets';
    $Configuration['EnabledPlugins']['PluginUtils'] = 'PluginUtils';
    $Configuration['EnabledPlugins']['PageSpeed'] = 'PageSpeed';
    $Configuration['EnabledPlugins']['ForceGuestSignIn'] = 'ForceGuestSignIn';
    $Configuration['EnabledPlugins']['MyProfile'] = TRUE;
    $Configuration['EnabledPlugins']['ProfileFeeds'] = TRUE;
    $Configuration['EnabledPlugins']['UsefulFunctions'] = TRUE;
    $Configuration['EnabledPlugins']['UnreadDiscussion'] = TRUE;
    $Configuration['EnabledPlugins']['embedvanilla'] = TRUE;
    $Configuration['EnabledPlugins']['AllViewed'] = TRUE;
    $Configuration['EnabledPlugins']['BetterNotifications'] = TRUE;
    $Configuration['EnabledPlugins']['cleditor'] = TRUE;
    $Configuration['EnabledPlugins']['DiscussionExcerpt2'] = TRUE;
    $Configuration['EnabledPlugins']['FileUpload'] = TRUE;
    $Configuration['EnabledPlugins']['FirstLastNames'] = TRUE;
    $Configuration['EnabledPlugins']['Flagging'] = TRUE;
    $Configuration['EnabledPlugins']['FlaggingNotify'] = TRUE;
    $Configuration['EnabledPlugins']['Identicon5'] = TRUE;
    $Configuration['EnabledPlugins']['VanillaFancybox'] = TRUE;
    $Configuration['EnabledPlugins']['MobileSearch'] = TRUE;
    $Configuration['EnabledPlugins']['OldPosts'] = TRUE;
    $Configuration['EnabledPlugins']['PeregrineBadges'] = TRUE;
    $Configuration['EnabledPlugins']['PrivateCommunity'] = TRUE;
    $Configuration['EnabledPlugins']['QuoteSelection'] = TRUE;
    $Configuration['EnabledPlugins']['RoleBadges'] = TRUE;
    $Configuration['EnabledPlugins']['ShowDiscussionAuthor'] = TRUE;
    $Configuration['EnabledPlugins']['ShwaipBot'] = TRUE;
    $Configuration['EnabledPlugins']['Spoilers'] = TRUE;
    $Configuration['EnabledPlugins']['WordCount'] = TRUE;
    $Configuration['EnabledPlugins']['timeago'] = TRUE;
    $Configuration['EnabledPlugins']['RegistrationRestrictLogger'] = TRUE;
    
    // Garden
    $Configuration['Garden']['Title'] = 'xxx';
    $Configuration['Garden']['Cookie']['Salt'] = 'xxx';
    $Configuration['Garden']['Cookie']['Domain'] = '';
    $Configuration['Garden']['Version'] = '2.1.8p2';
    $Configuration['Garden']['RewriteUrls'] = TRUE;
    $Configuration['Garden']['CanProcessImages'] = TRUE;
    $Configuration['Garden']['Installed'] = TRUE;
    $Configuration['Garden']['Errors']['MasterView'] = 'error.master.php';
    $Configuration['Garden']['Email']['SupportName'] = 'xxx';
    $Configuration['Garden']['Email']['SupportAddress'] = 'xxx';
    $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'] = 'ssl';
    $Configuration['Garden']['Theme'] = 'default';
    $Configuration['Garden']['PrivateCommunity'] = TRUE;
    $Configuration['Garden']['Registration']['Method'] = 'Approval';
    $Configuration['Garden']['Registration']['CaptchaPrivateKey'] = xxx;
    $Configuration['Garden']['Registration']['CaptchaPublicKey'] = xxx;
    $Configuration['Garden']['Registration']['InviteExpiration'] = '-1 week';
    $Configuration['Garden']['Registration']['InviteRoles'] = 'a:4:{i:9;s:1:"0";i:10;s:1:"0";i:11;s:1:"0";i:13;s:1:"0";}';
    $Configuration['Garden']['Registration']['DefaultRoles'] = 'a:1:{i:0;s:2:"11";}';
    $Configuration['Garden']['Registration']['ApplicantRoleID'] = '12';
    $Configuration['Garden']['RequiredUpdates'] = 'a:0:{}';
    $Configuration['Garden']['UpdateCheckDate'] = 1295584490;
    $Configuration['Garden']['Update']['LastTimestamp'] = 1302611640;
    $Configuration['Garden']['Update']['Count'] = 3;
    $Configuration['Garden']['InstallationID'] = xxx;
    $Configuration['Garden']['InstallationSecret'] = xxx;
    $Configuration['Garden']['Analytics']['LastSentDate'] = '20111118';
    $Configuration['Garden']['EditContentTimeout'] = '-1';
    $Configuration['Garden']['Format']['Hashtags'] = FALSE;
    $Configuration['Garden']['InputFormatter'] = 'Html';
    $Configuration['Garden']['Html']['SafeStyles'] = FALSE;
    $Configuration['Garden']['SystemUserID'] = '471';
    
    // Modules
    $Configuration['Modules']['Vanilla']['Content'] = 'a:6:{i:0;s:13:"MessageModule";i:1;s:7:"Notices";i:2;s:21:"NewConversationModule";i:3;s:19:"NewDiscussionModule";i:4;s:7:"Content";i:5;s:3:"Ads";}';
    $Configuration['Modules']['Conversations']['Content'] = 'a:6:{i:0;s:13:"MessageModule";i:1;s:7:"Notices";i:2;s:21:"NewConversationModule";i:3;s:19:"NewDiscussionModule";i:4;s:7:"Content";i:5;s:3:"Ads";}';
    
    // Plugins
    $Configuration['Plugins']['GettingStarted']['Dashboard'] = '1';
    $Configuration['Plugins']['GettingStarted']['Categories'] = '1';
    $Configuration['Plugins']['GettingStarted']['Plugins'] = '1';
    $Configuration['Plugins']['GettingStarted']['Discussion'] = '1';
    $Configuration['Plugins']['GettingStarted']['Registration'] = '1';
    $Configuration['Plugins']['GettingStarted']['Profile'] = '1';
    $Configuration['Plugins']['EmbedVanilla']['RemoteUrl'] = 'xxx';
    $Configuration['Plugins']['EmbedVanilla']['ForceRemoteUrl'] = FALSE;
    $Configuration['Plugins']['EmbedVanilla']['EmbedDashboard'] = FALSE;
    $Configuration['Plugins']['AutoParagraph']['Enabled'] = FALSE;
    $Configuration['Plugins']['AllViewed']['Enabled'] = TRUE;
    $Configuration['Plugins']['CreditTransactions']['Enabled'] = FALSE;
    $Configuration['Plugins']['ReplyTo']['Enabled'] = TRUE;
    $Configuration['Plugins']['Voting']['Enabled'] = TRUE;
    $Configuration['Plugins']['Tagging']['Enabled'] = TRUE;
    $Configuration['Plugins']['Flagging']['Enabled'] = TRUE;
    $Configuration['Plugins']['OpenID']['Enabled'] = FALSE;
    $Configuration['Plugins']['GoogleSignIn']['Enabled'] = FALSE;
    $Configuration['Plugins']['OldPosts']['Age'] = '5';
    $Configuration['Plugins']['FlaggingNotify']['Version'] = '0.2b';
    $Configuration['Plugins']['KarmaBank']['Version'] = '0.9.5.1b';
    $Configuration['Plugins']['KarmaBank']['Enabled'] = FALSE;
    $Configuration['Plugins']['MyProfile']['Version'] = '0.1.5b';
    $Configuration['Plugins']['ProfileFeeds']['Version'] = '0.1.1b';
    $Configuration['Plugins']['FirstLastNames']['DisplayNames'] = TRUE;
    $Configuration['Plugins']['FirstLastNames']['NickName'] = FALSE;
    $Configuration['Plugins']['FirstLastNames']['HideRealUsername'] = TRUE;
    $Configuration['Plugins']['MobileSearch']['Search'] = '';
    $Configuration['Plugins']['ShwaipBot']['ReplyOrder'] = 'a:3:{i:0;s:8:"BotShave";i:1;s:12:"BotMuffinMan";i:2;s:11:"BotSendBeer";}';
    $Configuration['Plugins']['FileUpload']['Enabled'] = TRUE;
    $Configuration['Plugins']['RoleBadges']['BadgeLocation'] = '1';
    
    // Routes
    $Configuration['Routes']['DefaultController'] = 'a:2:{i:0;s:14:"categories/all";i:1;s:8:"Internal";}';
    $Configuration['Routes']['XmJhZGdlcygvLiopPyQ='] = 'a:2:{i:0;s:24:"plugin/PeregrineBadges$1";i:1;s:8:"Internal";}';
    
    // Themes
    $Configuration['Themes']['EmbedFriendly']['SingleColumn'] = TRUE;
    
    // Vanilla
    $Configuration['Vanilla']['Version'] = '2.0.13';
    $Configuration['Vanilla']['Comments']['AutoOffset'] = TRUE;
    $Configuration['Vanilla']['Comments']['AutoRefresh'] = '0';
    $Configuration['Vanilla']['Comments']['PerPage'] = '50';
    $Configuration['Vanilla']['Categories']['Use'] = TRUE;
    $Configuration['Vanilla']['Categories']['MaxDisplayDepth'] = '3';
    $Configuration['Vanilla']['Categories']['DoHeadings'] = FALSE;
    $Configuration['Vanilla']['Categories']['HideModule'] = FALSE;
    $Configuration['Vanilla']['Discussions']['PerPage'] = '10';
    $Configuration['Vanilla']['Archive']['Date'] = '';
    $Configuration['Vanilla']['Archive']['Exclude'] = FALSE;
    
    // WhosOnline
    $Configuration['WhosOnline']['Frequency'] = '60';
    $Configuration['WhosOnline']['Location']['Show'] = 'every';
    $Configuration['WhosOnline']['Hide'] = '1';
    
    // Last edited by xxx (174.44.101.140)2015-01-17 19:11:11
    
  • Many if not most of those plugins need to be updated, also remove all serialized data , anything that looks like this chicken scratch example: 'a:2:{i:0;s:14:"categories/all";i:1;s:8:"Internal";}'; just leave the quotes and the closing semi-colon.

    DO NOT DISABLE $Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed';

    Anything else in the Plugins list change TRUE to FALSE to disable.

  • Thank you. Does any of that have anything to do with the first name last name issue, as that's where I'm stuck right now. It's asking for the information but not supplying a window to input it.

  • R_JR_J Admin

    a) seems like you are running an outdated, insecure version of Vanilla. You should update to Vanilla 2.2
    b) you have quite a lot of plugins activated. Normally, you should deactivate all of them and then activate one afterthe other to find the one that causes problems.
    c) one of your plugins is called "FirstLastNames". If I would have to debug your problem, I would start by deactivating that plugin

    Please try /index.php?p=/utility/structure, when /utility/structure fails with a 404

Sign In or Register to comment.