Hi all,

I'm hoping you can help me with this sticky problem which is driving me mad. I'm hoping some of you more experienced coders might be able to help me get to the root of the problem.

Basically, it all appears to work, returns no errors and the file isn't there. It's fine for creating directories, but the file upload doesn't work.

I used the 'test' file which you can use for testing (funny that) and it returns the following error:

Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/tmp/phpZ0X960) is not within the allowed path(s): (/home/thesypuk/public_html) in /home/thesypuk/public_html/testbench/fckeditor/editor/filemanager/upload/php/upload.php on line 105

Now I've tried all the permutations of the various configs I can think of, but I'm still getting the same error. Can someone please help?

The help available for these problems on FCKEditor is atrocious. I googled my problem solidly for a weekend and found nothing useful and then finally posted on a forum for it. I googled the problem again today (just to see if anything came up) and the only thing I found was the post I made last week!!

I'm including/attaching all the relevant files. This is upload.php, config.php, fckeditor.js, util.php and commands.php.

The code here is what's in the page containing a few variables passed to the editor

<script type="text/javascript" src="../../fckeditor/fckeditor.js"></script>
 <script type="text/javascript">

    function ReplaceAllTextareas() {
            // replace all of the textareas
            var allTextAreas = document.getElementsByTagName("textarea");
            for (var i=0; i < allTextAreas.length; i++) {
            var oFCKeditor = new FCKeditor( allTextAreas[i].name ) ;
            oFCKeditor.BasePath = "http://testbench.thesyp.org.uk/fckeditor/" ;
			oFCKeditor.ToolbarSet = 'Default' ;
            oFCKeditor.ReplaceTextarea() ;
            }
    }
</script>

I'd be really grateful for any help you can offer... I'm supposed to have my redesign live by the end of this week!

[edit]
I should add, I did have this working fine when I first installed it, but then my host decided to change security settings and won't tell me what they did!

    Any ideas?

    Anyone?

    Please?

    I've spent another 3 hours fiddling with this today and have no hair left!

      bump
      Please?

      This is the last thing to resolve and I just can't do it!

        This is some restriction in php configuration.
        you need open_basedir to be null
        I have the same problem.

          That's the thing though - I can't change that as the config is managed by my host. Somehow I need to change the script so it doesn't move outside my operating parameters

            5 days later

            i found the way to solve my problem, check this thread, might work for you also

              Thanks autocolismo, but sadly I don't have access to those files - I'm running on a hosted server which won't allow me access 🙁

                Write a Reply...