Skip Navigation

[Resolved] Ajax Pagination is broken on non standard WP installation

This thread is resolved. Here is a description of the problem and solution.

Problem:
following the wordpress document to setup your custom wordpress folder structure:
https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
For example:

-- html
   | 
   |--app
   |    |-- languages
   |    |-- mu-plugins
   |    |-- plugins
   |    |-- themes
   |    |-- uploads
   |
   |--wp (wordpress installation)

Views ajax pagination is doing ajax page loading via wp-views/embedded/inc/wpv-ajax-pagination-default.php which tries to locate /wp-blog-header.php by parsing the file path for wp-content in order to locate and bootstrap WordPress.
Solution:
This is a known bug in previous version of Views plugin, which is fixed in current version of Views. please make sure you are using the latest version of Views plugin 2.1, and test again, you can download it here:
https://toolset.com/account/downloads/
Relevant Documentation:
https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

This support ticket is created 7 years, 10 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
- 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 2 replies, has 2 voices.

Last updated by Ioannis 7 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#406717

Views pagination fails on non standard WordPress installations that use a custom wp-content directory. This affects all composer managed WordPress installations ie hidden link


-- html
   | 
   |--app
   |    |-- languages
   |    |-- mu-plugins
   |    |-- plugins
   |    |-- themes
   |    |-- uploads
   |
   |--wp (wordpress installation)

Views ajax pagination is doing ajax page loading via wp-views/embedded/inc/wpv-ajax-pagination-default.php which tries to locate /wp-blog-header.php by parsing the file path for wp-content in order to locate and bootstrap WordPress.

There are two problems here. One is that this file bypasses wp-ajax and has to find WordPress and that it takes for granted that WordPress is installed normally.

#406852

Dear Loannis,

I assume you are following the wordpress document to setup your custom wordpress folder structure:
https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

This is a known bug in previous version of Views plugin, which is fixed in current version of Views. please make sure you are using the latest version of Views plugin 2.1, and test again, you can download it here:
https://toolset.com/account/downloads/

#407912

Thank you for your swift response.

wp-views 2.1 does solve the issue.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.