charset problem in wordpress because of nginx config
I really can’t believe this, but sometimes the answer is really simple I just forgot to clear the Cloudflare cache It’s more than a week which I am trying to fix this problem O_o
I really can’t believe this, but sometimes the answer is really simple I just forgot to clear the Cloudflare cache It’s more than a week which I am trying to fix this problem O_o
As WordPress documentation says about .htaccess file: WordPress uses this file to manipulate how Apache serves files from its root directory, and subdirectories thereof. Most notably, WP modifies this file to be able to handle pretty permalinks. And a basic .htaccess file content will looks like this: # BEGIN WordPress RewriteEngine On RewriteRule .* – … Read more
Stupid me… I have a nginx directive that set X-Robots-Tag to none for every page. I thought it was some kind of null value for the header… Now that I took some time to RTFM, I learned that none means both noindex and nofollow… So it wouldn’t let the SEO plugin do its job. Now … Read more
I had similar problem on wordpress site. add these lines inside http block of /etc/nginx/nginx.conf file. fastcgi_temp_file_write_size 10m; fastcgi_busy_buffers_size 512k; fastcgi_buffer_size 512k; fastcgi_buffers 16 512k; If it still not working also add this line client_max_body_size 50M;
Ok. After a frustrating weekend I have a workaround (but still not real reason why the simpler version worked on one install and not another!) $args = array( ‘posts_per_page’ => $pageSize, ‘offset’=> $offset, ‘tax_query’ => array( array( ‘taxonomy’ => ‘category’, ‘field’ => ‘term_id’, ‘terms’ => 9 ) ); While this is a totally workable solution, … Read more
It sounds like it’s not possible with stock WordPress Multisite to have a subdomain network from a WordPress-in-a-subdirectory installation: WordPress must run from the root of your webfolder (i.e. public_html) for subdomains to work correctly. They will not work from within a subdirectory. — Before You Create a Network
No, it is not safe as it means that any security breach might end up in your code being changed. Alternatives: There is nothing wrong in using SFTP to upload changed plugins. If it is something that might take long time, you can manually put wordpress into maintenance mode by adding a file named .maintenance … Read more
If this is done via WP Options API (as opposed to direct SQL query on database) you can use hooks to log it. Something along the lines of (not tested, make sure it works under normal option save first): add_filter( ‘pre_update_option_siteurl’, function ( $value ) { error_log( wp_debug_backtrace_summary() ); return $value; } ); Next time … Read more
you can use this code in functions.php to avoid ssl check : add_filter( ‘http_request_args’, function ( $args ) { $args[‘reject_unsafe_urls’] = false; return $args; }, 999 );
I hope you solved this problem since April 2020. I got some kind of same trouble with the wordpress php files being accessible throw https://example.com/blog/ . When wp had to make some json operations, with js calling urls like https://example.com/blog/wp-json/wp/v2/posts/23?_locale=user for instance, it used to throw a 404 error. I solved this adding an extra … Read more