Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthoreiffel
    • CommentTimeDec 20th 2005
    I've been having problems since the initial install with uploading images.

    What happens is that i go through the upload page, click 'upload' and nothing happens. The yellow message box at the is empty and nothing else about the site has changed. No upload. The import page works fine though.

    From other posts on this site, I've tried putting


    at the top of my globals.php. This gave me this php error:

    Warning: rename(): open_basedir restriction in effect. File(/tmp/phpCnQApk) is not within the allowed path(s): (/home/mydomain/public_html) in /home/mydomain/public_html/plogger/admin/plog-admin-functions.php on line 62

    The open_basedir error ran a bell from my hosts as I've had problems installing other php software (oscommerce) on their servers before.

    I tracked this down again to this page:

    which states:

    If you experience the open_basedir security message when using an image upload script we recommend that you change any copy() commands found within the script to the command move_uploaded_file().

    So, I uncommented line 59 in plog-admin-functions.php and commented line 60, like so:

    if (!move_uploaded_file($tmpname,$final_fqfn)) {
    // if (!rename($tmpname,$final_fqfn)) {
    $result['errors'] .= 'Could not move file! ' . $tmpname .' to '.$final_fqfn;
    return $result;

    And now the upload page works.

    But the import page doesn't.

    Does anyone know what i can do to get around my hosts restrictions so that i can have both upload and import pages working. Or do i have to chose one or the other?
    • CommentAuthoreiffel
    • CommentTimeDec 21st 2005
    maybe the problem is that the rename function is trying to write to /tmp - which my hosts won't allow.

    is there maybe something i can change so that it writes to /home/mydomain/public_html/tmp instead?
    • CommentTimeDec 21st 2005
    You could try using move_uploaded_file() instead of rename(). More info here:
    • CommentAuthoreiffel
    • CommentTimeJan 4th 2006 edited
    yeah - that's what i'vew done by uncommmenting

    if (!move_uploaded_file($tmpname,$final_fqfn)) {

    and commenting

    if (!rename($tmpname,$final_fqfn)) {

    This works for the upload page - problem is that now the import page is broken.

    Above where I've done that in plog-admin-functions.php there is this comment:

    // cannot use move_uploaded_file here, because plog-import uses the same function and
    // and doesn't deal with uploaded files

    So is it possible for me to have both import and upload working with these hosts?
    • CommentTimeJan 4th 2006
    I fixed this in SVN, you can see my solution at