W
W
webov_web2019-08-22 21:21:30
CMS
webov_web, 2019-08-22 21:21:30

Modx chunk/template changes not applied?

I make changes to the template files, upload them via ftp (or via the admin panel). In the admin panel, the chunk code changes, but the site itself does not change. With what it can be connected?
I tried:
1. Clear the cache through the modx admin panel - "Management - Clear Cache"
2. Deleted the cache folder, which is located in the "core \ cache" directory
3. Tried to delete the template folder completely to check if there will be changes.
4. Picked the .htaccess file
None of this helped. There are changes in the admin panel, but everything on the site remains the same
Site on MODX Revolution 2.6.5
In the server (hosting) settings it is written that Apache 2.* and PHP 7.1
are used This is how the .htaccess file looks like

# MODX supports Friendly URLs via this .htaccess file. You must serve web
# pages via Apache with mod_rewrite to use this functionality, and you must
# change the file name from ht.access to .htaccess.
#
# Make sure RewriteBase points to the directory where you installed MODX.
RewriteRule ^.*[-/]v(\d+)-.*$ index\.php?id=$1&%{QUERY_STRING} [L]
RewriteRule ^v(\d+)-.*$ index\.php?id=$1&%{QUERY_STRING} [L]
RewriteRule ^k(\d+)[-/].*[-/]v(\d+)-.*$ index\.php?id=$1-$2&%{QUERY_STRING} [L]
RewriteRule ^k(\d+)[-/]v(\d+)[-/].*$ index\.php?id=$1-$2&%{QUERY_STRING} [L]
RewriteRule ^v(\d+)[-/].*[-/]k(\d+)[-/].*$ index\.php?id=$2-$1&%{QUERY_STRING} [L]
RewriteRule ^v(\d+)[-/]k(\d+)[-/].*$ index\.php?id=$2-$1&%{QUERY_STRING} [L]
RewriteRule ^.*[-/]v(\d+)[-/]k(\d+)[-/].*$ index\.php?id=$2-$1&%{QUERY_STRING} [L]
RewriteRule ^.*[-/]v(\d+)[-/].*[-/]k(\d+)[-/].*$ index\.php?id=$2-$1&%{QUERY_STRING} [L]
RewriteRule ^.*[-/]k(\d+)[-/].*[-/]v(\d+)[-/].*$ index\.php?id=$1-$2&%{QUERY_STRING} [L]
RewriteRule ^.*[-/]k(\d+)[-/]v(\d+)[-/].*$ index\.php?id=$1-$2&%{QUERY_STRING} [L]

RewriteEngine On
RewriteBase /

# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

#php_flag register_globals Off

#php_flag zlib.output_compression On
#php_value zlib.output_compression_level 5

#ExpiresActive On
#ExpiresByType image/gif A2592000
#ExpiresByType image/jpeg A2592000
#ExpiresByType image/png A2592000
#BrowserMatch "MSIE" brokenvary=1
#BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
#BrowserMatch "Opera" !brokenvary
#SetEnvIf brokenvary 1 force-no-vary

Which way to look? What can you try to do?
Maybe someone has experienced something similar?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2019-08-23
@webov_web

Check file connection in the system templates themselves:
{include 'file:template/base.tpl'} - for example
In the case of a chunk - connection of a chunk from a template. Can this influence
Templates fill in where in the file manager?
In the settings, the core / elements path seems to be the default, i.e. when calling include, you need to write relative to elements, that is, template/base.tpl
Maybe a button accordion, but sometimes interruptions are connected with this
(htaccess has nothing to do with it in essence), but be more careful - RewriteRule must be cut after the RewriteEngine On link conversion process.
For the test, nevertheless, experiment with the include connection, and bring htacces to its original form. Close all RewriteRule for now (something they cause doubts, even though I'm not strong in regular seasons)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question