The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#52
|
|||
|
|||
I have a LOT of problems with the importer. :cry: :cry:
First of all, in attachment_install.php there's the line: PHP Code:
I think that query should be added of WHERE attachmentid='$files[attachmentid]' ... Do you agree ? Second, each file I get the error Quote:
Last, I saw fortunately the importer doesn't delete the filedata from the table. Should I do manually after a successful export ? Thanks a lot. Hope in your quick answer. Bye |
#53
|
|||
|
|||
Besides, the directory couldn't be chmoded to 0666 as no file could be red or written.
I think should be better CHMOD 0777 attachments directory and replace in admin/functions.php: PHP Code:
PHP Code:
What do you think ? Thanks |
#54
|
|||
|
|||
Another slight question.
editpost.php?action=deletepost : if the post contains an attachment, the row into db is deleted, not the file as itsn't explicitly called your removeattachment() function. Solution: In admin/functions.php add : PHP Code:
PHP Code:
Bye |
#55
|
|||
|
|||
i'll look into this tonight and go over the importer again.
|
#56
|
|||
|
|||
At most the files should be 0666 never chmod a file to 777 or 755. As they should never require to be executed.
I've installed this on my boards without any problems with attachments. The importer has been updated to correct the has problem. Regarding your file problem I would try to ensure that your directory is chmod'd to 666 and that is set correctly within the admin panel. Thanks for pointing out the missing delete from attachment part with the deletepost, I have updated the installer. If I remember correctly though the file will automatically have permissions to read and thats all you need as it only reads the files and it deletes it using the unlink function. |
#57
|
|||
|
|||
I tried many and many times (Linux shared server....)
both /home/user/public_html/attachment & /home/user/attachment ... The only way I don't get an error downloading or uploading attachment is that dir chmoded to 0777. Because the user owns the files is 'nobody', who otherwise couldn't access the directory itself, if not executable. This way, the uploaded file moved from /tmp to here is moded to 0755. So to make it not executable, i changed permissions within php code, right after the move_uploaded...., to 0666 (tried 0644 but the file couldn't deletable, as not writable...) Now it works to me, only this way, on that linux server ... Thnx |
#58
|
|||
|
|||
i suppose i can make those modifications to the files.
I tested the script without the permission modifications on a Win2k and a linux server though i was running it under root. Will do the final modifications you suggested then ponder moving it into the full releases. |
#59
|
||||
|
||||
Hi, I just wanted to check the latest on this hack, is the file on the front page of this thread the latest verson, and if not, would you be able to upload a more up to date verson please?
I'm desprate to use this hack because although i've got lots of HHD memory available, i've only got 20MB is MySQL space (and the forum is already taking up 10MB's of that space. Please let me know, thank you |
#60
|
||||
|
||||
I have just installed this hack, however i'm getting some errors, first off I tried the importer and got a page full of errors, like this:
Quote:
Quote:
|
#61
|
||||
|
||||
Problem number 2, I think i've solved my first problem, i've chmod'd my attachments dir to 777 (when i done it to 666, it prevented me form accessing it), and this allowed me to upload the attachments without a problem.
Now i can't download them again, I get the following error: Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|