Skip Navigation

[Resolved] View doesn't load on frontend

This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.

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.

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/Hong_Kong (GMT+08:00)

This topic contains 12 replies, has 3 voices.

Last updated by romanB-3 7 years ago.

Assisted by: Luo Yang.

Author
Posts
#596977

Hello,
I have a view that doesn't load on frontend here hidden link and I wonder why.
Thank you.

#597048

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

page.png

Hi Roman,

Thank you for contacting Toolset support. The link you have provided is not working, see attached screenshot.

- Please try to check it by deactivating all third-party plugins (except Toolset) and switching back to the Default Theme (e.g. Twenty Sixteen theme) to see for any possible conflicts with any of the plugins or themes?

- Can you please try to create a new View and check if it displays on the front-end?

- Please provide View ID or view back-end link which is not displaying on front-end.

Thank you

#597187

Hello and thank you,

The link you have provided is not working
That's precisely the problem.

Please try to check it by deactivating all third-party plugins
Done.

Can you please try to create a new View
It is a new view.

Please provide View ID
hidden link

Thank you

#597240

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Roman,

I’ve created simple list view and put it on test page it was working fine.
I’ve just removed Query Filter and then all working fine.
hidden link

So, there is some logical mistake in Query filter because when I remove the filter from this View it works fine and the page loads as well.

Thanks

#597248

Hello and thank you,
The query filter must filter results by selected "medicament" in multiselect ; it's been auto set up when creating the filter...
How could I correct this bug ?
Thank you.

#597619

Hi Roman,

Our supporter Noman isn't available currently, I just checked it in your website, the view:
hidden link
There isn't the filter you mentioned above:
The query filter must filter results by selected "medicament" in multiselect ; it's been auto set up when creating the filter...
Please describe detail steps for how and where I can see the problem, thanks

#597690

My mistake ; the troubled view is this one hidden link

I have a CPT Pharmacie and a CPT Medicament.
I have created a many-to-many relationship between those thanks to the child CPT Approvisionnement.
I need to know which "Pharmacie" has a specific "Medicament" set by the filter.

Thank you

#597923

Thanks for the details, I can see the problem in your website, please try these:
in case there is any compatibility problem, please try this:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) Enable PHP debug mode, copy and paste the debug logs here
PHP Debugging
In case you think that Types or Views are doing something wrong (what we call a bug), you should enable PHP error logging. Again, edit your wp-config.php file and add the following:

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
This will produce a file called ‘error_log.txt’ in your WordPress root directory. Make sure that the web server can create and write this file. If it cannot, use an FTP program to create the file and make it writable to Apache (normally, user www-data).
https://toolset.com/documentation/user-guides/debugging-types-and-views/
3) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, I need to test and debug it in my localhost, thanks

#598593
#598742

Thanks for the details, since you did not provide the database dump file, I will need to install duplicator plugin in your website, and export the database dump file, and I will feedback if there is anything found

#598750

Thanks for the details, I can duplicate same problem in my localhost, in your website, there are lots number of posts in the parent post type "medicament", and in the view "Pharmarcies avec filtre", you are using option "AJAX results update when visitors change any filter values", it conducts the performance problem, and I escalated this thread to our 2nd tier supporters, our developers will take care of it, currently, I suggest you try this:
Edit the view "Pharmarcies avec filtre", choose another option "Full page refresh when visitors click on the search button", and add a submit button, and test again:
hidden link

#598765

Thank you very much. That in deed solved the problem.
Nevertheless, I'll stay tuned about the AJAX bug.
Thank you.

#599194

I just test again in my localhost, edit the view "Pharmarcies avec filtre", in section "Custom Search Settings", enable the option "Let me choose individual settings manually", enable the option "Always show all values for inputs" instead of option "Show only available options for each input", that will be able to fix the problem when you are using AJAX search feature, can you confirm it? thanks

#599212

Just perfect
Thank you very much ; that solved the problem.