WordPress – admin-ajax.php returns 502 Bad Gateway [closed]

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;

get_posts ignoring ‘category’ and displaying all posts

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

/blog/wp-json/ nginx return 404

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)