Skip Navigation

[Resolved] View just stopped working

This support ticket is created 6 years, 2 months 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by MarcelB4224 6 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1127596
Screen Shot 2018-10-15 at 18.50.12.png
Screen Shot 2018-10-15 at 18.50.00.png

Tell us what you are trying to do?

I had a working page with views and it just stopped working without changing anything. The only change i made was to have a search on the front page and redirect to the result page. I suppose that this is not a problem.

Is there any documentation that you are following?

Is there a similar example that we can see?

See screenshot

What is the link to your site?

It is local installed

#1127656

Hi, can you try the following troubleshooting steps?
- Check the browser console for any JavaScript errors that may appear when you submit the search form. Copy and paste those in your next reply.
- Test the View as a logged-in User and again as a Guest to see if the behavior changes.
- Temporarily deactivate all plugins except Types and Views, and activate a default theme like Twenty Seventeen.
- Clear your browser cache, then test again. If the problem is resolved, reactivate your theme and other plugins, one by one, until the problem returns.
- If the problem was not resolved, continue with the next two steps:
- Please take screenshots of the View editor screen so I can see your View configurations.
- Turn on server logs and check to see if any backend errors are thrown. If you're not familiar with logs I can show you how to activate them temporarily. Go in your wp-config.php file and look for

define('WP_DEBUG', false);

Change it to:

define('WP_DEBUG', true);

Then add these lines, just before it says 'stop editing here':

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');

Try to use this View again. If any backend errors are generated, this will create an error_log.txt file in your site's root directory. Please send me its contents. Once that is done, you can revert the changes you made to wp-config.php.

#1127679
Screen Shot 2018-10-15 at 21.56.57.png
copy of view works.png
copy of view.png
not working view.png

check the browser console for any JavaScript errors that may appear when you submit the search form. Copy and paste those in your next reply

>No errors

Test the View as a logged-in User and again as a Guest to see if the behavior changes.

>Same results

Temporarily deactivate all plugins except Types and Views, and activate a default theme like Twenty Seventeen.
- Clear your browser cache, then test again. If the problem is resolved, reactivate your theme and other plugins, one by one, until the problem returns.

>Done same result

Please take screenshots of the View editor screen so I can see your View configurations.

>See attachment

Turn on server logs and check to see if any backend errors are thrown. If you're not familiar with logs I can show you how to activate them temporarily.

>No error log generated

I made a copy of the view (when i finished it) I just test that one and that works fine. And has the exact same configuration. See attached images. On the not working view the spinner just continue spins even without a search.

But i wonder how it just stopped working so like to understand what happend. Also my previous "problem" was just changed without any changes made as far i know.

Thanks for your help let me know if you need more info to find the problem or what happend.

The view setting

[wpv-filter-start hide="false"]
[wpv-filter-controls]
<div class="form-group">
[wpv-filter-search-box output="bootstrap"][wpv-filter-spinner spinner="hidden link"][/wpv-filter-spinner]
</div>

<div class="row">
<div class="col-sm-3"><div class="form-group">
<label>[wpml-string context="wpv-views"]Vakgebied[/wpml-string]</label>
[wpv-control-postmeta field="wpcf-vakgebied" format="%%NAME%%" url_param="wpv-wpcf-vakgebied"]
</div></div>
<div class="col-sm-3"><div class="form-group">
<label>[wpml-string context="wpv-views"]Functie[/wpml-string]</label>
[wpv-control-postmeta field="wpcf-functie-olenz" format="%%NAME%%" url_param="wpv-wpcf-functie-olenz"]
</div></div>
<div class="col-sm-3"><div class="form-group">
<label>[wpml-string context="wpv-views"]Talen[/wpml-string]</label>
[wpv-control-postmeta field="wpcf-talen" format="%%NAME%%" url_param="wpv-wpcf-talen"]
</div></div>
<div class="col-sm-3">[wpv-filter-reset output="bootstrap"]</div>
</div>

[wpv-filter-submit type="button" output="bootstrap"][/wpv-filter-controls]
[wpv-filter-end]

[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop wrap="4" pad="true">
[wpv-item index=1]
<div class=" ">
<div class="col-sm-3">[wpv-post-body view_template="Loop item in OlenzW"]</div>
[wpv-item index=other]
<div class="col-sm-3">[wpv-post-body view_template="Loop item in OlenzW"]</div>
[wpv-item index=4]
<div class="col-sm-3">[wpv-post-body view_template="Loop item in OlenzW"]</div>
</div>
[wpv-item index=pad]
<div class="col-sm-3"></div>
[wpv-item index=pad-last]
<div class="col-sm-3"></div>
</div>
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]

<p>[wpv-post-title]</p>
<p>[types field="foto-medewerker"][/types]</p>
<p>[types field="vakgebied"][/types]</p>
<p>[types field="functie-olenz"][/types]</p>
<p>[types field="talen"][/types]</p>
<p>[types field="email"][/types]</p>
<p>[types field="themas"][/types]</p>

#1127735

I don't see anything obviously wrong here. I would need to see this in a browser. Can you place this site online at a test URL? If not, can you send me a clone of the site? You can use the Duplicator plugin to create a clone, or you can backup your theme and plugins folders and create a database dump file. Then zip up those 3 items and post a download link in the private reply fields here. Let me know where to find this View on the front-end of the site.