Jump to content

Error when changing theme


Go to solution Solved by INDIG0,

Recommended Posts

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

Link to comment
Share on other sites

@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>

 

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

@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

656671785_2021-10-1618_09_45.png.e630fdd68e236f8b3dfab806731fa509.png

it doesn't have a file index.php, maybe that's the problem?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...