The problem is that file upload doesn't work on PHP5. I have the same installation on a PHP4 server and there i have no problem.
I have the following error log : See attachment
Anyone a solution?
I have the following error log : See attachment
Anyone a solution?
Re: Problems with PHP5
Re: Problems with PHP5
From your first error message, the server doesn't let PHP code open files in the /var/tmp/ directory. The rest of the bugs are just cascades from that first one. So it's not that FCKeditor doesn't work with PHP 5, it's that your server is restricting some of the PHP calls that can be made and FCKeditor makes some bad assumptions.
FCKeditor should be changed to have better error detection of when the file open call doesn't succeed (line 89 of 'editor/filemanager/connectors/php/util.php') so that it doesn't attempt to continue with the read operation when the file hasn't been opened. This would eliminate all but the first error message, which is really where your issue lies.
As one workaround, you could open up the permissions of the open_basedir directive to allow the /var/tmp directory. This would most likely be in your php.ini file.
As another workaround, you could modify FKCeditor to move the file out of the /var/tmp folder and put it somewhere that is allowed by your open_basedir directive. That code would go somewhere near the top of the FileUpload function found in 'editor/filemanager/connectors/php/commands.php'. Use the PHP function move_uploaded_file.
As yet another workaround, you could set the server to upload files into a directory that is in your open_basedir path. That'd be changed in your server configuration settings.
Re: Problems with PHP5
Kyle created a ticket for it: http://dev.fckeditor.net/ticket/1906.
This should be fixed very soon and will be available in a nightly build package until the next release (2.6).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Problems with PHP5
Many thanks.
Re: Problems with PHP5
Many thanks.
Re: Problems with PHP5
Do i need to contact my host to allow the open_basedir function? I thought with this fix uploading an image would be possible alltough this function was disabled.
Edit : Is it correct that there's no directory 'upload' anymore : fckeditor/editor/filemanager/upload
Attachments:
Re: Problems with PHP5
Actually 2.5 didn't have upload directory as well.
Are you sure that the file isn't on the server? I assume that you have used the QuickUpload functionality, which by default place files inside "userfiles" directory.
The trick is that in such case, this file will be not visible in the file browser (adjust "QuickUploadPaths" to modify this behaviour).
Take a look at the config file to see where FCKeditor should save uploaded files, then browse directories via FTP and search for this file once again, it should be somewhere...
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Problems with PHP5
Ok, another thing to check: http://bugs.php.net/bug.php?id=38934
make sure that upload_tmp_dir is in open_basedir.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Problems with PHP5
Re: Problems with PHP5
Hope to help some users with the same problem by posting my solution here.