WordPress.org

Ready to get started?Download WordPress

Forums

PJW Mime Config
Warning: Invalid argument supplied for foreach() in... (6 posts)

  1. T B
    Member
    Posted 3 years ago #

    Hi guys,

    I tried this function for .ico file: Select a file containing a list of mime types in the correct format:
    and I got that message:
    Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/pjw-mime-config/pjw-mime-config.php on line 187

    I don't know what can I do.

    http://wordpress.org/extend/plugins/pjw-mime-config/

  2. T B
    Member
    Posted 3 years ago #

    this is on line 187: foreach($this->mime_types as $ext => $type)

  3. Peter Westwood
    WordPress Lead Developer
    Plugin Author

    Posted 3 years ago #

    Thanks for reporting this I will look into it.

  4. Peter Westwood
    WordPress Lead Developer
    Plugin Author

    Posted 3 years ago #

    What is the content of the file you uploaded?

  5. Ruben182
    Member
    Posted 2 years ago #

    I have the exact same problem.
    I tried to Add mime-types from file
    And used an .ipcc file (iphone carrier bundle)

    I tried to remove the plugin and reinstall it, but same error..

    In Mime-type management:
    Warning: Invalid argument supplied for foreach() in /customers/b/9/4/fixity.be/httpd.www/wp-content/plugins/pjw-mime-config/pjw-mime-config.php on line 187

    And in the WordPress Download Monitor at Add New Download
    when I want to upload a file:
    Warning: array_merge(): Argument #2 is not an array in /customers/b/9/4/fixity.be/httpd.www/wp-content/plugins/pjw-mime-config/pjw-mime-config.php on line 254 Warning: Invalid argument supplied for foreach() in /customers/b/9/4/fixity.be/httpd.www/wp-includes/functions.php on line 2468

  6. T B
    Member
    Posted 2 years ago #

    It was my bad.

    Ruben182
    Try write in without point
    Bot like this .ipcc but like this ipcc
    And google up for mime type "ipcc" image/jpeg

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic