Loading...
 
Skip to main content

Features / Usability


Attach file yeilds database error?

Hey all, I am running TikiWiki 1.8.5 on PHP 4.3.10 with mySQL version 4.0.18 on Mac OS X server. It has been humming along fine now for a few months, but now when I try to attach a file to a wiki page I am getting a database error. Nothing has changed on the server, so I am not sure where to start debugging this. Any help would be appreciated.

There error is:

An error occured in a database query!


Context:

File
/tiki-index.php

Url
/tiki-index.php?page=Test%20Page

Query:

insert into `tiki_wiki_attachments`(`page`,`filename`,`filesize`,`filetype`,`data`,`created`,`downloads`,`user`,`comment`,`path`) values(?,?,?,?,?,?,0,?,?,?)

Values:

0
Test Page

1
AD and NHD.pdf

2
1157626

3
application/pdf

4
%PDF-1.3 % 2 0 obj << /Length 1 0 R /Filter /FlateDecode >> stream x]n9}W-xyY?`gFc~%EU?GYU`&,{1L&q?
=cpzpfe@dh*
Wjk~m/|1 ??D M\W?./~i0yqZ

8 |n0:M#~K;?iF&bFT1yy
Q/qa?6#:?nOO\R.kaZf$8?PYl4j}`5?$C`y~9R,3\Q?Km[?1&I??RG???u;??TK :~y.D
?_.FVI-v?NLW?"??}3gY!Dr?+old1-S$c|&2? loc¸U>,K-6vDGxn7,e@6#?8 ??P.zh/Jvqg#9,\e&)x~} xTb?n5h"fa .v???
ncFwJd #W(H1
n

?gPSc s/v "Dj_aE?H\}#;JD?@
???O,E
*>H`Lsy%22Q?>ta:B}7#*\??Q
¬?

x]c!eC?'clmD*tO_kkr5 uN!o39- ai???V=??L!wGP;wc÷?ˆkh?x?/%?2uv\h?s 23-Hw) &jDZK|[?po$m????G|`,;iiZVH2kA@Z@4Q c@l?
6kW^mHG??=PvZ?AE\rS#"XFF?$<@= $9voDz9dL I1q YfEA"2?O A$u/)<@*?LP?!C_?4 @ A0h F?_wSl[pp.C{=4dMkp??Ho/>L;U`"t2<"4T8LVqh=5=:IÆ?*| [~Qdˆb\;' n

f% X? J0EtY!,ZpvLH"j?i?O"y-W0c{?*m=  _
lOBkD?Bh}$GSl( M)F?w?6v~=.<4r"??eMIhV !2 -UåY h5
^UN#,B/P[rzkIg8.`u(:jt.3 E`;zB3#??

s!}HV/gQj
0gR<4@<Jt5?;R<X1)ed-?_wWh}7&YB ; ?NMFu0'3JH2??B?gbRE$I?zs2{!%N>"-I"X ?J@N?@"
JjU"rv1j`Dbr "b_cF mWV5R @#C.pDkjjJlU? wWq}t@We??p5I p=j|-kQ4NB;\=g??a=z&U%g2?=! 2Dv_ #fBSTt#Dkmw.?`!A??0:C*qaPuE6?Z8'QfW:1dq117"YQ-

It looks like you're trying to store the attachment in the database. Try storing it in a file directory instead. On the Wiki settings admin page (tiki-admin.php?page=wiki), select Use a directory to store files.

See the Tiki docsQuestion for details.

HTH,

-Rick