Mr Zorg
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Fixing WordPress
In reply to: Image upload… (OK) Crunching… (ERROR)Yeah, same same. I ended up going to adv. tech support and they made changes to my .htaccess file, adding the first two lines
/home/username/public_html/.htaccess
# Inserted By Customer Control Panel suPHP_ConfigPath /home/username/public_html # BEGIN WordPress # WPhtC: Disable ServerSignature on generated error pages ServerSignature Off # WPhtC: Limit upload size to 8 MB LimitRequestBody 8388608 # WPhtC: Protect comments.php RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} .wp-comments-post\.php* RewriteCond %{HTTP_REFERER} !.*https://www.mydomain.org.au.* [OR] RewriteCond %{HTTP_USER_AGENT} ^$ RewriteRule (.*) ^https://%{REMOTE_ADDR}/$ [R=301,L] # WPhtC: Setting mod_deflate <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4.0[678] no-gzip BrowserMatch bMSIE !no-gzip !gzip-only-text/html Header append Vary User-Agent env=!dont-vary </IfModule> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
and then they added another .htaccess in my root folder
/home/username/.htaccess
<IfModule mod_deflate.c> AddOutPutFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/xhtml+xml application/xml application/rss+xml application/atom_xml application/x-javascript application/x-httpd-php application/x-httpd-fastphp application/x-httpd-eruby and image/svg+xml <IfModule mod_setenvif.c> # Netscape 4.x has some problems... BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^Mozilla/4\.0[678] no-gzip # MSIE masquerades as Netscape, but it is fine # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 # the above regex won't work. You can use the following # workaround to get the desired effect: BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html # Don't compress images SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary </IfModule> <IfModule mod_headers.c> # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary </IfModule> </IfModule>
I think the important part is the “don’t compress images” section, but I’m not going to investigate further. I also have a feeling that PHP wasn’t able to find my PHP.INI file in the public_html folder without the first directive in the first file.
If things break again, I’ll report back. I have a bunch of images to upload!
“username” and “mydomain” are not the actual values, incase anyone cuts and pastes expecting instant results. You’ll need to fill those in with your own information ??
Viewing 1 replies (of 1 total)