1
ockley
I cannot attatch files or upload images
  • 2007/1/12 22:18

  • ockley

  • Just popping in

  • Posts: 11

  • Since: 2005/10/6


Hi everyone.

I have a problem with my XOOPS installation. When I try to upload any pictures or zip files in CBB 3.08 or anywhere else in modules that gives me the possibility.

I've checked the upload folder settings in CBB and that seems ok (the frontpage of the module confirmes)

No one of the editors in package 1.10 seems to be able to upload.

When I try FCKeditors test-function at "XOOPS_ROOT/class/xoopseditor/FCKeditor/editor/filemanager/upload/test.html" it gives me this error:

Warning: include(/xoopseditor.inc.php) [function.include]: failed to open streamNo such file or directory in /home/.magdlen/ockley/XXXXXXX.dk/class/xoopseditor/FCKeditor/editor/filemanager/upload/php/config.php on line 38

Warning
: include() [function.include]: Failed opening '/xoopseditor.inc.php' for inclusion (include_path='.:/usr/local/php5/lib/php'in /home/.magdlen/ockley/XXXXXXX.dk/class/xoopseditor/FCKeditor/editor/filemanager/upload/php/config.php on line 38
Path error
!


(I've placed the X's)

No modules (content, articles, cbb etc. is working).

Do any of you know what this is all about.

P.S: Anything else is working great.

P.P.S: I turned on debug, and would have loved some error-report, but no errors show. After uplod it just goes "ok - fine" and continues.

P.P.P.S: all folders i can think of is 777

Best Regards
ockley

XOOPS Version: 2.0.16
Module Name/Version: Every applicable
PHP Version: 5.1.2
MySQL Version: 5.0.24a-standard
Web Server Software (Apache/IIS/Other): Apache/1.3.37 (Unix) mod_throttle/3.1.2 DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.4 mod_ssl/2.8.22 OpenSSL/0.9.7e
Operating System: Vista
Theme you are using: Kubrick
Custom template: (Yes/No)No
PHP Debug Messages: None

2
phppp
Re: I cannot attatch files or upload images
  • 2007/1/12 22:23

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


check newbb/fckeditor.upload.php
make sure
define("FCKUPLOAD_DISABLED", 0);

3
ockley
Re: I cannot attatch files or upload images
  • 2007/1/12 22:49

  • ockley

  • Just popping in

  • Posts: 11

  • Since: 2005/10/6


I had that in mind, and I think part of the problem lies there. I just can't figure it out. The file goes like this:

require "header.php";

define("FCKUPLOAD_DISABLED"0);
define("XOOPS_FCK_FOLDER"$xoopsModule->getVar("dirname"));
include 
XOOPS_ROOT_PATH."/class/xoopseditor/FCKeditor/editor/filemanager/upload/php/upload.php";
?>


And this is the upload.php, there is giving me the error mentioned in the previous post. It gives me a path error!!

I think the system is wrong in some of the variables made to define the path from the root and inwards.

I'm not into the skeleton of the XOOPS system, sorry.

Thanks, anyway - any other suggetions?

/ockley

4
ockley
Re: I cannot attatch files or upload images
  • 2007/1/12 23:07

  • ockley

  • Just popping in

  • Posts: 11

  • Since: 2005/10/6


An update.

The FCKeditor seems to work now. I updated "article" to 1.00 and "Xoops-info" to 2.12.

There is still a problem with the attachments.

I click browse, selects a file with a proper extension. Click upload, and the browser just refreshes, with no error (and no attachment)

As far as i can se, the admin right are all set - it goes like this:

You can view topic.
You can start a new topic.
You can reply to posts.
You can edit your posts.
You can delete your posts.
You can add new polls.
You can vote in polls.
You can attach files to posts.
You can post without approval.

Best Regards
ockley

5
ockley
Re: I cannot attatch files or upload images
  • 2007/1/23 8:03

  • ockley

  • Just popping in

  • Posts: 11

  • Since: 2005/10/6


Sorry for bubbling, this post, but I can't figure it out myself. There seems to be a problem with my installation of Xoops. It refuses to upload anything via "attach".

I select the file, and click upload. The screen just refresh and nothing happens?

Thanks in advance
/ockley

6
Anonymous
Re: I cannot attatch files or upload images
  • 2007/1/23 8:51

  • Anonymous

  • Posts: 0

  • Since:


Can you upload anything at all in other modules?

I ask because I had an issue with "open-basedir" errors because the temp upload directory on the server wasn't writable.

I had to alters the server's php settings to set the upload_tmp_dir correctly.

Have you tried uploading with php debugging turned on?

HTH

7
ockley
Re: I cannot attatch files or upload images
  • 2007/1/31 10:08

  • ockley

  • Just popping in

  • Posts: 11

  • Since: 2005/10/6


I seems like attachments as a whole.

When uploading images in Article the debugger say:

"... Error loading mimetypes definition ..."

Wordpress does upload in its own module.

The other modules dosn't throw any errors. Lots of query and timer messages but no error (and no attachment).

the sites address is www.hjaelpmignu.dk

You'll have to register to post.

Thanks in advance
/ockley

8
siweb
Re: I cannot attatch files or upload images
  • 2007/1/31 10:29

  • siweb

  • Not too shy to talk

  • Posts: 150

  • Since: 2004/5/2 1


Replace /class/uploader.php with original one.

9
Peekay
Re: I cannot attatch files or upload images
  • 2007/1/31 12:53

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Operating system = Vista?. Is your server Linux/Unix or Windows?. I see a /usr in a path so I assume Linux.

If it was Win, depending on your distro, you might find that the PHP.ini defines C:\PHP\sessiondata as the path... but the PHP installer doesn't create the folder. As JAVesey points out, the PHP directive for the upload temp dir may need to be created manually too:

;;;;;;;;;;;;;;;;
File Uploads ;
;;;;;;;;;;;;;;;;

Whether to allow HTTP file uploads.
file_uploads On

Temporary directory for HTTP uploaded files (will use system default if not specified).
upload_tmp_dir C:PHPuploadtemp

Maximum allowed size for uploaded files.
upload_max_filesize 2M
A thread is for life. Not just for Christmas.

10
ockley
Re: I cannot attatch files or upload images
  • 2007/2/1 20:02

  • ockley

  • Just popping in

  • Posts: 11

  • Since: 2005/10/6


@siweb,

thats the one. I replaced the file with a fresh one from the install-package. That seems to do the trick.

Thank aaaaa lot

BTW: Ive had some serious talk with the uploader-file and it promised not to do that again

Thank you all. Good to have help with this sort of problems

Best Regards
/ockley

Login

Who's Online

160 user(s) are online (77 user(s) are browsing Support Forums)


Members: 0


Guests: 160


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits