Module message
File: /home/otbg/public_html/modules/Downloads/pnadminapi.php
Line: 49
Message: Wrong or missing argument passed to the function!
Anyone know what this error is? I completely deleted and removed the downloads module, Re-installed and I still get this error.
Joe...........
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. 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
Downloads
-
- Rank: Softmore
- Registered: Jan 12, 2006
- Last visit: Mar 16, 2010
- Posts: 147
-
- Rank: Team Member
- Registered: Feb 27, 2005
- Last visit: Apr 12, 2010
- Posts: 665
A few questions:
- When are you seeing this error message?
- Which version of the Downloads module are you using?
- On which version of Zikula?
--
-- Teb
-- Dutch Zikula Community
Support questions in a Personal Message will be ignored. Use the forums at all times! -
- Rank: Softmore
- Registered: Jan 12, 2006
- Last visit: Mar 16, 2010
- Posts: 147
Zikula 1.1.2
Downloads 2.3
This module was in and working. I had a couple of catagories in place with around 15 files added from last year. I tried to add a new download and I ger an error. I tried to add a new catagory (2010) and I get an error.
I had 2.4 in there but when I re-installed I tried 2.3
Joe.............
edited by: JoeMcLaughlin, datetimebrief -
- Rank: Team Member
- Registered: Feb 27, 2005
- Last visit: Apr 12, 2010
- Posts: 665
When I look at the Downloads-module source code for adminapi, it appears that your error-message (Wrong or missing argument passed to the function!) is returned if incorrect form-input is retrieved when adding a new category.
Could you try and add a new category, filling in both title and description? From what I can see, the title is required, the description cannot be numeric (don't ask why...), and a parent category must be selected (or set to 'None).
--
-- Teb
-- Dutch Zikula Community
Support questions in a Personal Message will be ignored. Use the forums at all times! -
- Rank: Softmore
- Registered: Jan 12, 2006
- Last visit: Mar 16, 2010
- Posts: 147
I just tried to add a simple text file as a new download.
Download title = test
Download link file size = 20kb
Download description = test
Submitted by = Joe
Error:
Module message
File: /home/otbg/public_html/modules/Downloads/pnuser.php
Line: 720
Message: It is not allowed to upload a file and add a link at the same time.
I just tried to add a new category: 2010
Error:
Module message
File: /home/otbg/public_html/modules/Downloads/pnadminapi.php
Line: 49
Message: Wrong or missing argument passed to the function!
However, I tried adding a category titled test and it worked. Also, I added a category titled Results 2010 and it worked as well. It looks like the module does not like to have a category with just numbers. Now that I have a couple of categories in there I tried to add a new download again but I still get the same error.
I am using this module to publish race results. There may be another better choice? I opted to use downloads because it would allow just about any type of file to be used. However, the mandatory file size is dumb, it should be optional.
Joe............. -
- Rank: Team Member
- Registered: Feb 27, 2005
- Last visit: Apr 12, 2010
- Posts: 665
Exactly what I said right?JoeMcLaughlin
It looks like the module does not like to have a category with just numbers.
Teb
the description cannot be numeric (don't ask why...)
When I add a download using the downloads module, it asks for a title and a file, -OR- a link (followed by it's file size).JoeMcLaughlin
Now that I have a couple of categories in there I tried to add a new download again but I still get the same error.
So, either select a file, OR give a link and filesize. You can't do both, as properly stated by the error-message. Title and category should be filled in always IIRC.
Please try again, following these directions.
--
-- Teb
-- Dutch Zikula Community
Support questions in a Personal Message will be ignored. Use the forums at all times! -
- Rank: Softmore
- Registered: Jan 12, 2006
- Last visit: Mar 16, 2010
- Posts: 147
Teb,
Sure enough it work just fine. What confuses me is that I had to enter the file size in the past. That always irritated me so I am very happy it is no longer mandatory.
Joe....... -
- Rank: Team Member
- Registered: Jan 19, 2003
- Last visit: Apr 06, 2010
- Posts: 442
Maybe you can try out MediaAttach. It allows different naming schemes to avoid double file names. Also it supports multiple category fields out of the box.
--
Guite | ModuleStudio
- Moderated by:
- Support
