• iwan94

    (@iwan94)


    Dear uListing Support Team,

    I am experiencing an issue where the filter and sort buttons fail to load on my listing archive page, resulting in a 404 Not Found error in the console.

    1. Environment and Configuration

    My WordPress setup is configured to run from a subdirectory while displaying the site from the root domain, which is a common practice.SettingValuePhysical WordPress Address (WP_SITEURL)https://my-site.co.jp/sub-directorySite Address (WP_HOME)https://my-site.co.jpServer(e.g., Apache/Nginx)

    2. Technical Issue Details

    The browser console shows the following error when the listing page attempts to load the form data:

    POST https://my-site.co.jp/sub-directory/1/api/search-form/get-form-data 404 (Not Found)

    Key Observation:

    • The plugin is incorrectly including the segment /1/ in the API path, resulting in the 404 error. The URL should ideally be resolved correctly through the standard WordPress REST API prefix.

    3. Critical Findings (The Solution Test)

    I have confirmed that the issue is directly linked to the difference between WP_SITEURL and WP_HOME.

    • When I set BOTH WP_SITEURL and WP_HOME to https://my-site.co.jp/sub-directory, the filters and sort buttons load and work perfectly.
    • As soon as I revert the configuration to the desired structure (WP_SITEURL in the subdirectory, WP_HOME in the root), the 404 error reappears.

    This indicates that uListing is not correctly resolving its API endpoints when WordPress is run from a subfolder while the site is served from the root.4. Request for Assistance

    Could you please advise on how to properly configure uListing to handle this subdirectory installation?

    1. Is there a specific setting within uListing (e.g., in Advanced Settings) to override the API Base URL?
    2. Is this a known bug in uListing when using a different WP_HOME and WP_SITEURL?

    Thank you for your time and assistance in resolving this issue.

    Best regards,

Viewing 1 replies (of 1 total)
  • Plugin Support juliastylemixthemes

    (@juliastylemixthemes)

    Hello,

    Thank you for reaching out.

    Try to resave your site permalinks under the wp dashboard > settings > permalinks and set post option and save changes. After that, make sure that you set inventory pages for your listing types in the uLsiting plugin > settings > general pages section. After that, check your filters directly from the inventory pages. Different listing types should have diffirent inventory pages with their own searching configs.

    Best regards

Viewing 1 replies (of 1 total)

The topic ‘UListing API 404 Error when WordPress is installed in a Subdirectory (Different’ is closed to new replies.