• Resolved Tytan914

    (@tytan914)


    After I’ve changed the main directory in the plugin settings accidentely from “/project/uploads” to “/project/uploads//bilder/” it happened instantly this:

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/.sites/381/site131/web:/home/.sites/381/site131/tmp:/usr/share/pear) in /home/.sites/381/site131/web/project/wp-includes/functions.php on line 1497

    I deleted everything and loaded up my BackUp, but it’s still there! I can only see this! I don’t know how to fix it. I guess the Plugin changed something in Apache and I have no idea about Apache and PHP :/.

    Please help me to fix this problem.

    Best Regards

    https://ww.wp.xz.cn/plugins/media-from-ftp/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Katsushi Kawamori

    (@katsushi-kawamori)

    Hi Tytan914,

    It would not be better your question did other than here?

    Thread Starter Tytan914

    (@tytan914)

    Dear Katsushi,

    No because you wrote this plugin, that means you know exactly what the plugin does with the functions.php/open_basedir after changing the directory in the settings of your plugin.

    So please help me.

    Regards

    Plugin Author Katsushi Kawamori

    (@katsushi-kawamori)

    Will you are using an old version of Media from FTP?
    I think that it is the upload directory may be undone.

    Please call the options.php the management screen of worpdress.
    http://xxxxx.xxx/wordpress/wp-admin/options.php

    upload_path
    upload_url_path

    The two items mentioned above, please blank. I think that it is back to the original directory structure.

    Media from FTP is the current Version 7.4. Please use the latest version.

    Thread Starter Tytan914

    (@tytan914)

    Yeah I guess so!

    Thanks 4 quick support, I really appreciate it.
    What exactly should I blank of them?

    // If upload_url_path and upload_path are both default values, they’re locked.
    if ( get_option( ‘upload_url_path’ ) || ( get_option(‘upload_path’) != ‘wp-content/uploads’ && get_option(‘upload_path’) ) ) {
    $whitelist_options[‘media’][] = ‘upload_path’;
    $whitelist_options[‘media’][] = ‘upload_url_path’;
    }
    } else {
    $whitelist_options[‘general’][] = ‘new_admin_email’;

    Maybe a noob question, but I have no idea about PHP as I said =)

    Thanks 4 help.

    Plugin Author Katsushi Kawamori

    (@katsushi-kawamori)

    Hi Tytan914,

    Please use the phpMyAdmin.

    In wp_options table, please option_value of upload_path and upload_url_path blank.

    Thread Starter Tytan914

    (@tytan914)

    BIG thanks to you bro!

    You literally saved my ass, it worked!

    Best Regards!

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

The topic ‘PHP Error – Need help please!!’ is closed to new replies.