Skip to content Skip to sidebar

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

Problem:
The client was experiencing a 404 error on job listings created using WP Job Manager on the translated version of their website, even after re-saving permalinks.

Solution:
1.We suggested checking for a known issue where certain plugins frequently call the flush_rewrite_rules(true) function, which can cause problems. We provided a link to an errata page for a potential solution: https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/.

2. We suggested to ensure that the job listing was translated correctly and provided a link to documentation on how WP Job Manager works with WPML: https://wpml.org/documentation/plugins-compatibility/translating-wp-job-manager-using-wpml/.

3. After gaining temporary admin access to the site, we discovered that the slug for the Custom Post Type (CPT) Jobs was not set/translated correctly.
We corrected the slug translation for "job" by navigating to WPML -> Settings -> Post Types Translation section, which resolved the issue.

If you're experiencing a similar issue, we recommend trying the steps above. However, please note that the solution might be irrelevant due to being outdated or not applicable to your case. If these steps do not resolve your issue, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket: Contact WPML Support.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 6 replies, has 2 voices.

Last updated by Marsel Nikolli 1 year, 9 months ago.

Assisted by: Marsel Nikolli.

Author Posts
March 12, 2024 at 10:34 am #15398614

aliJ-7

Dear sir/madam,

I am using WPML and I like it so far. I have translated everything and all works well. However, the job listings (created using WP Job Manager) on my page give me an error 404 on the translated/WPML website. I have already tried re-saving permalinks, but it does not seem to work.

Could you share your expertise on what is wrong and how to fix it? So it works properly, and I can learn from it?

Thank you for your time and efforts.

Best regards,
Ali

March 12, 2024 at 10:54 am #15398807

Marsel Nikolli

Hi Ali,

Thank you for contacting WPML Support, I will gladly help you.

This is a known issue caused by certain plugins that frequently call the function: flush_rewrite_rules(true), and it can be resolved by following the solution provided in this errata: https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/

Please apply the solution provided from the errata, after clearing the website's cache (including server-side) and checking if the issue persists.

* Note: Please make sure you have a full backup of your website before making any updates/changes on your website.

Let me know how it goes,
Marsel

March 12, 2024 at 12:14 pm #15399327

aliJ-7

Hi Marsel,

Thank you for the quick response. I tried the function to see if this is the case, and to then deactive plugins one by one. But unfortunately, the function did not help solve the problem. So I suspect something else is going on?

Thank you for your time and efforts.

Best regards,
Ali

March 12, 2024 at 1:43 pm #15399727

Marsel Nikolli

Hi Ali,

Thanks for the update.

Could you please check that the job item that is posted is translated correctly, you can find information related to how WP Job Manager works with WPML at this link: https://wpml.org/documentation/plugins-compatibility/translating-wp-job-manager-using-wpml/

* On the main menu, the menu "Working at", on the English version of the website the notification shows no vacancies. Meanwhile, on the default language, there is 1 vacancy showing up.

Looking forward to your reply,
Marsel

March 12, 2024 at 2:33 pm #15400075

aliJ-7

Hi Marsel,

Thank you for the reply again. Yes, I have translated it according to the link, and from experience translating the other pages since it looks like the same proces. The label 'no vacancies' is a custom label created by me, and not related to the plugin. I have put it to no vacancies myself since the vacancy is not working yet.

Is there anything else we can try?

Thank you for your time and efforts.

Best regards,
Ali

March 12, 2024 at 3:09 pm #15400259

Marsel Nikolli

Thank you for the clarification.

I would need temporary access to your site's WP-admin to investigate the issue and understand it better.
Please create a temporary administrator user using any email address you prefer.

Please fully back up your site (files and database) and confirm it in your next reply.

Your next reply is set to private for you to provide the username and password details.

Thanks,
Marsel

March 12, 2024 at 4:42 pm #15400804

Marsel Nikolli

Hi Ali,

Thank you for the access, I was able to check further and I noticed that the slug for the CPT Jobs wasn't set properly. The Dutch language was set as default but with the translation in English and there was no translation for the English version.

I took the liberty of changing the slug translation as it should be set (I suggest you check the translation for the Dutch version of the slug "job"). You can check the slug translation by:
- go to WPML -> Settings -> Post Types Translation section
- find the "Jobs (job_listing)"
- correct the translation if needed

* Please check the attached image to see which is the correct section.

Let me know if it is working correctly on your end as well.
Marsel

March 14, 2024 at 8:44 am #15408161

aliJ-7

Hi Marsel,

It works, great! Thank you very much for the provided support and fast responses.

Best regards,
Ali