• Resolved roberto sousa

    (@roberto-sousa)


    wen i upload a image file on IE browser i get this error

    Error SyntaxError: Invalid character

    and on Firefox wen i upload image i get this error:

    Error SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

    and the code for the upload section is :

    [wtf_fu_upload deny_public_uploads="1" accept_file_types="jpg|jpeg|png|pdf|JPG|JPEG|PNG|PDF" deny_file_types="htaccess|php|php3|php4|php5|cgi|aspx|asp|aspx|sh|phtml|shtml|pl|py|pyc|pyo" inline_file_types="jpg|jpeg|png|pdf|JPG|JPEG|PNG|PDF" image_file_types="jpg|jpeg|png|pdf|JPG|JPEG|PNG|PDF" max_file_size="5" max_number_of_files="30" auto_orient="1" create_medium_images="0" medium_width="800" medium_height="600" thumbnail_crop="1" thumbnail_width="50" thumbnail_height="50"]

    can you help me out on this one please

    https://ww.wp.xz.cn/plugins/work-the-flow-file-upload/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author lynton_reed

    (@lynton_reed)

    possibly a theme or plugin conflict try the default theme and disabling other plugins one at a time to try and isolate where the conflict is.

    Thread Starter roberto sousa

    (@roberto-sousa)

    good morning

    i have deactivated all the plugins and i have changed the theme for one of the wordpress default theme and i still got the same error.
    i have noticed that it only gets the error with image files i have pdf file enable and it loads without error.

    is there anything that i could do to check were is the error?

    thanks

    Plugin Author lynton_reed

    (@lynton_reed)

    do all image files error, or just specific ones ?
    do smaller images error sometimes server timeouts can be the problem.

    Thread Starter roberto sousa

    (@roberto-sousa)

    how you doing mate ?

    i have resolved the problem again lol

    and the answer to you question is yes i have tried small and large file images and was giving the error.

    wen someone comes with the same problem tell them to contact the server provider and tell them to loosen up the restrictions on the PHP.ini

    thanks for the help

    lovely plugin 5*****

    Thread Starter roberto sousa

    (@roberto-sousa)

    is by any chances that we can make the wordpress to create the user folder by user name instead of user id ?

    Plugin Author lynton_reed

    (@lynton_reed)

    doin’ ok thanks roberto.

    yes some ISP’s set very tight server restrictions on upload file sizes and timeouts, of note the php.ini should have :

    max_execution_time
    max_file_size

    set accordingly to allow required time and upload size.

    is by any chances that we can make the wordpress to create the user folder by user

    I dont think so, that is how wordpress identifies user upload directories.
    However in the plugins admin “User Manage” tab the User names are listed , making users files easier to find.

    lovely plugin 5*****

    Thanks for that, you can make that official by giving a ***** review here if you like 🙂

    I dont think so, that is how wordpress identifies user upload directories.
    However in the plugins admin “User Manage” tab the User names are listed , making users files easier to find.

    Sorry to add to it. I posted this question after seeing it was embedded in this discussion. However, N-Media had a file upload system that allowed users to upload files, and those files when into user_uploads/username where username is their actual login name. It was a very nice way to download files. I just don’t know enough about php or java to know what needs fixed to make that happen. Any help would be appreciated.

    I have a lot of garbage users (They are given the role name, “The Uninvited”) which means that my actual users have user ids that are from 400 to 2000. And I know not whose is whose.

    Thanks!

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

The topic ‘please help on error’ is closed to new replies.