WordPress.org

Ready to get started?Download WordPress

Forums

Media File Manager Advanced
SyntaxError: JSON.parse: unexpected end of data (8 posts)

  1. mgeslot
    Member
    Posted 1 year ago #

    When I create a new folder, I do not have the ability to associate a media, I get an error SyntaxError: JSON.parse: unexpected end of data.

    I think it is because the directory is empty when creating the error.

    Can you help me?

    http://wordpress.org/extend/plugins/media-file-manager-advanced/

  2. Zefta
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    I can't reproduce your error, can you give me more informations about :
    - Your wordpress version
    - The name of the new folder
    - The name of the media you try to move
    - The type of the media
    - If you have others media or folder

    The error occurs with all medias ?

    Sorry for the inconvenience

  3. mgeslot
    Member
    Posted 1 year ago #

    Hello,

    When I create a new folder, by default it is empty. No media file is associated with it.
    But when I want to associate media, I click on this new folder for open and it is at this moment that I encounter the error.

    - Your wordpress version => 3.5.1 in multisite
    - The name of the new folder => Book_formation
    - The name of the media you try to move => book1.pdf
    - The type of the media => pdf
    - If you have others media or folder => yes

    thank you for your help

  4. Zefta
    Member
    Plugin Author

    Posted 1 year ago #

    Ok... So i've check with wp 3.5.1 in multisite and it's working fine...

    Are you using the Super Admin account ?
    Do you have enough rights on the server ?
    The folder is accessible by ftp ?

  5. mgeslot
    Member
    Posted 1 year ago #

    hello,

    Here are the answers to your questions:
    Are you using the Super Admin account ? => yes
    Do you have enough rights on the server ? => yes
    The folder is accessible by ftp ? => yes

    For information on creating the new directory, it is empty. Where I can assign a document but if not I ftp associates a document then it fonctione.

    Thank you for your help

  6. Zefta
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    It will be interesting for me to check it on your server and try to fix it there.
    Is it possible to get access to this wordpress ? First to see what's is realy happend and an ftp acces can be welcome.
    you can send me email at elzamekt@hotmail.fr

  7. fbayle
    Member
    Posted 10 months ago #

    I found the bug and fixed it.

    In the file media-relocator.js

    line 215 :

    replace the line :

    if (dirj=="")

    width :

    if (jQuery.trim(dirj)=="")

    I've found a lot of alert(response) in your code, probably for debugging purpose...

  8. comziz
    Member
    Posted 7 months ago #

    Hello,

    The plugin was working fine yesterday, but today I'm having "SyntaxError: Unexpected end of input" I don't know why.

    I tried fbayle's fix but it didn't help.

    I think Custom Upload Dir plugin might be causing some problems, because that is the only related plugin that I have installed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.