WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Media Category Library] error message after using [mediacatform]

[Resolved] [Plugin: Media Category Library] error message after using [mediacatform]

  • 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/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author timmcdaniels

    @timmcdaniels

    Hi Phillip,

    The warning is no longer occurring with version 1.1.

    Thanks,

    Tim

    Thanks Tim

    Can you post a link to the version that works?

    Philip

    Plugin Author timmcdaniels

    @timmcdaniels

    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/

    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

    Plugin Author timmcdaniels

    @timmcdaniels

    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?

    Plugin Author timmcdaniels

    @timmcdaniels

    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

    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] [Plugin: Media Category Library] error message after using [mediacatform]’ is closed to new replies.