ReferenceError: replacedVars is not defined if [category] used in post title
-
Repost, seems I broke the support-forum with my topic title, the other post does not load but redirects to /support/?replies=1
ReferenceError: replacedVars is not defined if %%category%% used in post title
WP 4.2.2, WP SEO 2.2
Edit: The bug was introduced with WP SEO 2.2, it does not occur with WP SEO 2.1.1
This javascript error occurs on edit post screen, e.g.:
/wp-admin/post.php?post=XXX&action=edit
ReferenceError: replacedVars is not defined .. wp-seo-metabox.min.js
The snippet preview fails, only the green URL is shown.
The error is reproducable if
%%category%%
is used somewhere or alone in post title default and “SEO-Title” field of post is empty (or emptied) on post screen.Debug (wpseo_titles)
["title-post"]=> string(12) "%%category%%"
Note: The inclusion of the category name(s) works fine in front end, only the backend is broken.
Temporary fix: Remove
%%category%%
from post title default. :-/
- The topic ‘ReferenceError: replacedVars is not defined if [category] used in post title’ is closed to new replies.