Support » Networking WordPress » Redirect Loop from TinyMCE gallery

  • Hello,

    I’ve been having an issue with a multisite installation causing redirect loops.
    This error happens only on the secondary site; the primary site works fine (at least as far as I can tell).

    The error is causing some things like the ajax gallery view not to work.

    Here is the error I find over and over again in the site’s error logs:

    [Fri Oct 20 03:45:29 2017][error] [client 83.240.186.238] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
    [Fri Oct 20 03:45:29 2017][debug] core.c(3116): [client 83.240.186.238] r->uri = /site/wordpress/wordpress/wordpress/wordpress/wordpress/wordpress/wordpress/wordpress/wordpress/wordpress/js/tiny_mce/plugins/advimage/galery.php
    [Fri Oct 20 03:45:29 2017][debug] core.c(3122): [client 83.240.186.238] redirected from r->uri = /site/wordpress/wordpress/wordpress/wordpress/wordpress/wordpress/wordpress/wordpress/wordpress/js/tiny_mce/plugins/advimage/galery.php
    [Fri Oct 20 03:45:29 2017][debug] core.c(3122): [client 83.240.186.238] redirected from r->uri = /site/wordpress/wordpress/wordpress/wordpress/wordpress/wordpress/wordpress/wordpress/js/tiny_mce/plugins/advimage/galery.php
    [Fri Oct 20 03:45:29 2017][debug] core.c(3122): [client 83.240.186.238] redirected from r->uri = /site/wordpress/wordpress/wordpress/wordpress/wordpress/wordpress/wordpress/js/tiny_mce/plugins/advimage/galery.php
    [Fri Oct 20 03:45:29 2017][debug] core.c(3122): [client 83.240.186.238] redirected from r->uri = /site/wordpress/wordpress/wordpress/wordpress/wordpress/wordpress/js/tiny_mce/plugins/advimage/galery.php
    [Fri Oct 20 03:45:29 2017][debug] core.c(3122): [client 83.240.186.238] redirected from r->uri = /site/wordpress/wordpress/wordpress/wordpress/wordpress/js/tiny_mce/plugins/advimage/galery.php
    [Fri Oct 20 03:45:29 2017][debug] core.c(3122): [client 83.240.186.238] redirected from r->uri = /site/wordpress/wordpress/wordpress/wordpress/js/tiny_mce/plugins/advimage/galery.php
    [Fri Oct 20 03:45:29 2017][debug] core.c(3122): [client 83.240.186.238] redirected from r->uri = /site/wordpress/wordpress/wordpress/js/tiny_mce/plugins/advimage/galery.php
    [Fri Oct 20 03:45:29 2017][debug] core.c(3122): [client 83.240.186.238] redirected from r->uri = /site/wordpress/wordpress/js/tiny_mce/plugins/advimage/galery.php
    [Fri Oct 20 03:45:29 2017][debug] core.c(3122): [client 83.240.186.238] redirected from r->uri = /site/wordpress/js/tiny_mce/plugins/advimage/galery.php
    [Fri Oct 20 03:45:29 2017][debug] core.c(3122): [client 83.240.186.238] redirected from r->uri = /site/js/tiny_mce/plugins/advimage/galery.php
    

    I’m not sure where I need to look to fix this error. It looks like it’s appending an infinite number of /wordpress/ directories that don’t exist onto the URIs for some reason… WordPress is installed in a subdirectory (/wordpress/) on this site, so my only guess is that maybe something is wrong in the multisite config? But if someone can help shed some light on this and help me find where to look for this problem, I’d appreciate it!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Bet Hannon

    (@bethannon1)

    Support Team Volunteer Coordinator

    Hi Matthew!

    Hopefully you figured this out, but if not, this might help: https://tommcfarlin.com/resolving-the-wordpress-multisite-redirect-loop/

    Hi Bet,

    Thanks for replying with the link.

    Unfortunately that fix didn’t work on my site. It seems to be for logic redirect problems only, which I am not having.

    I gave it a shot, but it didn’t solve the redirect errors with TinyMCE.

    Moderator Jan Dembowski

    (@jdembowski)

    Brute Squad and Volunteer Moderator

    From the log I think you have a loop in your .htaccess file. Can you please post the contents here?

    Sure, here it is:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) wordpress/$1 [L]
    RewriteRule ^(.*\.php)$ wordpress/$1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redirect Loop from TinyMCE gallery’ is closed to new replies.