WordPress.org

Ready to get started?Download WordPress

Forums

Media Category Library
[resolved] error message after using [mediacatform] (8 posts)

  1. phillip29
    Member
    Posted 1 year ago #

    I have used your [mediacatform] short code on one of my pages and have an error message when viewing the page

    Warning: Missing argument 1 for MediaCategoryLibrary::media_category_content(), called in /home/content/43/9857443/html/wp-content/plugins/media-category-library/classes/media-category-library.php on line 661 and defined in /home/content/43/9857443/html/wp-content/plugins/media-category-library/classes/media-category-library.php on line 268

    http://wordpress.org/extend/plugins/media-category-library/

  2. timmcdaniels
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Phillip,

    The warning is no longer occurring with version 1.1.

    Thanks,

    Tim

  3. phillip29
    Member
    Posted 1 year ago #

    Thanks Tim

    Can you post a link to the version that works?

    Philip

  4. timmcdaniels
    Member
    Plugin Author

    Posted 1 year ago #

    It's the latest version. It's the only option to download on the plugin page here:

    http://wordpress.org/extend/plugins/media-category-library/

  5. phillip29
    Member
    Posted 1 year ago #

    Thanks Tim - I download the new version and the error message above has gone. Still scratching my head though...

    First I have used [mediacat cats="Documents,Images" orderby="date" order="DESC"] in my search page and I just get a line of headings "Title File Name Caption Date"

    I have also tried [mediacatform] and get the following error " Warning: in_array() expects parameter 2 to be array, null given in /home/content/43/9857443/html/wp-content/plugins/media-category-library/views/search.php on line 10
    > Fosternets"

    I hope you can help

    Philip

  6. timmcdaniels
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Philip,

    Generally, you don't want to show PHP warnings in your browser (errors and warnings should be logged to a file). You can add the line below to your .htaccess to turn off warnings:

    php_flag display_errors off

    I changed the code so that the in_array warning is no longer occurring. Thanks for the report. Please install version 1.2.

    If you only get headings for this shortcode:

    [mediacat cats="Documents,Images" orderby="date" order="DESC"]

    It suggests that there are no files that have been associated to the Documents and Images categories. Are there definitely files that are associated to these categories?

  7. timmcdaniels
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Philip,

    Do you still have issues with the plugin? If so, please let me know. I will mark this topic as resolved for now.

    Thanks,

    TIm

  8. sena25fr
    Member
    Posted 1 year ago #

    Hi .. I would like to know in which file an in which function to insert this line.
    [mediacat cats="Documents,Images" orderby="date" order="DESC"] or [mediacat cats="Documents,Images" orderby="title" order="ASC"]
    THANKS

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.