Jump to content

Error when changing theme


Go to solution Solved by INDIG0,

Recommended Posts

Posted

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

Posted

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

Posted

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

 

Posted
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/

Posted

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

Posted

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.

Posted
1 minute ago, AlphaStar said:

Снимок экрана 2021-10-16 в 18.32.27.png

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.

Posted

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.

  • Recently Browsing   0 members

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