Answer the question
In order to leave comments, you need to log in
How to solve a server configuration problem if Ajax does not load images?
Drupal 8 site, set to a nested root category for security reasons. Problem with redirect settings for this category. I have tried all the recipes I found online. Now I have returned to the main .htaccess configuration recommended by the hoster, on which only the upload of photos in the article loaded next, and the upload of the third article fall off.
Here is the access code, taking into account what I tried:
DirectoryIndex /docroot/index.php
#RewriteEngine On
#RewriteCond %{REQUEST_FILENAME} -f
#RewriteRule ^(.+) $1 [L]
#RewriteCond %{DOCUMENT_ROOT}/docroot%{REQUEST_URI} -f
#RewriteRule ^(.+) /docroot/$1 [L]
#RewriteRule ^(.*)$ /docroot/ [QSA,L]
#Options +SymLinksIfOwnerMatch
#RewriteCond %{REQUEST_URI} !^/docroot/.*$
#RewriteRule ^ docroot/index.php [L]
#RewriteRule ^(.*)$ /docroot/$1 [QSA,L]
#RewriteCond %{REQUEST_URI} !^docroot
#<IfModule mod_rewrite.c>
# RewriteEngine On
# RewriteBase /docroot/
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.*) /docroot/#/$1
# RewriteCond %{HTTP_HOST} ^krymmaslo.com [NC]
# RewriteRule ^(.*)$ http://www.krymmaslo.com/$1 [L,R=301]
#</IfModule>
#RewriteCond %{REQUEST_URI} !^docroot
#RewriteRule ^ docroot/index.php [L]
#RewriteRule ^(.*)$ docroot/$1 [L]
#RewriteCond %{REQUEST_URI} !^/docroot/.*$
#RewriteRule ^(.*)$ /docroot/$1 [QSA,L]
#RewriteCond %{REQUEST_URI} !docroot/
#RewriteRule (.*) /docroot/$1 [L]
RewriteEngine on
RewriteCond %{REQUEST_URI} !docroot/
RewriteRule (.*) /docroot/$1 [L]
Uncaught TypeError: Cannot read property 'replace' of undefined
at new Drupal.Ajax (ajax.js:425)
at Object.Drupal.ajax (ajax.js:250)
at n.initialize (ajax-model.js:19)
at n.initialize (ajax-model.js:7)
at n.e.Model (backbone-min.js:1)
at n [as constructor] (backbone-min.js:1)
at new n (backbone-min.js:1)
at Infinite.<anonymous> (infinite_custom.js:50)
at Waypoint.f [as callback] (jquery.min.js:2)
at Waypoint.trigger (jquery.waypoints.js:62)
[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery.min.js?v=2.2.3:4
ajax @ jquery.min.js?v=2.2.3:4
n._evalUrl @ jquery.min.js?v=2.2.3:4
ua @ jquery.min.js?v=2.2.3:3
append @ jquery.min.js?v=2.2.3:3
(anonymous) @ ajax-model.js?v=1:33
f @ jquery.min.js?v=2.2.3:2
Drupal.Ajax.success @ ajax.js?v=8.2.6:864
success @ ajax.js?v=8.2.6:505
i @ jquery.min.js?v=2.2.3:2
fireWith @ jquery.min.js?v=2.2.3:2
z @ jquery.min.js?v=2.2.3:4
(anonymous) @ jquery.min.js?v=2.2.3:4
jquery.min.js?v=2.2.3:4 XHR finished loading: GET "http://www.krymmaslo.com/docroot/modules/contrib/views_load_more/js/views_load_more.js?v=1.0.0&_=1487716381068".
send @ jquery.min.js?v=2.2.3:4
ajax @ jquery.min.js?v=2.2.3:4
n._evalUrl @ jquery.min.js?v=2.2.3:4
ua @ jquery.min.js?v=2.2.3:3
append @ jquery.min.js?v=2.2.3:3
(anonymous) @ ajax-model.js?v=1:33
f @ jquery.min.js?v=2.2.3:2
Drupal.Ajax.success @ ajax.js?v=8.2.6:864
success @ ajax.js?v=8.2.6:505
i @ jquery.min.js?v=2.2.3:2
fireWith @ jquery.min.js?v=2.2.3:2
z @ jquery.min.js?v=2.2.3:4
(anonymous) @ jquery.min.js?v=2.2.3:4
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question