Getting 500 error when making any edits to htaccess?

Ray2215

Newbie
Joined
May 6, 2018
Messages
31
Reaction score
13
What I'm trying to do is increase the maximum file upload size from WP's default 2M to anything higher.

I've tried:

Editing Default Constraits
Adding php.ini to WP-admin and html public
Killing PHP processes with Godaddy cPanel

Basically the main stuff and can't make any headway. I bet it would work if I could add some code to htaccess, but anytime I make any changes the whole site shuts down with a 500 error??

Here's my code:

Code:
# BEGIN Increase Max Upload Size
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 300
php_value max_input_time 300
# END Increase Max Upload Size

Here's the htaccess code:

Code:
# BEGIN WordPress
<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
# BEGIN Hotlinking

# END Hotlinking

Could it be a plugin or theme related issue?
 
It's probably file permissions. Make sure htaccess is read-only after you modify it.
 
It's probably file permissions. Make sure htaccess is read-only after you modify it.

No love, should the changes I make look different than this?

Code:
# BEGIN Increase Max Upload Size
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 300
php_value max_input_time 300
# END Increase Max Upload Size

# BEGIN WordPress
<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
# BEGIN Hotlinking

# END Hotlinking
 
No love, should the changes I make look different than this?

Code:
# BEGIN Increase Max Upload Size
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 300
php_value max_input_time 300
# END Increase Max Upload Size

# BEGIN WordPress
<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
# BEGIN Hotlinking

# END Hotlinking

Can you access the server error_log ?
 
Can you access the server error_log ?

It pretty much just has this on repeat:

Code:
[11-May-2018 11:33:57 UTC] PHP Warning:  file(/home/site/public_html/site/wp-includes/pomo/bots.dat): failed to open stream: No such file or directory in /home/site/public_html/site/wp-content/themes/sohohotel/footer.php on line 3
[11-May-2018 11:34:10 UTC] PHP Warning:  include_once(social3.png): failed to open stream: No such file or directory in /home/animalden/public_html/site/wp-content/themes/sohohotel/functions.php on line 1198
[11-May-2018 11:34:10 UTC] PHP Warning:  include_once(): Failed opening 'social3.png' for inclusion (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/site/public_html/site.com/wp-content/themes/sohohotel/functions.php on line 1198
 
What them are you using - newspaper?

My sites using Newspaper theme have this problem, too. Google webmaster console warns about it as well.

Initially my host said that it was because I was using too much space, so they increased my % - next up they said it was because my theme needed a higher php version. After they increased my % of usage and changed to a newer php version I don't seem to have as many issues as before.
 
What them are you using - newspaper?

My sites using Newspaper theme have this problem, too. Google webmaster console warns about it as well.

Initially my host said that it was because I was using too much space, so they increased my % - next up they said it was because my theme needed a higher php version. After they increased my % of usage and changed to a newer php version I don't seem to have as many issues as before.

It's called Soho Hotel
 
The creators of Soho Hotel wrote the following when another user had the same problem:


"The most common cause of a error 500 is:

-Exceeding your memory limit (you can increase this in the wp-config.php file)

-A corrupt .htaccess file (you should delete this via FTP and then WordPress will create a new one)

-Also make sure your file permissions are set correctly for WordPress: https://codex.wordpress.org/Changing_File_Permissions

Kind regards"
 
Your theme is broken. It didn't upload all the theme files. Either switch themes or do a complete upload of the theme files.
 
The creators of Soho Hotel wrote the following when another user had the same problem:


"The most common cause of a error 500 is:

-Exceeding your memory limit (you can increase this in the wp-config.php file)

-A corrupt .htaccess file (you should delete this via FTP and then WordPress will create a new one)

-Also make sure your file permissions are set correctly for WordPress: https://codex.wordpress.org/Changing_File_Permissions

Kind regards"
Your theme is broken. It didn't upload all the theme files. Either switch themes or do a complete upload of the theme files.

I tried each line guys and I had no luck. Seeing as how I was going to fully redesign their site anyways, I went ahead and convinced the owner to start the redesign now. Thanks for the suggestions guys.
 
Back
Top