Hi Jared!
I’d also suggest increasing the memory limit, your current limit is 128M and your site is using 73M at peak, try increasing it to at least 256M:
http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
Regards,
Josue
HI GUYS AFTER UPDATING TO WP 4.0 WE HAVE THE BELOW ERROR IN OUR ENGLISH PAGES: OF OUR ENFOLD THEME.
WHATS HAPPENING AND HOW TO FIX?
JUST RESTORED IT TO WP 3.9
THANKS! “
Warning: explode() expects parameter 2 to be string, array given in /home/vlcclaim/public_html/vlc-claims.com/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 6270
Warning: Invalid argument supplied for foreach() in /home/vlcclaim/public_html/vlc-claims.com/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 6272
——————————————————————————————————————————————————
Warning: explode() expects parameter 2 to be string, array given in /home/vlcclaim/public_html/vlc-claims.com/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 6270
Hola Jose Maria,
Pues 43 items me parece excesivo, hasta donde se el theme crea 13 versiones de la imagen para que pueda ser usada en todos los elementos y entornos, puedes desactivar las que no uses instalando este plugin. Si no te es permitido instalar mas plugins puedes borrarlas directamente editando functions.php, lineas 99 a 110:
$avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36); // small preview pics eg sidebar news
$avia_config['imgSize']['square'] = array('width'=>180, 'height'=>180); // small image for blogs
$avia_config['imgSize']['featured'] = array('width'=>1500, 'height'=>430 ); // images for fullsize pages and fullsize slider
$avia_config['imgSize']['featured_large'] = array('width'=>1500, 'height'=>630 ); // images for fullsize pages and fullsize slider
$avia_config['imgSize']['extra_large'] = array('width'=>1500, 'height'=>1500 , 'crop' => false); // images for fullscrren slider
$avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column)
$avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>185 ); // images for portfolio 4 columns
$avia_config['imgSize']['gallery'] = array('width'=>845, 'height'=>684 ); // images for portfolio entries (2,3 column)
$avia_config['imgSize']['magazine'] = array('width'=>710, 'height'=>375 ); // images for magazines
$avia_config['imgSize']['masonry'] = array('width'=>705, 'height'=>705 , 'crop' => false); // images for fullscreen masonry
$avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321); // big images for blog and page entries
$avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 ); // images for fullsize pages and fullsize slider
Saludos,
Josue
Hi Brad!
Can you check if you get any clue in your PHP error log? this seems to be a server-related issue as even the WP Theme Unit Test is not getting imported correctly – http://screencast.com/t/FjSzS7TXJxT
Regards,
Josue
Hello,
thanks for your reply. I think that I added it right, according to the font name and code rom the icon box:
https://www.dropbox.com/s/dw1pnxlms8kpvdk/Screenshot%202014-10-22%2003.13.00.png?dl=0
…and then applied the code you provided on function.php in my child theme (checked the refference as well, to understand it more properly) like this:
https://www.dropbox.com/s/3y7ovcv5jc6i7v6/Screenshot%202014-10-22%2003.14.51.png?dl=0
And nothing happend :(. Did I do something wrong in the process :(?
Thanks alot!
Martin
This reply has been marked as private.
Hey lisamorrisva!
Please try re-updating the theme via FTP and make sure to overwrite all files – http://vimeo.com/67209750
Please also try to increase the allocated memory to 128M: http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
You can contact your service provider and they can do it for you.
Cheers!
Yigit
Anonymous
This reply has been marked as private.
Hi jono713!
Thank you for using Enfold.
Please edit includes > helper-main-menu.php, find this code on line 18:
echo '<a id="advanced_menu_toggle" href="#" '.av_icon_string('mobile_menu').'></a>';
echo '<a id="advanced_menu_hide" href="#" '.av_icon_string('close').'></a>';
Replace it with:
echo '<a id="advanced_menu_toggle" href="#" '.av_icon_string('mobile_menu').'><span class="mobile-menu-text">Mobile Menu</span></a>';
echo '<a id="advanced_menu_hide" href="#" '.av_icon_string('close').'><span class="mobile-menu-text">Mobile Menu Hide</span></a>';
Add this on Quick CSS or custom.css to hide the text:
span.mobile-menu-text {
display: none;
}
Regards,
Ismael
If I enter a featured image in a blog post using the Enfold theme, it seems it uses a ‘thumbnail’ with the dimension: 1210×423 pixels. And as far as I can see it’s set through ‘entry_without_sidebar’.
Actually I’d love to use featured images for showing my panorama’s which have an aspect ration of 3:1. So it would be nice to have featured images of 1210×403 pixels (may be 1200×400 pixels?). Or, since the width of my container is 1130 pixels: 1130×377 pixels. And I don’t like to use thumbnails which are resized by software, but original images in their original sizes.
Issue 1
Can I use the Simple Images Sizes plugin (https://wordpress.org/plugins/simple-image-sizes) to change the featured image size? Or is it better to change it in functions.php (like suggested here: https://kriesi.at/support/topic/featured-image-size-and-shape/#post-336197). And how can I avoid the image used as featured image is a resized image?
Then: since retina and 4K displays become more and more commonplace, I’d love to use a featured images which is @2x but displayed as @1x. For example: upload a featured image of 2400×800 pixels, which is displayed in an area with the dimension of 1200×400 pixels.
Issue 2
How can this be achieved for featured images?
Hi Peter,
thanks – I see your proposed change in the latest enfold version, however, it does not fix the problem.
Steps to reproduce:
1) have woocommerce 2.2.6, enfold 2.9.2 or 3.0.1
3) WP_DEBUG true (otherwise you see nothing)
3) try to edit a page with a product slider on it. (or create one, save it, and then load it – everything is gone except for title, slug, and Publish box).
In the ‘Publish’ box there will be these warnings and errors (if WP_DEBUG is true):
Warning: extract() expects parameter 1 to be array, null given in /path/to/site/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider.php on line 203
Notice: Undefined variable: autoplay in /path/to/site/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider.php on line 210
Notice: Undefined variable: columns in /path/to/site/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider.php on line 211
Notice: Undefined variable: columns in /path/to/site/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider.php on line 212
Notice: Undefined variable: columns in /path/to/site/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider.php on line 216
Notice: Undefined variable: columns in /path/to/site/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider.php on line 217
Notice: Undefined variable: columns in /path/to/site/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider.php on line 218
Notice: Undefined variable: columns in /path/to/site/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider.php on line 219
Notice: Undefined variable: columns in /path/to/site/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider.php on line 220
Notice: Undefined variable: interval in /path/to/site/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider.php on line 224
Notice: Undefined variable: animation in /path/to/site/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider.php on line 224
Fatal error: Call to undefined function woocommerce_product_subcategories() in /path/to/site/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider.php on line 274
Regarding it not making sense to have the function ‘woocommerce_product_subcategories’ defined, it might make sense in so far as that the modal edit dialog of the Product Slider widget has a selection for which product categories to display. (Apparently avia_product_slider::html() is called in ‘the admin page’ given the Fatal Error above).
I updated the Enfold theme to 3.01 yesterday and now I get these error messages when trying to access any of the links – Enfold, Pages, Jetpack, Updates, etc.
Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 49152 bytes) in /home/blaisen1/public_html/wp-admin/menu.php on line 79
Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 12288 bytes) in /home/blaisen1/public_html/wp-admin/includes/update.php on line 184
So I followed directions from another support ticket and added to wp-config.php:
define( ‘WP_MEMORY_LIMIT’, ’128M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ’256M’ );
That did not fix it. Any other thoughts short of reinstalling WP?
Thanks you Ismael but this is very confusing for me…
https://kriesi.at/support/topic/customize-and-hide-some-post-formats/#post-232570 -> There are different subjects in this thread, php code to add, css code to add, depending on the subject… and it’s hard for me to sort it out!
-> Forget about “how to add post formats”. I’ll eventually look to that later.
-> But please can you be more precise on HOW TO CHANGE/REPLACE ICONS (the BLOG POSTS ones). What should I put in child functions.php & also (if needed) what should I add in child css file?
Thank you for your patience and your help.
Kind regards,
Marie
Hey mcraig77!
Thank you for using Enfold.
Please edit config-templatebuilder > avia-shortcodes > contact.php, find this code on line 334:
$elements['avia_age'] = array('type'=>'captcha', 'check'=>'captcha', 'label'=> __('Please prove that you are human by solving the equation','avia_framework' ));
Edit the contact form element then look for the Submit Button Label to change the contact form submit button.
Cheers!
Ismael
Hey mcraig77!
Thank you for using Enfold.
You can edit config-templatebuilder > avia-shortcodes > masonry_entries.php. Find this code on line 640:
$output .= "<a class='av-masonry-pagination av-masonry-load-more' href='#load-more' {$data_string}>".__('Load more','avia_framework')."</a>";
Regards,
Ismael
Hi!
Thank you for using Enfold.
You can refer to this link on how to change icons using filter on functions.php: https://kriesi.at/support/topic/customize-and-hide-some-post-formats/#post-232570
Please refer to this link on how to add post formats: http://codex.wordpress.org/Post_Formats
Best regards,
Ismael
Hi Zaw Zaw,
Open /enfold/functions-enfold.php and look for this lines:
//overwrite with custom fields if they are set
$post_id = avia_get_the_id();
Replace them by this:
//overwrite with custom fields if they are set
$post_id = avia_get_the_id();
if($post_id == 3847) $settings['header_shrinking'] = 'av_header_shrinking_disabled';
You can also put the whole modified avia_header_setting function in your child theme functions.php file.
Regards,
Josue
Hi!
If you want to hide those errors simply add this line to your wp-config.php:
error_reporting(0);
If you want something more advanced, you’d need to use a third-party solution like Hide My WP.
Regards,
Josue
Ismael,
Thanks for showing me where to get the code and where to put it in the file. I have another problem before I can get to that. When I try to log on or get to any of the admin controls I get the message:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /vservers/beckymartzcom/htdocs/wp-content/themes/enfold/functions.php on line 97
I can’t get to the point of changing code.
I have the original download on my computer. Could I use that to restore the functions.php or functions-enfold.php and get back to the original code, eliminate the error, and then make the changes you have indicated? At this point I am frozen out of WordPress/Enfold.
Thanks
wjmartz
Anonymous
This reply has been marked as private.
Hi!
After adding the code to functions.php file you should see custom CSS class field – http://kriesi.at/documentation/enfold/wp-content/uploads/sites/2/2013/12/blur.jpg
You can follow the instructions i posted here – https://kriesi.at/support/topic/iconbox-in-mobile-view/#post-336807
and display different icons on mobile
Best regards,
Yigit
Hey!
Thank you for using Enfold.
Please get the code here: http://pastebin.com/w74GbyP9
Make sure that you add it at the very bottom of functions.php.
Cheers!
Ismael
Hello,
I’m fairly new to WordPress so please bear with me!
I created a child theme with Enfold and copied my entire functions.php from the the Parent theme over to the child one. Now it’s giving me an error and I can’t access my site at all.
I really hope this is fixable and that I don’t have to re-do my entire site >__<
Error: “Parse error: syntax error, unexpected T_GLOBAL in /home/content/55/12002555/html/CCSVI_Canada/dev/wp-content/themes/enfold-child/functions.php on line 7”
Website: http://rmtest.ca/CCSVI_Canada/dev
Thanks in advance for your help!
Rebecca
Hey!
I created a test page using the Festival 2014 layout and added new contents. The added contents are preserved after the update. I noticed that you’re using a lot of inline styling and a bunch of html codes on top of one another. If you miss a single closing tag, it will erase all contents below. This is the test page using the http://cybertition.com/festival-2014/ tempate: http://cybertition.com/wp-admin/post.php?post=570&action=edit&message=6
Best regards,
Ismael
This reply has been marked as private.
Hi mcraig77!
Please add following code to Functions.php file in Appearance > Editor and adjust as needed
add_filter('avf_masonry_sort_first_label','new_first_label');
function new_first_label() {
$first_item_name = "New All";
return $first_item_name;
}
Regards,
Yigit
-
This reply was modified 11 years, 6 months ago by
Yigit.
Sure i’ve updated to latest version of WP and Enfold. Please take a look at: http://www.bit-fix.com
Seems to be same error for latest version of replete. Error: [Mon Oct 13 16:46:45 2014] [error] [client 173.245.55.134] client denied by server configuration: /home/…/public_html/sikkerhetskurs.info/ny/wp-content/themes/replete/framework/php/auto-updates/error_log
Here is the site: http://www.sikkerhetskurs.info/ny under construction with latest wp and replete.
Hi Lads
I noticed a small spelling error and I did not find it in the .po file (Danish) da_DK
So I did a text search in all “Enfold” — Options with no p :)
Here is the result:
config-templatebuilder\avia-shortcodes\masonry_entries.php(69): __(‘No, do not display sort otions‘, ‘avia_framework’ ) => ‘no’)),
config-templatebuilder\avia-shortcodes\portfolio.php(143): __(‘No, do not display sort otions‘, ‘avia_framework’ ) => ‘no’)),
framework\php\avia_shortcodes\tinymce\js\table-control.js(41): id: ‘scn-row-otions‘,
framework\php\avia_shortcodes\tinymce\js\table-control.js(47): id: ‘scn-column-otions‘,
Found 4 occurrence(s) in 3 file(s)
I leave you to fix it…. It’s not critical
Anonymous
This reply has been marked as private.