Title: JavaScript error with Debug on when using Simple Page Ordering plugin
Last modified: August 31, 2016

---

# JavaScript error with Debug on when using Simple Page Ordering plugin

 *  Resolved [SwimTopia Lorin](https://wordpress.org/support/users/swimtopia-lorin/)
 * (@swimtopia-lorin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-with-debug-on-when-using-simple-page-ordering-plugin/)
 * Hi there,
 * Awesome plugin, BTW. I was used to building CPT by hand, but I buy the theme 
   argument, so…
 * I have WP_DEBUG on since I am creating page templates and modifying functions.
   php.
 * I recently installed the [Simple Page Ordering](https://wordpress.org/plugins/simple-page-ordering/)
   plugin and after performing the reorder, the debug bar shows the below error.
   The reorder works, however if I reload the admin page. Don’t know if the issue
   is with the SPO plugin or with CPTUI
 *     ```
       Uncaught SyntaxError: Unexpected token <
       http://swimtopianew.wpengine.com/wp-admin/edit.php?post_type=feature line 1
       ```
   
 * What should I do about this?
 * [https://wordpress.org/plugins/custom-post-type-ui/](https://wordpress.org/plugins/custom-post-type-ui/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [10 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-with-debug-on-when-using-simple-page-ordering-plugin/#post-6963768)
 * I’d add SCRIPT_DEBUG alongside your WP_DEBUG as that will use unminified versions
   of js files, when available and set so. That’ll give you a lot more information
   about the source of the error. We shouldn’t be loading any CPTUI javascript on
   the post editor screen, as is.

Viewing 1 replies (of 1 total)

The topic ‘JavaScript error with Debug on when using Simple Page Ordering plugin’
is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-with-debug-on-when-using-simple-page-ordering-plugin/#post-6963768)
 * Status: resolved