PDA

View Full Version : Problems with attachments...


FleaBag
03-10-2003, 07:17 AM
OK, so I had the Attachments As Files hack installed and I upgraded to 2.3.0. That hack doesn't work with 2.3.0, so I removed it.

I get the following error when attempting to post attachments on my BB...


Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/var/tmp/phpTGipKc) is not within the allowed path(s): (/home/dragonninja) in /www/dragonninja/admin/functions.php on line 1763

Warning: move_uploaded_file(/var/tmp/phpTGipKc) [function.move-uploaded-file]: failed to create stream: Operation not permitted in /www/dragonninja/admin/functions.php on line 1763

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/var/tmp/phpTGipKc' to 'upload/vba7c4835ab' in /www/dragonninja/admin/functions.php on line 1763

Warning: filesize() [function.filesize]: Stat failed for upload/vba7c4835ab (errno=2 - No such file or directory) in /www/dragonninja/admin/functions.php on line 1767


I have now also manually deleted every entry in the attachments table. Does anyone have any idea what's wrong?

I'm basically attempting to make the attachments part of my database the same as a fresh install of vB.

Thanks!

Kars10
03-10-2003, 07:36 AM
Have you set your Upload Options in your vB-Options?
I believe its something with your tmp-path or a savemode error.

FleaBag
03-10-2003, 10:12 AM
Yes, none of the settings changed between upgrades. :(

FleaBag
03-10-2003, 10:13 AM
I tried turning the Safe Mode option off, and then, I only get this error...


Warning: filesize() [function.filesize]: open_basedir restriction in effect. File(/var/tmp/phpnuW2gR) is not within the allowed path(s): (/home/dragonninja) in /www/dragonninja/admin/functions.php on line 1767

FleaBag
03-10-2003, 08:15 PM
Anyone? Please? :D

FleaBag
03-12-2003, 10:50 AM
Nevermind, fixed it. The following query did the job.


DROP TABLE IF EXISTS attachment;
CREATE TABLE attachment (
attachmentid smallint(5) unsigned NOT NULL auto_increment,
userid int(10) unsigned NOT NULL,
dateline int(10) unsigned NOT NULL,
filename varchar(100) NOT NULL,
filedata mediumtext NOT NULL,
visible smallint(5) unsigned NOT NULL,
counter smallint(5) unsigned NOT NULL,
PRIMARY KEY (attachmentid)
);