Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Update for critical security issue in PHPMailer included in release Vanilla 2.3.1

fresh install front page change, then page not found

i am new to vanilla and have now installed several times with the same error occurring each time...
hopefully it's a schoolboy error, please advise.

so..
new database,
new site subdirectory,
fresh install = everything works as expected.
yet, if i change either the theme or any setting on the homepage i get (home) page not found when viewing the forum.
when setting the option to have either discussion or categories from dashboard, this will not save hence page not found error.

anyone?

thanks very
s

Comments

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator
    edited October 18

    @simontyszko

    Welcome to the community.

    Can you check that your conf/config.php file is writeable?

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    That's really weird. I would advice to make a copy of /conf/config.php, then change some homepage setting and compare the new /conf/config.php with the old one.
    Doing this should at least show if the changes in the config are those that are expected.

    It might also be a strange .htaccess problem that I have never seen before. You could try to use the file from an older version:
    https://raw.githubusercontent.com/vanilla/vanilla/release/2.1/.htaccess

    If your forum is in a subfolder, you need to change the # RewriteBase / to RewriteBase /thepathofyoursubfolder

  • the config does appear writable, as i am changing various options then loading the remote file locally to check... and cannot see any reference to homepage settings in the config file... i shall try the older htaccess too.
    thanks for your response

    http://www.theculture.net/25hertz/
    http://www.theculture.net/hertz/

  • i tried the old htaccess file yet no joy. homepage settings still disappearing (not even sticking to default)

  • by subfolder are you talking about a subfolder within the designated formun folder. ie,
    website.com/forum. which is how i have it or

    website.com/forum/forum ?

    @R_J said:
    That's really weird. I would advice to make a copy of /conf/config.php, then change some homepage setting and compare the new /conf/config.php with the old one.
    Doing this should at least show if the changes in the config are those that are expected.

    It might also be a strange .htaccess problem that I have never seen before. You could try to use the file from an older version:
    https://raw.githubusercontent.com/vanilla/vanilla/release/2.1/.htaccess

    If your forum is in a subfolder, you need to change the # RewriteBase / to RewriteBase /thepathofyoursubfolder

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator
    edited October 18

    Your forums address is theculture.net/hertz/ and so the line must read RewriteBase /hertz

  • edited October 18

    it appears to be set correctly or should the last commented instance also have /hertz ?

    hang on tho... i need to check this...

    ta very


    RewriteEngine On
    RewriteBase /hertz

    # 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 /
    
  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    Comments are only comments and do not matter

  • okay.... fresh install (just really make sure) 7
    directly after setup the access file was.

    Original

    If you modify this file then change the above line to: # Modified


    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 %{QUERY_STRING} ^p=/?([^&]+)(&([^?]+))?$
    RewriteRule ^index\.php %1?%3 [E=X_REWRITE:1,L]
    
    # The basic rewrite rule.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [QSA,E=X_REWRITE:1,E=X_PATH_INFO:/$1,L]
    
    # Add the proper X_REWRITE server variable for rewritten requests.
    RewriteCond %{ENV:REDIRECT_X_REWRITE} .+
    RewriteCond %{ENV:REDIRECT_X_PATH_INFO} (.+)
    RewriteRule ^index\.php - [QSA,E=X_REWRITE:1,E=!REDIRECT_X_REWRITE,E=X_PATH_INFO:%1,E=!REDIRECT_X_PATH_INFO,L]
    
    # 301 redirect urls that start with index.php
    #RewriteCond %{REQUEST_METHOD} GET [NC]
    #RewriteCond %{REQUEST_URI} ^(.*?)/index\.php(.*)$
    #RewriteRule ^index\.php /%1%2 [QSA,R,L]
    

    and when i selected discussions as homepage view saved it and then moved menu and returned to homepage neither option selected.

    i manually altered the access file to
    yet the issue remains.....

    Original

    If you modify this file then change the above line to: # Modified


    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 /25hertz

    RewriteCond %{QUERY_STRING} ^p=/?([^&]+)(&([^?]+))?$
    RewriteRule ^index\.php %1?%3 [E=X_REWRITE:1,L]
    
    # The basic rewrite rule.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [QSA,E=X_REWRITE:1,E=X_PATH_INFO:/$1,L]
    
    # Add the proper X_REWRITE server variable for rewritten requests.
    RewriteCond %{ENV:REDIRECT_X_REWRITE} .+
    RewriteCond %{ENV:REDIRECT_X_PATH_INFO} (.+)
    RewriteRule ^index\.php - [QSA,E=X_REWRITE:1,E=!REDIRECT_X_REWRITE,E=X_PATH_INFO:%1,E=!REDIRECT_X_PATH_INFO,L]
    
    # 301 redirect urls that start with index.php
    #RewriteCond %{REQUEST_METHOD} GET [NC]
    #RewriteCond %{REQUEST_URI} ^(.*?)/index\.php(.*)$
    #RewriteRule ^index\.php /%1%2 [QSA,R,L]
    

  • ive not added modified........ i shall

  • gosh... i was trying to screen record this happening and logged in on my iPhone. this time the option sticks....... what on earth could be causing notebook browser to fail yet mobile to succeed?

    curious

    ha

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    Possibly a cache issue?

    Could you try to access on the notebook using your browser's incognito mode?

  • i tried that and i also used opera with vpn, same result......

  • i have successfully changed other settings (deleting and adding users) from the browser with no loss of homepage. yet any changes of main page options from browser causes loss of homepage?

  • i have managed to repeat error this several times now.
    i can edit homepage from mobile but not in a browser.

    if i edit from my laptop then some field do not get written in the routes section..

    fail=.
    // Routes
    $Configuration['Routes']['DefaultController'] = array('', 'Internal');

    // Vanilla
    $Configuration['Vanilla']['Version'] = '2.3.1';
    $Configuration['Vanilla']['Discussions']['Layout'] = '';
    $Configuration['Vanilla']['Categories']['Layout'] = '';

    // Last edited by tyszko (5.70.17.102)2017-10-18 19:22:29

    working =
    // Routes
    $Configuration['Routes']['DefaultController'] = array('categories', 'Internal');

    // Vanilla
    $Configuration['Vanilla']['Version'] = '2.3.1';
    $Configuration['Vanilla']['Discussions']['Layout'] = 'modern';
    $Configuration['Vanilla']['Categories']['Layout'] = 'modern';

    // Last edited by tyszko (5.70.17.102)2017-10-18 15:45:07

  • damn curious..... it's a machine specific issue... editing the installation from another machine is also fine...
    phew

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    Look at the JavaScript console of the browser. Maybe it is saved via AJAX and something is going wrong there?

Sign In or Register to comment.