• TeeMko

    (@teemko)


    Hi guys,

    When trying to upload files to my site, I get these errors:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp//book.tmp) is not within the allowed path(s): (VIRTUAL_DOCUMENT_ROOT) in /www/zxq.net/s/p/u/spupub/htdocs/wp-includes/functions.php on line 2340

    Warning: touch() [function.touch]: SAFE MODE Restriction in effect. The script whose uid is 847762 is not allowed to access /tmp owned by uid 0 in /www/zxq.net/s/p/u/spupub/htdocs/wp-admin/includes/file.php on line 177

    Zrušiť “book.png” sa nepodarilo nahrať kvôli chybe
    Nahraný súbor nemohol byť presunutý do /www/zxq.net/s/p/u/spupub/htdocs/wp-content/uploads.

    Translation of the above:
    Cancel ‘Book.png “failed to load due to an error
    The uploaded file could not be moved to /www/zxq.net/s/p/u/spupub/htdocs/wp-content/uploads.

    Pict of error: http://s1.postimg.org/l5henvub3/Upload_Problems.png

    I am using zymic as my webhost and the site name is http://spupub.zxq.net

    From the info I have gathered there is some issue with the tmp file? Any idea on what I need to change to configure it the right way?

    Thanks,
    TeeMko

Viewing 12 replies - 1 through 12 (of 12 total)
  • esmi

    (@esmi)

    The first two warnings suggest that this is a server configuration issue. Have you spoken to your hosts about it?

    Thread Starter TeeMko

    (@teemko)

    Hi esmi,

    I have not spoken to my host, since I just set it up, and thought it could be a problem of mine, and not theirs. Thats why I am asking here first, before I start bothering them 🙂

    TeeMko

    esmi

    (@esmi)

    This is something that appears to be completely outside of your control. Are you uploading files via Add media?

    Thread Starter TeeMko

    (@teemko)

    Yes, I am uploading via Add media.

    I have one error less after doing this:

    Added: define(‘WP_TEMP_DIR’,’/www/zxq.net/s/p/u/spupub/htdocs/tmp’);
    To config.php

    And changed in Multimedia Options:
    folder where to store:/www/zxq.net/s/p/u/spupub/htdocs/tmp
    URL: /www/zxq.net/s/p/u/spupub/htdocs/tmp

    Now this is what I’m getting:
    http://s23.postimg.org/k4kywcnhn/Upload2.png

    I’m sure I need to change something, somewhere, to get this working.

    TeeMko

    Thread Starter TeeMko

    (@teemko)

    Ok, I’ve found out that changing Multimedia options had no effect, only adding to config.php removed one error.

    The other problem I have no idea how to resolve.
    I have tried to add
    php_flag safe_mode off
    to my htaccess file but that just caused an error and upload would not even load.

    Anyone have ideas? Would be weird if uploading was impossible.

    Thanks for any suggestion.

    esmi

    (@esmi)

    I have one error less after doing this

    Who told you to add that as a temp folder path?

    Thread Starter TeeMko

    (@teemko)

    Nobody, I am just trying whatever I find online as suggestions 😀

    Damn, all this stuff. Everything works great on localhost, but getting stuff online is just full of all these restrictions…

    esmi

    (@esmi)

    The root cause of your woes is:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp//book.tmp) is not within the allowed path(s): (VIRTUAL_DOCUMENT_ROOT) in /www/zxq.net/s/p/u/spupub/htdocs/wp-includes/functions.php on line 2340

    Warning: touch() [function.touch]: SAFE MODE Restriction in effect

    You’ve picked a host whose server really is not configured to run WordPress. It’s nothing that you’ve done wrong. It’s just the way the server has been set up. You need to speak to them about it or, worst case scenario, look for another host.

    Thread Starter TeeMko

    (@teemko)

    Do you know of any good free host that is able to run wordpress without problems? 000webhost and zymic are out of the question, the first one has a memory problem, and this one these other errors…

    Any idea of a good host?

    esmi

    (@esmi)

    Sorry – we don’t recommend using free hosting to run a WordPress site for exactly these kinds of reasons. At the end of the day, you get what you pay for.

    Thread Starter TeeMko

    (@teemko)

    What about paid alternatives. Some that have 3 month plans and are sure to work for wordpress?

    esmi

    (@esmi)

    Although we do not personally endorse them, there are some hosts listed here. Also searching the forums using the keywords “host” or “hosting” may provide you with some suggestions. However, due to the amount of spam that these topics attract, I’m afraid I will have to close this one.

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

The topic ‘Upload issues on new host. Warning: file_exists() [function.file-exists]:’ is closed to new replies.