Why not output all of the sampling cycle?

Hello! Is there a website on wordpress + woocommerce. Installed the plugin Woo Gift : Advanced Woocommerce Gift Plugin and faced the same problem. In the request with database of products
$args_post = array('post_type' => 'product','posts_per_page'=>-1);
$loop_post = new WP_Query( $args_post );

Directive display all of the elements 'posts_per_page'=>-1 sureset subsequent withdrawal of the plugin. If instead of -1 to assign 50 or 100, for example, all displays OK, but limited.
How to deduce all the elements of the sample?
z.s. interestingly, in the mirror on another hosting everything is OK and -1. . Maybe it's a problem on hosting?
July 9th 19 at 10:18
3 answers
July 9th 19 at 10:20
Solution
Thank you all for the help! The error was in the plugin in the wrong place closed parenthesis in the cycle, but in a different file
July 9th 19 at 10:22
the <pre>print_r($loop_post);
</pre>

make. Let's see what they cycle of giving and with what parameters in the object are stored.
and nothing displays - already at the time of receipt values from the database $loop_post = new WP_Query( $args_post ); happens fail.. it is stupid to cannot from dB to pull the data according to these parameters - Shaun.Doyle commented on July 9th 19 at 10:25
: so the -1 in quotes take) - keagan_Hartmann commented on July 9th 19 at 10:28
all the same - Shaun.Doyle commented on July 9th 19 at 10:31
Strange. Include a log of WordPress plus look at the log of queries to the database. - keagan_Hartmann commented on July 9th 19 at 10:34
and I find it strange that the mirror on another hosting it works. the debug file is not created why, though included. but how can I see the log request in database? - Shaun.Doyle commented on July 9th 19 at 10:37
in the mysql logs - keagan_Hartmann commented on July 9th 19 at 10:40
July 9th 19 at 10:24
no rights to create the file most likely

Find more questions by tags E-commerceHTMLWordPress