Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
INDIG0 Posted October 15, 2021 Posted October 15, 2021 Hello. When I change the theme on the main page, it gives an error, what could be the problem? P.S. Theme bought and installed via Marketplace Not Found The requested URL was not found on this server. site.ru/theme/?csrfKey=da6d9639d79fc6be06ae2b8d4d57ca0f
INDIG0 Posted October 15, 2021 Author Posted October 15, 2021 The problem with Rewrite URLs, if disabled, it works, but I don't understand why.
Marc Posted October 16, 2021 Posted October 16, 2021 You would need to speak to the author of that theme if its specific to that theme. If not, please ensure you only have rewrites in your htaccess that we have provided, and no others, then test again
INDIG0 Posted October 16, 2021 Author Posted October 16, 2021 @Marc Stridgen The problem is not in a specific this theme, it gives an error to change any theme. Content of the .htaccess file <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
Jim M Posted October 16, 2021 Posted October 16, 2021 1 hour ago, AlphaStar said: @Marc Stridgen The problem is not in a specific this theme, it gives an error to change any theme. Content of the .htaccess file <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> Are you having trouble with any other URLs which submit content? Your URL on file is HTTP but you're using HTTPS on your community. Did you fully update to HTTPS as according to this guide: https://invisioncommunity.com/4guides/advanced-options/configuration-options/using-ssl-https-r273/
INDIG0 Posted October 16, 2021 Author Posted October 16, 2021 @Jim M I have been using https for many years now, there are no problems with other addresses and mod_rewrite. The config contains 'base_url' => 'https://mysite.com/', The only problem with changing the theme, perhaps it was before, but I did not know about it, because I used a standard template. I noticed that there is no "theme" folder in the installation archive, is this how it should be? Here's my theme folder looks like it doesn't have a file index.php, maybe that's the problem?
Jim M Posted October 16, 2021 Posted October 16, 2021 The theme folder will only be present if you have used Designer Mode. I would suggest checking if this is enabled in your ACP -> Customization -> Themes. If it is not, you can safely delete this folder.
INDIG0 Posted October 16, 2021 Author Posted October 16, 2021 (edited) I didn't quite understand what kind of designer mod. Edited October 16, 2021 by AlphaStar
Jim M Posted October 16, 2021 Posted October 16, 2021 1 minute ago, AlphaStar said: Sorry, designer's mode will show above the table if it is enabled or not. If it is not, you can safely delete that folder.
Solution INDIG0 Posted October 16, 2021 Author Solution Posted October 16, 2021 Deleted this folder and it worked, thanks 😇 Jim M 1
Marc Posted October 18, 2021 Posted October 18, 2021 Glad to see that is now working for you. Just to elaborate on the above, designer mode is a mode that can be switched on by theme designers to work on the templates outside of the admin area. Its not something you need to worry about if you're not a theme developers really. However it does create that folder when its switched on.
Recommended Posts