Searched forums and google but didn't find...
Installed CmoduleDownloads v 1.92.1
Works great. Increasing filesize upload help needed. I entered a larger number, like 10 megs, for allowed filesize. I also increased the upload filesize limit in php.ini.
Still fails. Any help on where to look to increase the filesize upload limits for this module, and for the system as a whole?
tx for any help.
drhiii
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
CmodulesDownload and filesize
-
- Rank: Freshman
- Registered: Jan 01, 2005
- Last visit: Oct 21, 2009
- Posts: 74
-
- Rank: Freshman
- Registered: Jan 01, 2005
- Last visit: Oct 21, 2009
- Posts: 74
I will have a look at this part of the code.
I'm sure we find a solution for this problem.
Lindbergh -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 39
This would be most excellent. It is a terrific module. Well done in its function and appearance. I thought about looking at what may be causing this, but I would far rather hear from the author of the code for help!
tx very much. It is a great application.
drhiii
Lindbergh
I will have a look at this part of the code.
I'm sure we find a solution for this problem.
Lindbergh -
- Rank: Freshman
- Registered: Jan 01, 2005
- Last visit: Oct 21, 2009
- Posts: 74
Open admin.php and goto line 2222.
You will find there the followig code:
._LIMITSIZE." :"
replace this line with :
._LIMITSIZE." :"
Should work up to 99 megs
Regards
Lindbergh -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 39
Hello Lindebergh,
I did as you instructed it is still fails.
First, I found the code on line 2263 instead of 2222. So makes me wonder if I have the same code. I do have v1.9.2 installed as reported by the admin screen.
Next, I am able to upload other large files into a Photo gallery so I know the PHP variable is set high enough.
Next... I looked at the code and wondered if the limisize variable should have been limit_size so I tried that as this is what is reflected in another PHP file. That didn't work either.
I then made sure the Limit value inside the admin screen for Cmdownload was set lower than the maximum limit of the php.ini file. That also didn't work.
Sooooo, am stuck again. Do you have futher ideas or advice on what I need to look at? Files still work just below the 2M filesize, but now above them. Same characteristics as before.
Oh, here is a small snapshot of the Cmodownload screen and the fact that it is showing the correct upload sized value that was input into the admin screen:
· _MODBANNEDEXTENSION
.swf .jsp .php .php3 .php4 .phtml .pl .com .bat .exe
· _MODECHOLIMIT 47.68 MB
This is correct as it reflects the value input into the Cdownload admin screen. And php.ini is set to 75M.
regards, drhiii
Lindbergh
Open admin.php and goto line 2222.
You will find there the followig code:
._LIMITSIZE." :"
replace this line with :
._LIMITSIZE." :"
Should work up to 99 megs
Regards
Lindbergh -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 39
Here is another question. Where are these values stored? pninit.php appears to contain the default values, but I couldn't find in the filesystem anywhere where these values are contained, and I couldn't find these value in mysql either. Just wondered as I figured I could just go change the default values, but I haven't been able to locate them.
Of course, it would be better to have the values reflected from the admin screen and working than trying to mess with the code base I think.
Will await your instructions.
drhiii
Lindbergh
Open admin.php and goto line 2222.
You will find there the followig code:
._LIMITSIZE." :"
replace this line with :
._LIMITSIZE." :"
Should work up to 99 megs
Regards
Lindbergh -
- Rank: Freshman
- Registered: Jan 01, 2005
- Last visit: Oct 21, 2009
- Posts: 74
Can you please post the complete error message? I can't reproduce this error.
This would help me a lot.
Regards
Lindbergh -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 39
Here is the information I can locate. I uploaded a 4 MB file. Anything under 2MBs works fine. The first entry is the access log for apache when starting the upload. This is the only entry in either the access log or error log:
xxx.xxx.xxx.xxx - - [26/Apr/2005:03:00:25 -0600] "GET /modules.php?name=CmodsDownload&req=AddDownload HTTP/1.1" 200 15809
Here is the resulting screen in CmodDownload. It simply says I need to type in a URL for the file, which I assume means it has failed because it thinks the file is too large for the limitsize variable:
Downloads
[ Main download area | Add download | New | Popular | Top-rated ]
ERROR: You need to type a URL for your download!
[ Back ]
Here are my php.ini and a slice of the CmodDownload setup screen. I keep trying to locate where these variables are stored but cant find where the values are stored. I thought I could figure it out myself, but I dont see it. Hope this helps. Sure is a mystery to me.... am wondering if I need to increase the max_execution time. I will try that anyway.
php.ini
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request dat
a
memory_limit = 32M ; Maximum amount of memory a script may consume (8MB)
; Maximum size of POST data that PHP will accept.
post_max_size = 64M
In the Admin CmodDownload Screen:
Allow users to upload files Yes
Secure Download Yes No (I have tried Yes and NO)
Sizelimit for files Yes No (I have tried Yes and No)
Size (1048576 = 1 MB) : 55000000
Lindbergh
Can you please post the complete error message? I can't reproduce this error.
This would help me a lot.
Regards
Lindbergh -
- Rank: Freshman
- Registered: Jan 01, 2005
- Last visit: Oct 21, 2009
- Posts: 74
Maybe you changed the wrong part of your php.ini.
For fileupload and the size of the uploaded file you have to change this part.
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =
; Maximum allowed size for uploaded files.
upload_max_filesize = 75M
You will find the stored variables in yourprefix_module_vars table.
Regards
Lindbergh -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 39
Hm, am looking for this now.
Where would the "yourprefix_module_vars table" be found?
tx for your continued help. I know the solution will end up being easy. I just don't see it yet.
Lindbergh
Maybe you changed the wrong part of your php.ini.
For fileupload and the size of the uploaded file you have to change this part.
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =
; Maximum allowed size for uploaded files.
upload_max_filesize = 75M
You will find the stored variables in yourprefix_module_vars table.
Regards
Lindbergh -
- Rank: Freshman
- Registered: Jan 01, 2005
- Last visit: Oct 21, 2009
- Posts: 74
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 39
Hi, me again. I am in the data base and see the module_vars table, but I don't know what to do from here. Am using phpMyAdmin.
drhiii
Hm, am looking for this now.
Where would the "yourprefix_module_vars table" be found?
tx for your continued help. I know the solution will end up being easy. I just don't see it yet.
Lindbergh
Maybe you changed the wrong part of your php.ini.
For fileupload and the size of the uploaded file you have to change this part.
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =
; Maximum allowed size for uploaded files.
upload_max_filesize = 75M
You will find the stored variables in yourprefix_module_vars table.
Regards
Lindbergh -
- Rank: Freshman
- Registered: Jan 01, 2005
- Last visit: Oct 21, 2009
- Posts: 74
Change yor php.ini and try again an upload.
You don't have to change anything in module_vars table. It was only for your information.
- Moderated by:
- Support
