- Support Forums
- Theme Support
- How to fix issues with Media Uploader with Minimatica in WordPress 3.5
January 14, 2013 at 3:01 pm #11788Daniel TaraKeymaster
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):1add_action('init', 'minimatica_register_styles');
replace it with this:1add_action('wp_enqueue_scripts', 'minimatica_register_styles');
Then find this line (line 437 if you haven’t altered the file):1add_filter( 'ext2type', 'minimatica_mime_types' );
replace it with:1add_filter( 'ext2type', 'minimatica_file_types' );AdvertismentJanuary 16, 2013 at 12:51 pm #11845domen62Participant
Great! It works, tank you very much for sharingJanuary 17, 2013 at 3:13 pm #11866
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.January 19, 2013 at 7:16 pm #11938josef.dalalParticipant
THANKS !!! its worksJanuary 20, 2013 at 1:10 am #11946
Please ignore my pitiful plea for help. It’s now working beautifully! =)
Thank you ever so much for the fix. I’m thrilled.January 26, 2013 at 6:43 pm #12130sfonycParticipant
IT WORKS! YOU ARE A GODSEND!!!!! Thank you soooo much! YA-hoooo!!! = )January 28, 2013 at 10:34 am #12181donindovinatiParticipant
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?
ThanksJanuary 31, 2013 at 12:01 pm #12276trailsParticipant
Daniel replacement line for 225 isn’t showing in the post above?
Replacement and origional for line 437 is fully displayed.January 31, 2013 at 10:14 pm #12306
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 876February 1, 2013 at 12:19 pm #12344sniperParticipant
I registered here just to say Thank YOU!February 1, 2013 at 1:56 pm #12347
The issue is resolved – thanks for a great theme!February 2, 2013 at 3:21 pm #12380DaveParticipant
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.March 3, 2013 at 6:35 am #13060jallenParticipant
Thanks a ton for the solution! Worked like a charm!
JasonMarch 9, 2013 at 7:04 pm #13232bschmallMember
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 themeMarch 16, 2013 at 9:38 pm #13467ChefParticipant
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.