Loading...
 
Skip to main content

Features / Usability


Images and Attachments uploads failing

My wiki users can no longer attach files to wiki pages.

Example error output:

Copy to clipboard
Warning: move_uploaded_file(/tmp/AoDBG.jpg.tmp): failed to open stream: No such file or directory in c:\easyphp1-8\www\tiki192\tiki-upload_image.php on line 172 Warning: move_uploaded_file(): Unable to move 'C:\EASYPH~1\\tmp\php331.tmp' to '/tmp/AoDBG.jpg.tmp' in c:\easyphp1-8\www\tiki192\tiki-upload_image.php on line 172


We've been running our wiki for several months with ))TikiWiki(( 1.9.2 and have had very few serious problems. This one is killing us since most of our image and document assets are contained on the wiki.

My guess is that one of the other wiki adminstrators errantly changed a setting, but I can't figure out which one. (This is not my primary job, but wiki is a convenient way for us to manage game content.)

Settings

Wiki attachments
Wiki attachments: enabled
Use a directory to store files: enabled; using 'attachments'
Image Galleries
Use a directory to store images: enabled; using 'galleries/images/'
Enable directory batch loading: enabled; using 'galleries/images/'
File Galleries
Use a directory to store files: enabled; using 'galleries/files'

Please note: I am not a PHP or SQL guru though competent in several other programming languages. So bear with my (short term) ineptitude while I figure this out. 😊 Thanks for any help.


You may have already checked this but check the permissions on the directories and which user owns the directory. Can the web account (apache access the directories. Also see if the file being reference exist in the directories. Check the source and the destination for the referenced files.

> My wiki users can no longer attach files to wiki pages.
>
> Example error output:

>
Copy to clipboard
> Warning: move_uploaded_file(/tmp/AoDBG.jpg.tmp): failed to open stream: > No such file or directory in > c:\easyphp1-8\www\tiki192\tiki-upload_image.php on line 172 > > Warning: move_uploaded_file(): Unable to move 'C:\EASYPH~1\\tmp\php331.tmp' > to '/tmp/AoDBG.jpg.tmp' in > c:\easyphp1-8\www\tiki192\tiki-upload_image.php on line 172 >

>
> We've been running our wiki for several months with ))TikiWiki(( 1.9.2 and have had very few serious problems. This one is killing us since most of our image and document assets are contained on the wiki.
>
> My guess is that one of the other wiki adminstrators errantly changed a setting, but I can't figure out which one. (This is not my primary job, but wiki is a convenient way for us to manage game content.)
>

>
Settings

> Wiki attachments
> Wiki attachments: enabled
> Use a directory to store files: enabled; using 'attachments'
> Image Galleries
> Use a directory to store images: enabled; using 'galleries/images/'
> Enable directory batch loading: enabled; using 'galleries/images/'
> File Galleries
> Use a directory to store files: enabled; using 'galleries/files'
>
> Please note: I am not a PHP or SQL guru though competent in several other programming languages. So bear with my (short term) ineptitude while I figure this out. 😊 Thanks for any help.
>



Hi.

Since update Tiki 1.9.1 to 1.9.2 I have the same problems. An update to 1.9.3.1 do not fix the problem.

Someone an idea?

Warning: move_uploaded_file(tmp/Shortcuts_Word.pdf.tmp) function.move-uploaded-file: failed to open stream: No such file or directory in C:\Programme\xampp\eclipse\workspace\wiki\tiki-upload_file.php on line 159

Warning: move_uploaded_file() function.move-uploaded-file: Unable to move 'C:\DOKUME~1\scholza\LOKALE~1\Temp\phpE0.tmp' to 'tmp/Shortcuts_Word.pdf.tmp' in C:\Programme\xampp\eclipse\workspace\wiki\tiki-upload_file.php on line 159


I use an XAMPP with PHP Version 5.0.4 and MySQL 4.1.12

AMOKANDY

Hi,

the answer of this question is, the path entry in the wiki is incorrect.

The path must be absolut. 😎

Like:
d:\programme\xampp\tmp

Greetings

AMOKANDY