Customizr and WP 3.9.1-Media Upload
-
I am having problems (suddenly) with media uploads when I edit a page such as chamging slider image or changing featured image.
I think this may be associated with WP 3.9.1Has anyone seen media related problems with 3.9.1 and could this be compatibility issue?
-
If it helps I started with a vanilla 3.9.1 install with customizr child theme. Not seen any issues here
I switched to the 2014 theme and the problem goes away. I did this first before deactivating any plugins.
This is the workaround for now but I would prefer to get to the root cause.I use a Customizr child theme.@stellamaris5 has the same approach as me – try reinstalling the core Theme first, simply to eliminate that as a root cause.
And then you also need to tell us exactly what problem you’re getting.
The main problem is when you edit a page and need to add or change a jpg on the page. Example: I use Visual Composer to edit a slider on the page. When I have to select a jpg the available jps don’t load…..just goes into loop and never finishes. This does not happen when all I do is switch to the 2014 theme.
So on the basis of switching themes and problem goes away, maybe this points to Customizr issue but I realize it could be more complicated. I am very happy with Customizr.
My workaround for now is to switch to 2014 theme when I need to add/change media and then switch back to Customizr.
My workaround for now is to switch to 2014 theme when I need to add/change media and then switch back to Customizr.
That’s really not a good idea, beacuse the themes use different sizes for the thumbnails etc. if you upload with 2014 active, it won’t create the 270×250 featured images that Customizr needs.
Try resetting all the image sizes using the Regenerate Thumbnails plugin while Customizr is active.
Take a backup first of course. Regenerate Thumbnails is a great plugin and very robust, but you should have a full backup before you make any changes to lots of files.
Hi EF-
I have activated the plugin you suggested and this is what I get
All resizing fails but maybe this is just because they don’t need resizing? In any case, the problem persists on when I have Customizr as the theme.1.function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
2.function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
3.function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
4.function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
5.function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
6.function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
7.function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
8.function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
9.function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
10.function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
11.function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
12.function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
13.function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
14.function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
15.function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}The problem goes away when I turn off child theme and use the straight Customizr.
So there must be a fault in your CT ??
How about saving a copy of functions.php (and possibly style.css) here so it can be inspected. Leave the link address here
Here is what I have in functions.php of child theme and the custom CSS box
Content of functions.php in child theme
<?php
if(function_exists(‘social_ring_show’)){ social_ring_show();}
// Adds a widget area.
if (function_exists(‘register_sidebar’)) {
register_sidebar(array(
‘name’ => ‘Extra Header Widget Area’,
‘id’ => ‘extra-widget-area’,
‘description’ => ‘Extra widget area after the header’,
‘before_widget’ => ‘<div class=”widget my-extra-widget”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h2>’,
‘after_title’ => ‘</h2>’
));
}// Place the widget area after the header
add_action (‘__after_header’, ‘add_my_widget_area’, 0);
function add_my_widget_area() {
if (function_exists(‘dynamic_sidebar’)) {
dynamic_sidebar(‘Extra Header Widget Area’);
}
}Content of CSS in child theme
.fpc-widget-front .round-div{
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
.page .entry-title {
display: none;
}
.carousel-caption .btn { /* change */
position: relative;
top: +50; /* change, +down -up */
left: 0%; /* change, % for responsiveness, +right -left */
}functions.php
if(function_exists('social_ring_show')){ social_ring_show();} // Adds a widget area. if (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'Extra Header Widget Area', 'id' => 'extra-widget-area', 'description' => 'Extra widget area after the header', 'before_widget' => '<div class="widget my-extra-widget">', 'after_widget' => '</div>', 'before_title' => '<h2>', 'after_title' => '</h2>' )); }
Where did this come from? It has no add_action or add_filter around it.
To test it is the root cause, remove this section from functions.php but leave in the remainder:
<?php // Place the widget area after the header add_action ('__after_header', 'add_my_widget_area', 0); function add_my_widget_area() { if (function_exists('dynamic_sidebar')) { dynamic_sidebar('Extra Header Widget Area'); } }
This is snippet I copied and pasted from the Customizr website.
I did not change it, just copy and paste. I will test your guidance.
Thanks/OK, I’ve found the snippet you used.
You added this:
if(function_exists('social_ring_show')){ social_ring_show();}
Forget my test above, and take this line out and retest. I can’t see what that line is doing. Where did that line come from?
Thanks, looks like this did the trick.
- The topic ‘Customizr and WP 3.9.1-Media Upload’ is closed to new replies.