Not signed in (Sign In)

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

  1.  
    hello!

    i have installed plogger succesfully. now i want to upload my pictures.
    creating an collection is working. if i try to create an album - Error: "Could not create directory !"

    What's wrong? my provider is xail.net!

    Please help me!
    • CommentAuthorPele
    • CommentTimeApr 14th 2007
     
    I think php safe mode is on on your server, you can turn it off via an .htaccess file in your gallery root (although I have no idea how to do this), or you can edit your php.ini file to turn it off (this I can do, just look for safe_mode on and change it to safe_mode off).
    • CommentAuthorkajinek32
    • CommentTimeOct 7th 2007
     
    and is there any other possibility? (eg. change script)? Because, i guess webhoster wouldn't allow to turn it off...
  2.  
    see here:

    turn off safe mode
    Thankful People: kajinek32
    • CommentAuthorkajinek32
    • CommentTimeOct 8th 2007 edited
     
    unfortunately this doesn't work :( It seems that there is not permitted to set the safe_mode off by php (neither by htaccess, i guess, but i'm not sure)

    thanks anyway
  3.  
    well you could edit the add_album() function in plog-admin-functions.php to not create the directory, then you could use phpmyadmin or something to get the directory name out of mysql and then create the directories manually...

    good thing though... php 6 no longer has safe mode... :)
    • CommentAuthorkajinek32
    • CommentTimeOct 9th 2007
     
    yup, i have to change the function, but as far as i know it is not only about this function, it does not permit me to upload photos because of move_uploaded_file() (safe_mode restriction again).

    Unfortunately, hostings will have php6 maybe in next century (today usually 4th) :(
    • CommentAuthorkajinek32
    • CommentTimeOct 9th 2007 edited
     
    So I have finally solved it. If you could not set safe_mode off, you can do this workaround:

    in the file admin/plog-admin-functions.php

    change function makeDirs (comment everything inside) and write only:

    return true;


    variable $create_path set as empty string, like that:

    $create_path ="";


    change function move_album
    from:

    $source_path = $config['basedir']."images/".$source_collection_name."/".$source_album_name;
    $target_path = $config['basedir']."images/".$target_collection_name."/".$source_album_name;

    to :
    $source_path = $config['basedir']."images/"; //.$source_collection_name."/".$source_album_name;
    $target_path = $config['basedir']."images/"; //.$target_collection_name."/".$source_album_name;


    function add_picture
    from

    $final_fqfn = $config["basedir"].'images/'.$create_path.'/'.$final_filename;

    to

    $final_fqfn = $config["basedir"].'images/'.$final_filename;


    function move_picture
    from

    $directory = SmartStripSlashes($album['collection_path'])."/".SmartStripSlashes($album['album_path'])."/";


    to:

    $directory = "/";


    function delete_picture
    from

    $full_path = realpath($config['basedir'] . 'images/' . $picture['path']);

    $full_path = realpath($config['basedir'] . 'images' . $picture['path']);


    function update_album

    from:

    $source_path = $config['basedir'] . "images/".$source_collection_name."/".$source_album_name;
    $target_path = $config['basedir'] . "images/".$source_collection_name."/".$target_name;

    to:

    $source_path = $config['basedir'] . "images/";
    $target_path = $config['basedir'] . "images/";

    and:


    $new_path = $source_collection_name."/".$target_name."/".$filename;


    to:

    new_path = "/".$filename;


    It cancels directories, but photos will be still in collections and albums.
    • CommentAuthorji
    • CommentTimeOct 16th 2007 edited
     
    hi kajinek32,

    i got the same problem.

    Your changed function.php works like the originial? :)

    could you send me your file via email? (ji_graphics@hotmail.de)
    • CommentAuthorJae
    • CommentTimeDec 16th 2007
     
    kajinek32, if you could, please send me the fixed admin/plog-admin-functions.php too because I do not understand how to change it :O my e-mail is tatsuki.ryuu@gmail.com :D thanks if you could!