Tag Info

Hot answers tagged

3

Sometimes I have a 500 error ( from NGinx ) just because I have a "character" getting outputted before the first header gets written ( or in-between ). Activate WP_DEBUG = true and see what happens. 99% of the case I could spot the error from there. ( and it was nearly all the time the above error ). Post back if that doesn't solve your debug difficulty ...


2

The transient is in place just fine, see get_dir_size() source. Note that if you have enough files for this to cause major performance issues you are probably better disabling upload limit or it might mess up other related functionality like uploads.


2

I received a 500 Error message after update the wordpress. However, the problem was not caused by the update process. Your database server may corrupt a table(s). To fix this problem you should use phpMyAdmin or something else, and optimize/repair the tables. It Works For Me!


2

Internal Server errors are usually thrown when there's an error somewhere in the code. You did the right thing searching the logs, but depending on your hosting configuration not all errors can be written there. I like using WordPress's own logging facility. Here's what you need to do: Stick the following lines in your wp-config.php file ...


2

Error pages are served up via .HTACCESS, if you are using Apache you would use the ErrorDocument directive and add the status and URL to it. So it would look like this in your .htaccess file: ErrorDocument 401 http://yourwebsite.com/error-401 ErrorDocument 403 http://yourwebsite.com/error-403 ErrorDocument 500 http://yourwebsite.com/error-500 You could ...


1

I am not an expert, but you have a couple of issues here Firstly, is_archive() should be an object of $query. You should also just target the front end with your function. Remember, pre_get_posts alters all instances of WP_Query, front end and backend. So this line if(is_archive() && $query->is_main_query()) : should look something like this ...


1

I solved the problem by using this code. if ( ! function_exists( 'theme_post_meta_data' ) ) : /** * This function prints post meta data. */ function theme_post_meta_data() { printf( __( '<span class="%1$s">Posted on </span>%2$s<span class="%3$s"> by </span>%4$s', 'theme' ), 'meta-prep meta-prep-author posted', sprintf( '<a ...


1

Are your database tables using the InnoDB engine? If so, and the plugin is just for your website, start a transaction, run the inserts, commit the transaction (or rollback on error). global $wpdb; $wpdb->query('start transaction'); // do the inserts $wpdb->query('commit');


1

Your site codereflect.com is not that heavy. Could be the Suffusion theme and its options making lots of DB calls. I'd use http://wordpress.org/extend/plugins/debug-queries/ to see what queries are being called and how many. And it also could be you're on a shared box at softlayer that is "too" shared with others.


1

That error, SoftException in Application.cpp:303: UID of script ... is smaller than min_uid is because the files are owned by the wrong owner, normally root, and UID (user IDs) less min_uid are not allowed (and root is typically 0). I'm not sure how that happened on HostGator, or what tools you have to remedy it, but you need to make sure the files are ...


1

You can't really debug server errors without having really good access to the server itself. This would entail looking at the internal working of this particular host which I'm certain they would not allow nor spend any actual time trying to fix. Move to a better host if they cannot give you more details as to what the problem is or ask for access to the ...


1

Assuming you're on Linux, if you go to your wp-content/plugins folder and run grep -R 'htaccess' * it should let you know if any plugins are addressing that file by name


1

Raising apc.shm_size from default value 32M to 256M in php.ini seems to do the trick for us. edit: raising that value is not a bad idea, however it does not solve the issue in the long term. We are now considering removing either APC or Super Cache...


1

In phpmyadmin search : SELECT * FROM wp_options WHERE option_name = 'template' OR option_name = 'stylesheet' OR option_name = 'current_theme'; then : UPDATE wp_options SET option_value = 'yourthemename' WHERE option_name = 'template'; UPDATE wp_options SET option_value = 'yourthemename' WHERE option_name = 'stylesheet'; UPDATE wp_options SET option_value ...


1

Error 500 ISE is very generic and can be caused by numerous underlying issues. Your first step should be locating error log for your hosting account or asking support to help with that. It may indicate .htaccess issue. Regenerate .htaccess, and be sure the encoding in your text editor is Unicode No BOM It may also indicate a problem with the configuration ...


1

The correct line number for this variable in the most recent WordPress version are 207 and 209. So I guess something has mangled your files. It is impossible to answer what exactly happened without seeing that code. Look for new user accounts, and re-upload all WordPress files from the source.


1

I had the same issues, after some time of not touching the site it suddenly started producing "500 Internal Server Error" on various pages. After a week of pulling my hair it turned out that my "/wp-content/debug.log" (which I enabled a long time ago and then forgot about) was over 128 MB, and therefor could not be written to for some reasons, hence all ...



Only top voted, non community-wiki answers of a minimum length are eligible