Title: SyntaxError: Unexpected token N Notice
Last modified: August 22, 2016

---

# SyntaxError: Unexpected token N Notice

 *  [Tom](https://wordpress.org/support/users/atomiktd/)
 * (@atomiktd)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-n-notice/)
 * I like this plugin it is simple and working. But recently it started to fail 
   on one of my directories and gives following error.
 *     ```
       SyntaxError: Unexpected token N Notice: Undefined offset: -1 in /home/.../public_html/wp-content/plugins/media-file-manager/media-relocator.php on line 236 [{"ids":129,"name":"horoscope","isdir":1,"isemptydir":0,"isthumb":0,"norename":0,"id":"","thumbnail_url":"http:\/\/www.taichi.poznan.pl\/wp-content\/plugins\/media-file-manager\/images\/dir.png"},
       {"ids":3,"name":"systemy","isdir":1,"isemptydir":0,"isthumb":0,"norename":0,"id":"","thumbnail_url":"http:\/\/www.taichi.poznan.pl\/wp-content\/plugins\/media-file-manager\/images\/dir.png"},
       ```
   
 * and much more of it! (this is just beginning of error output).
 * How can I fix it?
 * [https://wordpress.org/plugins/media-file-manager/](https://wordpress.org/plugins/media-file-manager/)

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

 *  Thread Starter [Tom](https://wordpress.org/support/users/atomiktd/)
 * (@atomiktd)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-n-notice/#post-5707453)
 * Nobody with any idea what happens?
 * I checked it on another server with copy of production site. It shows slightly
   different message.
 *     ```
       SyntaxError: Unexpected token <
       Notice: Undefined offset: -1 in /home/.../public_html/wp-content/plugins/media-file-manager/media-relocator.php on line 236
       [{"ids":0,"name":"yin-yang_medium.gif","isdir":0,"isemptydir":0,"isthumb":0,"norename":0,"id":"393","parent":"","thumbnail":-1,"thumbnail_url":"http:\/\/...\/wp-content\/uploads\/site\/yin-yang_medium.gif"}]
       ```
   
 * It happens on directory with one and only image.
    All other plugins are deactivated
   + 2015 theme.
 *  Thread Starter [Tom](https://wordpress.org/support/users/atomiktd/)
 * (@atomiktd)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-n-notice/#post-5707454)
 * OK, I’ve pinned it out. It stops when I set WP_DEBUG to false in wp-config.php
 * It is resolved temporarily. Cosmetic fix. Something is going on and maybe worth
   to be fixed.
 *  Plugin Author [aueda](https://wordpress.org/support/users/aueda/)
 * (@aueda)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-n-notice/#post-5707497)
 * Does the latest development version fix your problem?
    [https://downloads.wordpress.org/plugin/media-file-manager.zip](https://downloads.wordpress.org/plugin/media-file-manager.zip)
 *  Thread Starter [Tom](https://wordpress.org/support/users/atomiktd/)
 * (@atomiktd)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-n-notice/#post-5707499)
 * Unfortunately not 🙁
 * Still the same old problem.

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

The topic ‘SyntaxError: Unexpected token N Notice’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/media-file-manager.svg)
 * [Media File Manager](https://wordpress.org/plugins/media-file-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-file-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-file-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/media-file-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-file-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-file-manager/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Tom](https://wordpress.org/support/users/atomiktd/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-n-notice/#post-5707499)
 * Status: not resolved