• Hi !!
    I tried to install TinyMCE Advanced on my WP 2.7 but it doen’s work fine ..
    I did the installation with the uoload-zip-method and it worked fine .. Then I configured it with the new settings item but when I try to create a new post or page I get lots of PHP-Errors

    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/de.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1187
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/de_dlg.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1190
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/en.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1194
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/en_dlg.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1199
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/de.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1187
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/de_dlg.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1190
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/en.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1194
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/en_dlg.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1199
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/de.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1187
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/de_dlg.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1190
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/en.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1194
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/en_dlg.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1199
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/de.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1187
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/de_dlg.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1190
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/en.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1194
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/en_dlg.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1199
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/de.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1187
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/de_dlg.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1190
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/en.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1194
    
    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/en_dlg.js) is not within the allowed path(s): (/var/kunden/webs/mtbrezina/mpix-at/:/tmp/:/usr/share/php/) in /var/kunden/webs/mtbrezina/mpix-at/wp-admin/includes/post.php on line 1199

    I think it’s open_basedir because it’s configured well and it works fine with all other things I have on this server ..
    Maybe do I have to set a path for a temporary directory in WP ??

    Thnanks for helping !!
    cu brainzina

Viewing 3 replies - 1 through 3 (of 3 total)
  • same problem…

    I can tell you what causes those error messages and how to get rid of them. But I can’t be sure of the wider consequences – so at your own risk.

    In file post.php after installation of TinyMCE ((about line 1183) this causes that crash.

    if ( function_exists('realpath') )
    $path = trailingslashit( realpath($path) );

    It seems to set the value of the $path to empty. I have just commented the line out (after making it a single line) so

    //if ( function_exists('realpath') ) $path = trailingslashit( realpath($path) );

    The error messages no longer appear but I can’t be sure what problems it might generate elsewhere.

    Regards

    Nick

    To resolve issue about php warning with realpath(), you have to test if a path exists before apply realpath() to it. So, for example, edit yourWPblogpath/wp-admin/includes/post.php, at line 1263 and substitute this

    if ( function_exists('realpath') )
      $path = trailingslashit( realpath($path) );

    with

    if ( function_exists('realpath') )
      if (file_exists($path)) {
        $path = trailingslashit( realpath($path) );
      } else {
        $path = "";
      }

    Obviously, this patch has to be applied on all others core files using realpath() function this way, i.e.
    wp-admin/includes/class-ftp.php
    wp-admin/load-styles.php
    wp-admin/load-scripts.php

    This “bug” is due to the inclusion of the Hardened-PHP Project’s Suhosin Patch in many distributions of PHP (version > 5.2.3) by default (Ubuntu Hardy 8.04 for example).
    This patch replaces PHPs realpath function with the BSD implementation, which ignores the last path component.

    The workaround is to use the file_exists function to verify that the file exists before using realpath to get its real path string.

    Joomla! soffers of the same bug also and the patch was not included
    yet, even in the actual 1.5.15 version.
    Hope WordPress developer take care of this quickly.

    [Explanation taken from
    http://www.php.net/manual/en/function.realpath.php#82770
    http://www.hardened-php.net/suhosin/a_feature_list:realpath.html
    ]

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

The topic ‘TinyMCE Advanced PHP Error’ is closed to new replies.