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

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.

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 topic contains 2 replies, has 2 voices.

Last updated by Ioannis 3 years, 8 months ago.

Assigned support staff: 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

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

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.