![]() |
i give up :(
clicks uninstall |
kewl hack. I dont care for your site much Cheats. :(
|
ok i got it installed but when i try to upload i get this error:
Fatal error: Call to undefined function: prep_file() in /home/fragtrad/public_html/forums/includes/dl_add.php on line 66 |
^^^^
thats the same error im getting heres my settings...any suggestions http://img178.exs.cx/img178/4572/downloads7tq.th.jpg |
For some reason when I updated from 1.0e to 2.0c not all of the templates were updated and not all of the mysql fields were set either. I eventually put the templates and mysql right (I think) manually from the installer file but what I have now is a mess:
Main page: pages full of these: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/forums/includes/dl_main.php(24) : eval()'d code on line 2 None of the categories are now visible When I manually set the downloads_cat_filebit template I got the following error message: Parse error: parse error, unexpected T_STRING, expecting ']' in /home/xxxxxxxx/public_html/forums/includes/adminfunctions_template.php(3096) : eval()'d code on line 3 This is likely caused by a malformed conditional statement. Manage files page even more pages full of these: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxxxx/public_html/forums/includes/dl_manage.php(97) : eval()'d code on line 2 None of the actual data is visible When I tried setting the downloads_man_edit template I got the following error: Parse error: parse error, unexpected $ in /home/xxxxxxxx/public_html/forums/includes/adminfunctions_template.php(3096) : eval()'d code on line 91 This is likely caused by a malformed conditional statement. I am also getting errors on the add file page: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxxxx/public_html/forums/includes/dl_add.php(94) : eval()'d code on line 1 I'm now completely stumped with nothing working :( |
Quote:
|
Ok, I made the change (file_prep to prep_file) but it did not help. Same thing.
|
Quote:
|
alright well i got the uploading part to work...now i get some errors with downloading it...it doesnt use the right file name
|
I just upgraded from vBDownloads 2 to the latest version but when i try to upload a file i get:
Code:
Fatal error: Call to undefined function: prep_file() in /home/elma2/public_html/includes/dl_add.php on line 66 |
Could users be able to upload files larger in size than 2mb (my host has a max 2mb for php)
|
Quote:
I still can't upload or link anything, keep telling me I can only upload the extension I'm already trying to upload! |
Quote:
Quote:
I tried my best to optimize queries and only perform stat-gathering queries when needed (file changes etc) and as a result, I think I may be able to incorporate this... but I will have to think about it. Quote:
Quote:
Good luck, and keep me posted. Quote:
Quote:
I think I covered all the problems... if not just repost it. There was someone who said uploading files with a . in the name didnt work...and I havent been able to produce the same error. |
thanks Ronin, very nice hack :)
(click Install) ;) |
I have this error in localhost when I click on "order the files"
error: Code:
Parse error: parse error in c:\program files\easyphp1-8\www\forum\includes\dl_manage.php on line 36 Code:
if ($file['link'] == 0) |
Try removing the ] at the front of the line you highlighted.
|
Change:
PHP Code:
PHP Code:
|
Quote:
nono, it's a error of me for the color ligne juste, rectified :o |
Quote:
from Code:
prep_file Code:
file_prep |
Quote:
PHP Code:
|
Quote:
However, I did update this file last night from my laptop, and the files could be reverted to their prior state. Could someone please clarify whether the TABLE_PREFIX thing exists before file_exists in 2.0d? I would check myself, but I cant open .zip files atm. Quote:
2. It SHOULD change the name of the file to {cat abbrev} {author} {file}.{extension} Aren't you still able to download the file? |
Quote:
Hey Ron1n, you does not have idea for my problem :rolleyes: |
Alan,
Like i suggested above, start by removing that PHP Code:
|
Quote:
veiled, I did it and it is similar, even error |
If this sounds dull Im sorry :)
But how do you or members upload files? I can see the download php file but thats it? |
Ignore my above post, all working.
Also make sure that Php open_basedir is off for the URL this hack is being used for, I was getting permission errors with it on. Laters Quote:
|
Ok, I have an off-site link:
http://www.battlezoneclub.org/BZClubDL/AntilagXP.zip and place it in the link field for adding. When I try to submit, I get the error about only submitting certain file types. If I do: /BZClubDL/AntilagXP.zip it is added to the database fine. The problem here, of course, is I cannot use this for off-site links. Additionally, when I try to delete this, I am getting the following error: Warning: unlink(./downloads//BZClubDL/AntilagXP.zip): No such file or directory in /includes/dl_manage.php on line 141 |
Remove the dot from the begining of the upload path. Also make sure that you have disabled Php open_basedir.
Laters |
The problem is, I do not think that it is supposed to put anything in the downloads folder if it is a link. This is not an uploaded file. I should not see that error at all on a link... right?
Oh, and how WOULD you disable open_basedir if that were an issue? |
rjordan: Ok, read the delete message: unable to delete (file) or whatever... it makes perfect sense that you wouldn't be able to delete a file that isnt on your server etc. That being said, the hack shouldnt TRY to delete a linked file, so I will fix that. Its a bug, but not a problem. Its just one of those anoying things that doesnt effect performance. Seeing as it cannot effect performance, I will fix it in the next general release.
Allan: your using an old version or failed to reupload the files you edited. rjordan: about linking to files on other servers, i get the same thing. im not sure whether its a . issue, a : issue or a / issue. I will look into it. For now... just dont leech. |
I understood the error and came to the same conclusion. IT could not delete what was not there. Just bringing it up.
Perhaps the off-site linking can be solved by only looking for the extension of what follows the last slash in the URL... lol ... Oh, yeah ... I only link with permission! Thanks for looking into it! |
OFFSITE LINK FIX
Find in dl_add.php (45) and dl_edit.php (38): Code:
if ($_FILES['upload']['name'] != '') Code:
if ($_FILES['upload']['name'] != '') Find in dl_manage.php (139): Code:
$url = $DB_site->query_result("SELECT url FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'"); Code:
$file = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'"); Code:
foreach($_POST['id'] as $id => $value) { Code:
foreach($_POST['id'] as $id => $value) { |
i still have problems with it...i still have to go in to ftp...change the filename to whatever it changes it to...then i also have to upload the file because it doesnt upload the file anywhere
|
Quote:
You might want to check some of your server settings and chmod the directory you upload to correctly. Good luck :) |
No matter what I try it will not order my categories via what I put into the admincp Categories section... It is inseting it into the database but it is not sorting by what is in the database. Can anyone else confirm this?
|
I tried this but I still can't link urls, only works when I put in local "/directory/filename"...
But! I can upload files when they have no characters like "-" or "." in the filename... At least it starts to be funcionnal to me! Thanks Quote:
|
what happens is that i click upload...everything works fine from what it looks like....it says file was uploaded...but then when u go to click on download file there is no file there...brings u to the error page...so then i go in...manually upload it through ftp...rename it to the name it gave me and then it works...but i would like it so that everybody can upload files not just me because i have ftp
|
Minor modification request:
When clicking on the download button, can you make it so it opens the link in a new window? Sounds trivial I know, but I am linking to other posts where the author does not mind downloading, but because it is a beta release he does not want it mirrored yet. As it stands, when I link to a forum post, it is leaving my site. This could also benefit other unknown situations too where you may end up leaving the site by clicking on the download link. I am going to make the change on my site as it is really simple, but thought I would share. The change I made: In includes/dl_file.php (around line 123) change: Code:
$download = '<a href="./downloads.php?do=file&id='.$file['id'].'&act=down">Download Here</a>'; Code:
$download = '<a href="./downloads.php?do=file&id='.$file['id'].'&act=down" target="File'.$file['id'].'">Download Here</a>'; |
What are the upload limits and how do you increase it?
Laters |
uploads via http/php are limited by 2 settings in your php.ini file (assuming UNIX, I'm sure its the same in Windoze though). By default, max_post_size and max_upload_size are 2M. Increase them to a value you want but also realize that this consumes extra memory and *could* later be used for some random exploit or DoS. None exist that I know of that affect the current versions but potentially someone could attempt to repeatedly post 8MB strings and chew up all your available RAM and swap a lot faster since they use 8MB blocks.
but again, no such evil exists...today. |
All times are GMT. The time now is 01:25 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|