Home Support Forums Theme Support Minimatica How to fix issues with Media Uploader with Minimatica in WordPress 3.5

How to fix issues with Media Uploader with Minimatica in WordPress 3.5

Since WordPress 3.5 came out and the new Media Manager was introduced there’s been an ongoing issue with the Minimatica theme and the way the new Media Manager handles files. Here’s what you need to do to fix this issue:

In functions.php find this line (line 225 if you haven’t altered the file):

add_action('init', 'minimatica_register_styles');

replace it with this:

add_action('wp_enqueue_scripts', 'minimatica_register_styles');

Then find this line (line 437 if you haven’t altered the file):

add_filter( 'ext2type', 'minimatica_mime_types' );

replace it with:

add_filter( 'ext2type', 'minimatica_file_types' );

After replacing the code and double checking, it make sure it was accurate, I’m still unable to upload a featured image from the Media Uploader. I continually receive this error message regardless of the image I use: “Error Asheville Crane .jpg An error occurred in the upload. Please try again later.” Is there anything I can do to correct this?

I absolutely love this theme and want to continue using it.

Please ignore my pitiful plea for help. It’s now working beautifully! =)

Thank you ever so much for the fix. I’m thrilled.

Hi!
I modified in the line 225 and 437 following the instruction above but when I save the file function.php appares this message:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in D:\Inetpub\webs\donindovinatiit\public\wordpress\wp-content\themes\minimatica\functions.php on line 225

How can I resolve the problem?
Thanks

Daniel replacement line for 225 isn’t showing in the post above?

Replacement and origional for line 437 is fully displayed.

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘minimatica_mime_types’ was given in /home/becker/public_html/wp-includes/plugin.php on line 173

Below is a new error message I’m receiving when trying to use the media uploader. How can I correct this? Thanks so much.

Warning: Invalid argument supplied for foreach() in /home/becker/public_html/wp-includes/functions.php on line 1778

Warning: Cannot modify header information – headers already sent by (output started at /home/becker/public_html/wp-includes/plugin.php:173) in /home/becker/public_html/wp-includes/pluggable.php on line 876

Hi. I made the fix you recommended above, but when I updated the file, I received this error message:

Parse error: syntax error, unexpected T_IF in /home/dljone01/uxdavejones.com/wp-content/themes/minimatica/functions.php on line 227

After being unable to successfully resolve the problem, I reverted the file back to the previous state and still received the error message. Now, every page I go to on my site (both user-facing and admin), the error message appears.

I’m not a PHP developer, but any help would HUGELY appreciated! Thanks.

HI! I am hoping that someone can help me. I am new to word press and don’t know where I find this php code to fix. Is it within your dashboard on wordpress? Any information you could provide would be great! I’m in love with this theme

code replaced, still no luck. Every image I try to load from the ‘set featured image’ on the post, fails. Yet, it’s available in the Media menu and says it was upoloaded to the post that gave the error.

When I try to attach it as a featured image, either from the post, or the media library, it fails: it does not show up as the featured image in the post editing window, nor does it appear in the slider.

When I click ‘set featured image’ the media library shows up as empty, which is not the case.

Any help is good help, this is a deadline issue that kicked me hard. (arent they all?)

You must be logged in to reply to this topic.