ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Picture Upload Error in Version 1.6.9 and prior versions

August 08, 2010 7:30am

Subscribe [5]
  • #16 / Aug 15, 2010 5:04pm

    Toby_Wan_Kenoby

    12 posts

    Greg,

    the server path to the upload directory given in CP Home ›  Admin ›  Weblog Administration ›  File Upload Preferences ›  Edit File Upload Preferences
    is
    /home/httpd/vhosts/skirealestate.com/httpdocs/blog/images/uploads/

    My host thinks the path looks OK. He said he checked. The latter part seems OK to me, I mean the ....skirealestate.com/httpdocs/blog/images/uploads/
    This I have checked via what the FTP client shows as directory structure… Not sure what the part before that means.

  • #17 / Aug 16, 2010 5:10am

    John Henry Donovan

    12339 posts

    Tobias,

    To double check your server path can you dump the following into a new file called path-test.php in your root.

    <?php
    echo dirname($_SERVER['SCRIPT_FILENAME']) . '/';
    ?>

    What does that return?

  • #18 / Aug 16, 2010 5:30am

    Toby_Wan_Kenoby

    12 posts

    John,

    I need more instructions. Is this a text file you want me to put in my root directory? How do I run the file so it returns something?
    Thanks

    Tobias

  • #19 / Aug 16, 2010 5:32am

    John Henry Donovan

    12339 posts

    Tobias ,

    Yes create a text file with the above code inside it. Save that text file as path-test.php

    Upload that file via FTP into your root
    Then visit http://yourdomain.com/path-test.php

    It should tell you the correct path

  • #20 / Aug 16, 2010 4:29pm

    Toby_Wan_Kenoby

    12 posts

    John,

    here we go..  This is what was returned

    Parse error: parse error, unexpected T_STRING in /var/www/vhosts/skirealestate.com/httpdocs/path-test.php on line 2

    the code in the .php file was as you stated

    <?php
    echo dirname($_SERVER['SCRIPT_FILENAME']) . '/';
    ?>

    What went wrong?

  • #21 / Aug 17, 2010 1:06am

    John Henry Donovan

    12339 posts

    Tobias,

    OK can you change your server path for your upload preference from

    /home/httpd/vhosts/skirealestate.com/httpdocs/blog/images/uploads/

    to

    /var/www/vhosts/skirealestate.com/httpdocs/blog/images/uploads/

    And see if that works for you

  • #22 / Aug 17, 2010 5:26am

    Toby_Wan_Kenoby

    12 posts

    John,

    Success. This seems to work. I have to test it at home, but when trying the upload it went to the next screen and not the error message. Asking me if I wanted to re-size etc…

    MANY thanks for the help. Has the syntax for the path changed in the new version of EE? I can not recall ever messing with the path in the past so I am surprised it was the cause of the error. Might just help other people if we state here what happened.

    All right…... Back to blogging ‘-)

  • #23 / Aug 17, 2010 4:05pm

    Ingmar

    29245 posts

    Glad to see you’re all set. No, the path is and always has been a server side issue, no changes there. Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases