Author |
Message |
esttecb
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Mar 14, 2007
Posts: 37
|
Posted:
Mon Mar 10, 2008 3:40 pm |
|
Hi, I'm getting this error when I try to attach a file. I don't know what's wrong.
When I click on test settings in the admin panel all are fine. The files directory CHMOD is 777. The extension i not forbbiden and the quota is right.
Help?
PS: I used premodded files and to seem the theme files are correctly modified too (I modified this).
EDIT: I found the problem but I don't know how fix it. If I change the upload directoy to "modules/Forums/files" I can attach a file but I can't download a file (the link go to http://www.mywebsite.com/modules/Forums/modules/Forums/files/myfile.txt). And if I change the upload directory to "files" I can download the attached files, but I can Attach a file to the post. (Upload Error: Could not upload Attachment to ./files/file.txt).
Help please?
_____________________________________
EDIT:
Only registered users can see links on this board! Get registered or login! I don't test it (whatever, you can see the big problem there), but i think this should works. If it's not, so you still need make this change -> http://www.ravenphpscripts.com/postp115459.html#115459 |
Last edited by esttecb on Mon May 05, 2008 9:03 pm; edited 6 times in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bprsk8r4272
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jan 23, 2007
Posts: 96
Location: Rochester, Ny
|
Posted:
Mon Mar 10, 2008 4:55 pm |
|
the upload directory should be modules/Forums/files but i havent had that error(http://www.mywebsite.com/modules/Forums/modules/Forums/files/myfile.txt) at all |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
esttecb
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 10, 2008 5:01 pm |
|
Well, Thats really don't help me
BTW, I'm using and I need use the physical download method... so, in the "Download Link to FTP Path" I enter "files" path. But to seem this not modify anything... the download url when I try to download an attanch don't change at all.
If I enter "modules/Forums/files" in the Upload Directory, when I click on test settings I get this error: "The Directory 'modules/Forums/files' does not exist or couldn't be found." (If I enter only files, all is right)
TY |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bprsk8r4272
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 10, 2008 7:11 pm |
|
did you use the premod files on ravennuke or a different version of phpnuke? and i dont think the test settings feature works |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
esttecb
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 10, 2008 7:36 pm |
|
on RN 2.20.02, and if the test settings don't works, so the mod was not correctly converted from phpbb...
Whatever I still have this problem... I don't know how fix it...
EDIT: OMG! the test setting works wrong because the folder paths in the modules/Forums/admin/admin_attachments.php is wrong... the upload path is not "../../../", it's "../" (or "./../" it's the same) Who make this mod? I think he write a lot of directory paths wrong...
EDIT: Ok I fix this error. "Open modules/Forums/Download.php"
Find (about line 394)
Quote: | $script_name = preg_replace('/^\/?(.*?)\/?$/', '/\1', trim($board_config['script_path']));
f ($script_name[strlen($script_name)] != '/')
{
$script_name .= '/';
} |
Remplace with:
Quote: | //$script_name = preg_replace('/^\/?(.*?)\/?$/', '/\1', trim($board_config['script_path']));
//if ($script_name[strlen($script_name)] != '/')
//{
$script_name .= '/';
//} |
It's only remove the path forum duplication that you enter in the configuration settings of the admin forums panel . And is only to fix the physical download metod, so if you are using the inline metod, you don't need this modification.
It's all.
And pleace, the next time fix the directory paths in "modules/Forums/admin/admin_attachments.php".
Cyas |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mercman
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/Animaniacs/Animaniacs_-_Brain.gif)
Joined: Nov 29, 2006
Posts: 64
Location: TN, USA
|
Posted:
Sat Mar 29, 2008 5:53 pm |
|
esttecb,
I'd be interested in using this mod...
Could I ask where you found it? |
_________________ -Merc |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bprsk8r4272
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 29, 2008 6:59 pm |
|
it comes as a addon for RN so download RN and its in the zip |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mercman
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Mar 30, 2008 8:11 am |
|
Oh, GOOD LORD!! DOH!!
Well, I guess that's what I get for sittng in front of this machine for 8+ hours...
Thanks! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bbuz
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/Simpsons/Simpsons_-_Space_Mutant_Happy.gif)
Joined: May 17, 2006
Posts: 17
|
Posted:
Mon May 05, 2008 4:15 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
esttecb
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon May 05, 2008 8:44 pm |
|
esttecb wrote: |
$script_name = preg_replace('/^\/?(.*?)\/?$/', '/\1', trim($board_config['script_path']));
f ($script_name[strlen($script_name)] != '/')
{
$script_name .= '/';
}
|
ahahaha... I don't know why i'm wathed this topic... but it's funny, I found an obvious error... What the hell is it? : ''f ($script_name[strlen($script_name)] != '/')'' who translate this mod delete an ''i'' !! he wrote f instead if !!!!!!!!!!!!!!!!!!!!.. and the errors on this mod keep coming!!!...
So, don't remplace anything what I said above, only correct the syntax error. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Tue Jul 22, 2008 3:31 pm |
|
This will be fixed in the trunk for the next release of RavenNuke
Note that esttecb posted the code incorrectly and it is not the change we will be using. |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|