Skip Navigation

[Resolved] Problems with search and pagination in views

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 3 replies, has 3 voices.

Last updated by Waqar 11 months, 2 weeks ago.

Assisted by: Waqar.

Author
Posts
#2671721

Hello, these days I have had problems with views in searches. I have it set with Pagination enabled with "manual transition and AJAX"

When I enter the search page I get the first posts and then it stays loading and does not show any more.

This is the url where the problem appears: hidden link

Within views the code I have in Search and pagination is this:


[wpv-filter-start hide="false"]
[wpv-filter-controls]

<div class="row">
	<div class="col-sm-6"><div class="form-group">
	<label>[wpml-string context="wpv-views"]Soy un@[/wpml-string]</label>
	[wpv-control-postmeta field="wpcf-buscando" source="custom" url_param="wpv-wpcf-buscando" values=",1,2" display_values="--- o ---,Hombre,Mujer"]
</div></div>
	<div class="col-sm-6"><div class="form-group">
	<label>[wpml-string context="wpv-views"]Buscando[/wpml-string]</label>
	[wpv-control-postmeta field="wpcf-genero" source="custom" url_param="wpv-wpcf-genero" values=",1,2,3" display_values="--- o ---,Hombre,Mujer,Otra relación"]
</div></div>
</div>

<div class="row">
	<div class="col-sm-6"><div class="form-group">
	<label>[wpml-string context="wpv-views"]Pais[/wpml-string]</label>
	[wpv-control-postmeta field="wpcf-pais" source="custom" url_param="wpv-wpcf-pais" values=",1,3,9,16,30,35,39,48,52,57,59,67,70,78,92,99,110,112,142,159,171,172,176,180,182,229,233" display_values="--- o ---,Estados Unidos (US),Canada,Alemania,Argentina,Bolivia,Brasil,Bulgaria,Chile,Colombia,Costa Rica,Cuba,El Salvador,España,Francia,Guatemala,Honduras,Italia,Jamaica,Mexico,Nicaragua,Paraguay,Peru,Portugal,República Dominicana,Rusia,Uruguay,Venezuela"]
</div></div>
	<div class="col-sm-6"><div class="form-group">
	<label>[wpml-string context="wpv-views"]Ciudad[/wpml-string]</label>
	[wpv-control-postmeta field="wpcf-_ciudad" type="textfield" url_param="wpv-wpcf-_ciudad"]
</div></div>
</div>

<div class="row">
	<div class="col-sm-6"><div class="form-group">
	<label>[wpml-string context="wpv-views"]Edad_min[/wpml-string]</label>
	[wpv-control-postmeta field="wpcf-edad" source="custom" url_param="wpv-wpcf-edad_min" values=",1,8,13,18,23,28,33,38,43,48,53" display_values="--- o ---,18,25,30,35,40,45,50,55,60,65,70"]
</div></div>
	<div class="col-sm-6"><div class="form-group">
	<label>[wpml-string context="wpv-views"]Edad_max[/wpml-string]</label>
	[wpv-control-postmeta field="wpcf-edad" source="custom" url_param="wpv-wpcf-edad_max" values=",1,8,13,18,23,28,33,38,43,48,53" display_values="--- o ---,18,25,30,35,40,45,50,55,60,65,70"]
</div>
</div>
</div>

<div class="row">
	<div class="col-sm-6"><div class="form-group">
	<label>[wpml-string context="wpv-views"]Estado Civil[/wpml-string]</label>
	[wpv-control-postmeta field="wpcf-_estado-civil" source="custom" url_param="wpv-wpcf-_estado-civil" values=",1,2,3,4,5,6" display_values="--- o ---,Soltero/a,Separado/a,Divorciado/a,Viudo/a,En una relacion,Casado/a"]
</div>    
</div>
	<div class="col-sm-6"><div class="form-group">
	<label>[wpml-string context="wpv-views"]Quiero[/wpml-string]</label>
	[wpv-control-postmeta field="wpcf-quiero" source="custom" url_param="wpv-wpcf-quiero" values=",1,2,3,4" display_values="--- o ---,Encontrar pareja,Conocer gente,Hacer amistades,Tener una cita"]
</div>
  
  </div>
</div>

<div class="form-group">
	[wpv-control-postmeta field="wpcf-foto" type="checkboxes" source="custom" url_param="wpv-wpcf-foto" values="1" display_values="Tengan foto"]
</div>
 
[wpv-filter-submit name="Buscar" output="bootstrap"]     [wpv-filter-reset reset_label="Limpiar" output="bootstrap"]

[/wpv-filter-controls]
[wpv-filter-end]

When I save views without the code mentioned above, that is, in the search and pagination option, I leave it blank, in the frontend it does not show the search form, which is logical because I deleted the code, but the posts are displayed normally. It means that the error is when I try to put in the search form.

I want to clarify that this code described above has worked for years, which is why I did not send a ticket to support years ago. But I'm not sure but I think the error started when I updated WordPress Version 6.4.2
I already disabled all puguin and left only the toolset ones and the error continued.

#2671921

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2023-12-08 at 12.01.32.png

Hi there

When I visit your page, in the browser console I see the errors shown in the screenshot.

This means that when the browser makes an ajax request to the server, the code that is triggered on the server produces a fatal PHP error (hence the server returns a 500 code reply to the browser).

So, to understand what's going on, we need to know what those errors on the server are, details of which should be available in your debug log.

If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DISABLE_FATAL_ERROR_HANDLER',true);

That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor. Try visiting your page again so that the errors are triggered, then inspect the log.

Please share what you find. (The entries are time-stamped, you only need to share details of the errors generated when visiting the page.)

#2672073

Hello, thank you very much, the information was useful to me. Thanks to that I was able to find the error is from a peepso audio and video plugin. I already disabled it and the page is working fine.

Now send a ticket to peepso support so they can fix the problem.

#2672463

Hi,

Thank you for sharing this update and glad that the issue has been narrowed down.

You're welcome to report this to the Peepso support team so that they can investigate and fix this accordingly.

In case they need any information or assistance from the Toolset side, they're welcome to contact us through you or directly.
( ref: https://toolset.com/home/contact-us/partnerships-and-collaborations/ )

regards,
Waqar