Automattic / Automattic/WP-Job-Manager

WPML - jm-ajax link and post translation 404 issues

Open
#1,452 0 comments 0 reactions 0 assignees View on GitHub
Third-party Conflict
Dominant language
PHP
Stars
899
Forks
369
Avg merge
11h 37m
Merged PRs (30d)
12

Description

#### Steps to Reproduce
Job listings page:
Include [jobs] shortcode on page and translate.

Job page:
Set job_listing settings as "appear as translated" in WPML config.

#### What I Expected
Job Listings page:
Would load jobs as list.

Job page:
Page loads "as translated", so that strings are translated but page content is not.

#### What Happened Instead
Job Listings page:
Failed to load jobs because of an AJAX error, as the link requested does not exist.

Job page:
Returns 404 when switching to secondary language

#### WordPress / WP Job Manager Version
WordPress: 4.9.5
WP Job Manager: 1.30.2
WPML: 3.9.1

#### Screenshot / Video

Job listing page AJAX error
![wpjm-error-one](https://user-images.githubusercontent.com/12713872/38835320-28e05a6c-41c3-11e8-91d8-652df4e24bb0.PNG)

404 page of job listing in secondary language
![wpjm-error-two](https://user-images.githubusercontent.com/12713872/38835319-28bac432-41c3-11e8-8f11-c30cb488f430.PNG)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the translated [jobs] shortcode page and the job page configured as “appear as translated” in WPML. Trace the missing AJAX link and the secondary-language 404 using the reported WordPress, WP Job Manager, and WPML versions. Done means translated listings load and the secondary-language job page returns the translated strings without a 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.