{{tag>wordpress troubleshooting}} ====== Wordpress troubleshooting ====== ===== Too many redirects problem ===== This happened after WP was installed without SSL and then after some days, SSL was added. It only happened when trying to access /wp-admin/ route. Adding the following lines of code at the after //"/* Add any custom values between this line and the "stop editing" line. */"// line of wp-config.php: if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) $_SERVER['HTTPS']='on'; In the proxy settings for nginx add these directives: ... location / { proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://your-wordpress-docker-upstream$request_uri; } ... ==== Tested on ==== * WP installed in docker container behind nginx, with Letsencrypt https ===== No new image thumbnails created when uploading new images ===== Install php-gd package. On Debian Wheezy: apt-get install php5-gd service apache2 restart ====== See also ====== * [[wiki:wordpress_nginx|Wordpress on nginx]] * [[wiki:nginx_troubleshooting#nginx_seems_to_serve_from_wrong_vhost|nginx doesn't seem to serve correctly]] ====== References ====== * https://wordpress.stackexchange.com/questions/302965/too-many-redirects-only-when-trying-to-access-wp-admin-page * https://wordpress.org/support/article/administration-over-ssl/#using-a-reverse-proxy * https://wordpress.stackexchange.com/questions/85803/no-thumbnails-generated