Title: JavaScript errors due to bad variable names on post edit page
Last modified: November 27, 2023

---

# JavaScript errors due to bad variable names on post edit page

 *  Resolved [justinmaurerdotdev](https://wordpress.org/support/users/360zen/)
 * (@360zen)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/javascript-errors-due-to-bad-variable-names-on-post-edit-page/)
 * There are numerous places in the Powerpress code (especially in the metabox/post
   edit code) where `<?php echo $FeedSlug; ?>` is used to concatenate the feed slug
   into variables and function names. But, our slugs have hyphens in them, which
   are invalid characters in variables and function names. We are getting a handful
   of JS errors in the console about bad syntax, coming from Powerpress scripts.
 * This is currently breaking other functionality with ACF and other JS on our edit
   pages. Could you please look into a quick fix for this?
 * > [View post on imgur.com](https://imgur.com/592eUhY)
 * > [View post on imgur.com](https://imgur.com/sgWYQj4)
 * > [View post on imgur.com](https://imgur.com/FCTd2ei)
 * > [View post on imgur.com](https://imgur.com/8fBRD2C)
    -  This topic was modified 2 years, 6 months ago by [justinmaurerdotdev](https://wordpress.org/support/users/360zen/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Shawn](https://wordpress.org/support/users/shawnogordo/)
 * (@shawnogordo)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/javascript-errors-due-to-bad-variable-names-on-post-edit-page/#post-17236899)
 * I’ve passed this on to the Blubrry dev team. Will post again here when I get 
   something back from them.
 *  Thread Starter [justinmaurerdotdev](https://wordpress.org/support/users/360zen/)
 * (@360zen)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/javascript-errors-due-to-bad-variable-names-on-post-edit-page/#post-17243638)
 * Saw the fix is in the new update. Thanks for the swift action!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘JavaScript errors due to bad variable names on post edit page’ is closed
to new replies.

 * ![](https://ps.w.org/powerpress/assets/icon.svg?rev=2849869)
 * [PowerPress Podcasting plugin by Blubrry](https://wordpress.org/plugins/powerpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/powerpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/powerpress/)
 * [Active Topics](https://wordpress.org/support/plugin/powerpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/powerpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/powerpress/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [urgent](https://wordpress.org/support/topic-tag/urgent/)

 * 2 replies
 * 2 participants
 * Last reply from: [justinmaurerdotdev](https://wordpress.org/support/users/360zen/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/javascript-errors-due-to-bad-variable-names-on-post-edit-page/#post-17243638)
 * Status: resolved