Fork me on GitHub

Downloads  Bottom

  • 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...........
  • 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!
  • 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
  • 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!
  • 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.............
  • JoeMcLaughlin

    It looks like the module does not like to have a category with just numbers.
    Exactly what I said right?

    Teb

    the description cannot be numeric (don't ask why...)


    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.
    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).

    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!
  • 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.......
  • 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

This list is based on users active over the last 60 minutes.