zenphoto forums » General Zenphoto Discussion

Ajax file manager problem

(7 posts)
  • Started 2 years ago by WhiteChrys
  • Latest reply from if07087
  1. WhiteChrys

    Member
    Joined: Sep '10
    Posts: 16

    Hello -

    I migrated a Zenphoto 1.3.1.2 install to a GoDaddy server, and now I am having problems with the Ajax File Manager in the HTML editor. When I try to upload a new image or create a folder, it pops up an error saying "The folder path is not allowed."

    I noticed that there are two javascript errors as well:
    "missing } after property list" on /zp-core/zp-extensions/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php?editor=tinymce&type=img&language=en
    Line 196

    and

    "currentFolder.friendly_path is undefined" on /zp-core/zp-extensions/tiny_mce/plugins/ajaxfilemanager/jscripts/ajaxfilemanager_c.js
    Line 186

    Any clues as to how to fix this? It worked fine on the previous server.

    Posted 2 years ago #
  2. WhiteChrys

    Member
    Joined: Sep '10
    Posts: 16

    I forgot to mention - I think the Ajax File Manager is looking at the correct folder ("uploaded") because it lists all of the existing files just fine.

    Posted 2 years ago #
  3. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,341

    I have no real idea right now but check the permissions on the filemanager folders/files.

    Don't forget to read the Forum rules and usage resources
    Posted 2 years ago #
  4. dezign

    Apprentice
    Joined: Aug '10
    Posts: 2

    under the "news" tab after clicking "new article" when I click insert/edit image and select the option to upload an image (small - just a few Kbytes in size) after a few seconds, I get this error message ...

    "File too large. (max: 10M b)"

    In my php.ini I have
    upload_max_filesize = 10M

    from another post on your forum: I found that
    the AjaxFileManger upload max file size used by tiny_mce is on
    line 70 of 'config.base.php' and is set to this ...

    //UPLOAD OPTIONS CONFIG
    define('CONFIG_UPLOAD_MAXSIZE', ini_get('upload_max_filesize'));
    //define('CONFIG_UPLOAD_MAXSIZE', 50 * 1024 & 1024 ); //by bytes

    -- it works, I can upload, when I change it to this ...

    //UPLOAD OPTIONS CONFIG
    //define('CONFIG_UPLOAD_MAXSIZE', ini_get('upload_max_filesize'));
    define('CONFIG_UPLOAD_MAXSIZE', 50 * 1024 & 1024 ); //by bytes

    (I'm assuming that is 50MBytes maximum)

    I saw in a previous post that " The next nightly ties the upload size now to the ' upload_max_filesize' "

    If possible I'd like to change it back to that ... any suggestions as to the cause of the error message?

    thank you your comments or advice would be greatly appreciated when you get time to reply.

    dezi

    Posted 1 year ago #
  5. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,766

    Well, the filemanager realy will need to obey the limits placed by the PHP ini file. However, the ini_get returns a number like 10M, so the define needs to be changed to convert this into bytes. We will make that change.

    Don't forget to read the Forum rules and usage resources
    Posted 1 year ago #
  6. if07087

    Apprentice
    Joined: Jul '12
    Posts: 2

    The solution for this problem :
    After upload file, ajaxfilemanager show info "SyntaxError: missing } after property list" in alert window

    search in the ajax_file_upload.php

    $ manager = new Manager ($ upload-> GetFilePath (), false);

    Change in:

    $ manager = new Manager (dirname ($ upload-> GetFilePath ()), false);

    reference-url
    http://forum.phpletter.com/viewtopic.php?f=2&t=1228

    Posted 9 months ago #
  7. if07087

    Apprentice
    Joined: Jul '12
    Posts: 2

    ajax_file_upload.php location "tiny_mce/plugins/ajaxfilemanager/ajax_file_upload.php"

    Posted 9 months ago #

RSS feed for this topic

Reply

You must log in to post.