Listing Not Added (Route Not Found Error)

Greetings, I hope everything is okay.

I am using the latest version of HivePress.

When a customer wants to save a new listing (advertisement) there is no functionality.

Everything looks fine in the forms on the ad page, but when the “Save Changes” button is pressed, nothing works. When I look at the console, it gives the following extension error.

“/wp-json/hivepress/v1/users/60/:1 Failed to load resource: the server responded with a status of 401 ()”

When I view this link in the side tab, I see the following json code.

{“code”:“rest_no_route”,“message”:“No route was found matching the URL and request method.”,“data”:{“status”:404}}
Is there anyone experiencing this problem? It would be great if there is a solution.

Thank you.

Hi,

Please disable third-party plugins and customizations (if there are any) and check if this issue persists. If you use a caching plugin, make sure that caching is disabled for logged-in users. Also, please refresh permalinks How to refresh WordPress permalinks - HivePress Help Center. If the error exists, I recommend contacting your hosting provider, as they may block such requests.

​I hope this is helpful to you.

Hello,

Thank you for the information. I have deactivated all third-party plugins in the theme, but unfortunately, there is no change in the issue.

I am not using any cache plugin or related features on the site. The infrastructure is clean, and the theme utilizes jQuery v2.2.4 without any reported errors on the site. The specific problem lies in the non-functional buttons within the HivePress forms.

I’ve noticed several issues last night:

When a user goes to the /submit-listing/details link, the system automatically redirects them to the login/register page. After registering, the link automatically redirects to /submit-listing/profile, but when I fill out the form and click the “Save Changes” button, nothing happens, and the initial routing error occurs.

This problem is not exclusive to new users; it also affects existing ones. For instance, I created five different customers for testing purposes. I manually set up a store for each customer through the “Vendor” section and posted an ad for each. When these customers log in, the system automatically redirects to the /submit-listing/details page, and the ad form appears. However, after filling out the form and clicking the “Submit Ad” button, again, no action is taken, and the routing error occurs.

Another observation is that for newly registered users, who are initially set as “Subscribers,” even after manually marking them as “Sellers,” when these users try to access the /submit-listing/details link, the system automatically redirects them to /submit-listing/profile.

In general, I suspect there might be an issue either in the internal JavaScript scripts or that I need to add custom PHP hooks to my theme.

This issue consumed a significant amount of my time last night. Before reaching out here, I spent a full 8 hours researching and conducting tests without success. If needed, I am willing to provide the site’s username and password for the admin to conduct further testing.

I believe there is a detail we might have overlooked.

Problem console code- Failed to load resource: the server responded with a status of 401 ()

domain.com/wordpress/sample-theme/wp-json/hivepress/v1/users/65/:1

Thank you.

Hi,

Please try to temporarily move all attributes to draft status and check if the error persists. It may also be a problem with the server configuration. If it is possible, please check the PHP error log, usually, it contains the detailed error and mentions the file and line number where it occurred, and shares errors here How to configure WordPress error logs to identify and resolve problems - HivePress Help Center.

Hello, I have reviewed all error logs, and there doesn’t seem to be anything in the error records. Additionally, error screen recording is already active on my server, so there doesn’t appear to be a PHP-related issue. If you could message me privately, I can provide you with the WordPress login credentials.

Hi,

We checked it locally and everything works correctly on our side. Also, we have not received any feedback from other users that something is not working. Therefore, I recommend installing the clean version (without third-party plugins, customizations, etc.) locally (https://localwp.com) or on another server and checking if this issue occurs.

Hello, if you are using one of Hivepressin themes it may be working normally. We also tested the plugin locally. We used the ready-made WordPress theme that comes with the WordPress installation. The result is the same.

http://localhost/twentytwentyfour/wp-json/hivepress/v1/users/10

{“code”:“rest_no_route”,“message”:“No route was found matching the URL and request method.”,“data”:{“status”:404}}

Hi,

Then I recommend trying another hosting provider, as we haven’t received any feedback from other customers that something is not working, so it’s definitely not the theme’s fault. If there was a issue with the theme, we would have already had many reports from other customers How to Fix WordPress 404 Not Found Error [8 Easy Solutions].

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.