Viewing 30 results - 15,451 through 15,480 (of 16,892 total)
  • Author
    Search Results
  • #297949

    Hey!

    In your functions.php file, *not* the wordpress functions file, but the theme functions.php file you will add that line. If its the parent theme (enfold alone) it will be just after if(isset($avia_config['use_child_theme_functions_only'])) return; .If its a child theme then add it after the opening php line like I have in this child theme demo: https://github.com/DevinVinson/enfold-child-starter/blob/master/functions.php#L37

    Regards,
    Devin

    #297922
    mterrian
    Participant

    We updated Enfold and WordPress (to 3.9.1) last week, and our wonderful header and menu were ruined, along with other issues.

    See before and after images in private content.

    Also, when now trying to upload images of any kind or size, we receive the message:
    Fatal error: Maximum execution time of 30 seconds exceeded in /home/content/57/10144057/html/wp-includes/class-wp-image-editor-imagick.php on line 355

    Can you tell me why, and how to fix these situations?

    #297893
    igorvavrik
    Participant

    HI!
    I have several counter in the footer first four are sitting in one line, the other two yell.ru and yelp.com for some reason are stacked under each other.. Do you know how to make them all in one line?

    this is the code for the counters in footer.php

    	<?php
    		global $avia_config;
    		$blank = isset($avia_config['template']) ? $avia_config['template'] : "";
    
    		//reset wordpress query in case we modified it
    		wp_reset_query();
    
    		//get footer display settings
    		$the_id 				= avia_get_the_id(); //use avia get the id instead of default get id. prevents notice on 404 pages
    		$footer 				= get_post_meta($the_id, 'footer', true);
    		$footer_widget_setting 	= !empty($footer) ? $footer : avia_get_option('display_widgets_socket');
    
    		//check if we should display a footer
    		if(!$blank && $footer_widget_setting != 'nofooterarea' )
    		{
    			if( $footer_widget_setting != 'nofooterwidgets' )
    			{
    				//get columns
    				$columns = avia_get_option('footer_columns');
    		?>
    				<div class='container_wrap footer_color' id='footer'>
    
    					<div class='container'>
    
    						<?php
    						do_action('avia_before_footer_columns');
    
    						//create the footer columns by iterating
    
    						
    				        switch($columns)
    				        {
    				        	case 1: $class = ''; break;
    				        	case 2: $class = 'av_one_half'; break;
    				        	case 3: $class = 'av_one_third'; break;
    				        	case 4: $class = 'av_one_fourth'; break;
    				        	case 5: $class = 'av_one_fifth'; break;
    				        	case 6: $class = 'av_one_sixth'; break;
    				        }
    				        
    				        $firstCol = "first el_before_{$class}";
    
    						//display the footer widget that was defined at appearenace->widgets in the wordpress backend
    						//if no widget is defined display a dummy widget, located at the bottom of includes/register-widget-area.php
    						for ($i = 1; $i <= $columns; $i++)
    						{
    							if($i != 1) $class .= " el_after_{$class}  el_before_{$class}";
    							echo "<div class='flex_column {$class} {$firstCol}'>";
    							if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - column'.$i) ) : else : avia_dummy_widget($i); endif;
    							echo "</div>";
    							$firstCol = "";
    						}
    
    						do_action('avia_after_footer_columns');
    
    						?>
    
    					</div>
    
    				<!-- ####### END FOOTER CONTAINER ####### -->
    				</div>
    
    	<?php   } //endif nofooterwidgets ?>
    
    			<!-- end main -->
    			</div>
    
    			<?php
    
    			//copyright
    			$copyright = do_shortcode( avia_get_option('copyright', "&copy; ".__('Copyright','avia_framework')."  - <a href='".home_url('/')."'>".get_bloginfo('name')."</a>") );
    
    			// you can filter and remove the backlink with an add_filter function
    			// from your themes (or child themes) functions.php file if you dont want to edit this file
    			// you can also just keep that link. I really do appreciate it ;)
    			
    
    			//you can also remove the kriesi.at backlink by adding [nolink] to your custom copyright field in the admin area
    			if($copyright && strpos($copyright, '[nolink]') !== false)
    			{
    				$kriesi_at_backlink = "";
    				$copyright = str_replace("[nolink]","",$copyright);
    			}
    
    			if( $footer_widget_setting != 'nosocket' )
    			{
    
    			?>
    
    				<footer class='container_wrap socket_color' id='socket' <?php avia_markup_helper(array('context' => 'footer')); ?>>
                        <div class='container'>
    
                            <span class='copyright'><?php echo $copyright . $kriesi_at_backlink; ?></span>
    
                            <?php
                                echo "<nav class='sub_menu_socket' ".avia_markup_helper(array('context' => 'nav', 'echo' => false)).">";
                                    $avia_theme_location = 'avia3';
                                    $avia_menu_class = $avia_theme_location . '-menu';
    
                                    $args = array(
                                        'theme_location'=>$avia_theme_location,
                                        'menu_id' =>$avia_menu_class,
                                        'container_class' =>$avia_menu_class,
                                        'fallback_cb' => '',
                                        'depth'=>1
                                    );
    
                                    wp_nav_menu($args);
                                echo "</nav>";
                            ?>
    
                        </div>
    
    	            <!-- ####### END SOCKET CONTAINER ####### -->
    				</footer>
    
    			<?php
    			} //end nosocket check
    
    		}
    		else
    		{
    			echo "<!-- end main --></div>";
    		} //end blank & nofooterarea check
    
    		//display link to previeous and next portfolio entry
    		echo avia_post_nav();
    
    		echo "<!-- end wrap_all --></div>";
    
    		if(isset($avia_config['fullscreen_image']))
    		{ ?>
    			<!--[if lte IE 8]>
    			<style type="text/css">
    			.bg_container {
    			-ms-filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $avia_config['fullscreen_image']; ?>', sizingMethod='scale')";
    			filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $avia_config['fullscreen_image']; ?>', sizingMethod='scale');
    			}
    			</style>
    			<![endif]-->
    		<?php
    			echo "<div class='bg_container' style='background-image:url(".$avia_config['fullscreen_image'].");'></div>";
    		}
    	?>
    
    <?php
    
    	/* Always have wp_footer() just before the closing </body>
    	 * tag of your theme, or you will break many plugins, which
    	 * generally use this hook to reference JavaScript files.
    	 */
    
    	wp_footer();
    
    ?>
    <a href='#top' title='<?php _e('Scroll to top','avia_framework'); ?>' id='scroll-top-link' <?php echo av_icon_string( 'scrolltop' ); ?>><span class="avia_hidden_link_text"><?php _e('Scroll to top','avia_framework'); ?></span></a>
    <div id="fb-root"></div>
    <!-- Yandex.Metrika informer -->
    <a href="https://metrika.yandex.ru/stat/?id=25691525&from=informer"
    target="_blank" rel="nofollow"><img src="//bs.yandex.ru/informer/25691525/3_1_FFFFFFFF_EFEFEFFF_0_pageviews"
    style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)" onclick="try{Ya.Metrika.informer({i:this,id:25691525,lang:'ru'});return false}catch(e){}"/></a>
    <!-- /Yandex.Metrika informer -->
    
    <!-- Yandex.Metrika counter -->
    <script type="text/javascript">
    (function (d, w, c) {
        (w[c] = w[c] || []).push(function() {
            try {
                w.yaCounter25691525 = new Ya.Metrika({id:25691525,
                        webvisor:true,
                        clickmap:true,
                        trackLinks:true,
                        accurateTrackBounce:true});
            } catch(e) { }
        });
    
        var n = d.getElementsByTagName("script")[0],
            s = d.createElement("script"),
            f = function () { n.parentNode.insertBefore(s, n); };
        s.type = "text/javascript";
        s.async = true;
        s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";
    
        if (w.opera == "[object Opera]") {
            d.addEventListener("DOMContentLoaded", f, false);
        } else { f(); }
    })(document, window, "yandex_metrika_callbacks");
    </script>
    <noscript><div><img src="//mc.yandex.ru/watch/25691525" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
    <!-- /Yandex.Metrika counter -->
    
    <!-- begin of Top100 code -->
    
    <script id="top100Counter" type="text/javascript" src="http://counter.rambler.ru/top100.jcn?3038058"></script>
    <noscript>
    <a href="http://top100.rambler.ru/navi/3038058/">
    <img src="http://counter.rambler.ru/top100.cnt?3038058" alt="Rambler's Top100" border="0" />
    </a>
    
    </noscript>
    <!-- end of Top100 code -->
    <!--LiveInternet counter--><script type="text/javascript"><!--
    document.write("<a href='//www.liveinternet.ru/click' "+
    "target=_blank><img src='//counter.yadro.ru/hit?t52.6;r"+
    escape(document.referrer)+((typeof(screen)=="undefined")?"":
    ";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
    screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
    ";"+Math.random()+
    "' alt='' title='LiveInternet: number of pageviews and visitors"+
    " for 24 hours is shown' "+
    "border='0' width='88' height='31'><\/a>")
    //--></script><!--/LiveInternet-->
    
    <!--bigmir)net TOP 100-->
    <script type="text/javascript" language="javascript"><!--
    bmN=navigator,bmD=document,bmD.cookie='b=b',i=0,bs=[],bm={v:16935163,s:16935163,t:3,c:bmD.cookie?1:0,n:Math.round((Math.random()* 1000000)),w:0};
    for(var f=self;f!=f.parent;f=f.parent)bm.w++;
    try{if(bmN.plugins&&bmN.mimeTypes.length&&(x=bmN.plugins['Shockwave Flash']))bm.m=parseInt(x.description.replace(/([a-zA-Z]|\s)+/,''));
    else for(var f=3;f<20;f++)if(eval('new ActiveXObject("ShockwaveFlash.ShockwaveFlash.'+f+'")'))bm.m=f}catch(e){;}
    try{bm.y=bmN.javaEnabled()?1:0}catch(e){;}
    try{bmS=screen;bm.v^=bm.d=bmS.colorDepth||bmS.pixelDepth;bm.v^=bm.r=bmS.width}catch(e){;}
    r=bmD.referrer.replace(/^w+:\/\//,'');if(r&&r.split('/')[0]!=window.location.host){bm.f=escape(r).slice(0,400);bm.v^=r.length}
    bm.v^=window.location.href.length;for(var x in bm) if(/^[vstcnwmydrf]$/.test(x)) bs[i++]=x+bm[x];
    bmD.write('<a href="http://www.bigmir.net/" target="_blank" onClick="img=new Image();img.src="http://www.bigmir.net/?cl=16935163";"><img src="http://c.bigmir.net/?'+bs.join('&')+'"  width="88" height="31" border="0" alt="bigmir)net TOP 100" title="bigmir)net TOP 100"></a>');
    //-->
    </script>
    
    <noscript>
    <a href="http://www.bigmir.net/" target="_blank"><img src="http://c.bigmir.net/?v16935163&s16935163&t3" width="88" height="31" alt="bigmir)net TOP 100" title="bigmir)net TOP 100" border="0" /></a>
    </noscript>
    
    <!--bigmir)net TOP 100-->
    <div id="yelp-biz-badge-plain-zScAJRejYOlU8GjNG_LrAQ"><a href="http://www.yelp.com/biz/alex-pavlov-real-estate-broker-marina-del-rey-3">Check out Alex Pavlov Real Estate Broker on Yelp</a></div><script type="text/javascript">(function(d, t) {var g = d.createElement(t);var s = d.getElementsByTagName(t)[0];g.id = "yelp-biz-badge-script-plain-zScAJRejYOlU8GjNG_LrAQ";g.src = "//dyn.yelpcdn.com/biz_badge_js/en_US/plain/zScAJRejYOlU8GjNG_LrAQ.js";s.parentNode.insertBefore(g, s);}(document, 'script'));</script>
    
    <div id="yellrank"></div>
    <script src="http://www.yell.ru/yellrank/yellrank.js/?cmp=10980453"></script> 
    
    </body>
    </html>
    
    #297800

    In reply to: Enfold Theme Issues

    Hi!

    1) Yes, this might cause problems if you’re just changing the url (domain mapping) without replacing the urls in the database. You can use a plugin like WP MigrateDB or WP MigrateDB PRO to replace all occurences of http://youngwomenpioneers.com/ with http://www.womenspioneernetwork.com/ in your database. Then export ther new database file, make a backup of the old database and drop all tables of the database. Then import the file you generated with the migrate plugin.

    2) You can change the font size of the submenu titles with:

    
    #top #header .mega_menu_title a {
    font-size: 17px;
    }
    

    and the hover color with

    
    #top #header .mega_menu_title a:hover {
    color: #333;
    }
    

    3) Enfold does not support a Skype button and unfortunately the implementation of such a button is beyond the scope of our support forum. Maybe you can find an useful plugin here: http://wordpress.org/plugins/search.php?q=skype or hire a freelancer who can help you with the implementation.

    Best regards,
    Peter

    #297659

    Hi djshortkut!

    Again, thank you so much for using Enfold. :)

    You can edit functions-enfold.php, find this code on line 376:

    $image = get_the_post_thumbnail($entry->ID, 'thumbnail');
    

    Replace it with:

    $image = get_the_post_thumbnail($entry->ID, 'square');
    

    Regenerate the thumbnails.

    Cheers!
    Ismael

    techmyocn
    Participant

    Hi, I would like to change the height of the code below using my child’s theme functions.php.

    This is line 101 in the parent functions.php
    $avia_config['imgSize']['entry_with_sidebar'] = array('width'=>710, 'height'=>270); // big images for blog and page entries

    I tried the below but that did not work.

    if ( function_exists( 'add_theme_support' ) ) {
        add_theme_support( 'entry_with_sidebar'' );
        set_post_thumbnail_size( 710, 470 ); // New big images for blog and page
    }

    Thanks for your help.
    Victor

    • This topic was modified 11 years, 8 months ago by techmyocn.
    #297300

    Hey!

    This issue seems to be temporary. All of the users who open this kind of thread doesn’t seem to have a follow up reply after we answered their inquiries which tells us that the issue fixed itself after after some time. Please let us know if the issue continues after a few days or you can refer to this link on how to disable the theme session: https://kriesi.at/support/topic/error-issues-with-masonry_entries-php-on-line-33/#post-271660

    If you have the time, please try this fix: https://kriesi.at/support/topic/help-trying-to-understand-error-message/#post-271650

    Best regards,
    Ismael

    This reply has been marked as private.

    Hi Peter
    Thanks for the response.

    Is there away to have that js file read from the child theme ?
    or add additional theme update to include video insert features.

    While waiting for a response I worked on several solutions

    1. A youtube object embed from here ( https://developers.google.com/youtube/youtube_player_demo?hl=fr ) worked fine – but no splash graphic.
    2. I created a simple jquery function that on click hides a div with the splash graphic and shows div with Youtube object embed with auto play – worked fine on desktop – but not on iphone
    3. Our programmer came up with a this to remove the related videos at then end of the video play. Put this code in your Child themes functions.php file

    function remove_related_videos( $html, $url, $args ) {
    
        if ( strpos( $html, 'youtube.com/embed/' ) !== false ) {
            return str_replace( 'feature=oembed','feature=oembed&rel=0', $html );
        } else {
            return $html;
        }
    
    }
    add_filter( 'oembed_result', 'remove_related_videos', 10, 3 );

    4. The final solution was a workaround to use a image as a splash have this link to a manual url = youtube?watch that opened in a lightbox. All done with the Avia layout builder. This worked seamlessly across all browsers in IE8 IE11 and mobile devices with the insertion of the code from this forum into my child theme function.php file.

    https://kriesi.at/support/topic/youtube-video-not-working-in-ligthbox/#post-288867

    Which raises the question…

    why would the mediaelement.js work as a video player cross platform in a lightbox – but not as a page element?

    Now that I have found a work around solution – I’ve lost interest in hacking away at this – may be there will be an improvement with WordPress 4.0

    #297104

    Hi Guys

    the server admin says that the permissions are Ok “755” on the /tmp folder.
    They are suggesting that it is a code error

    when i look at line 33 /home/briscs/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 33 it is the same as all of the other sites that i use this theme on. so I am a little confused.

    Any more suggestions

    #297021
    finchkelsey
    Participant

    Fatal error: Call to undefined function avia_get_header_scroll_offset() in /home/site/site.site.com/wp-content/themes/enfold/css/dynamic-css.php on line 772

    • This topic was modified 11 years, 8 months ago by finchkelsey.
    finchkelsey
    Participant

    What is the fix for this please…I did a manual theme update via ftp to this result.

    Fatal error: Call to undefined function avia_get_header_scroll_offset() in /home/site/site.site.com/wp-content/themes/enfold/css/dynamic-css.php on line 772

    Thanks

    #296961

    Hey!

    Please add following code to Functions.php file in Appearance > Editor

    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('li#menu-item-6276>a').addClass('open-popup-link');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    Best regards,
    Yigit

    #296592

    so now here my solution:
    you can download here a svg file of your U+2712
    http://www.fileformat.info/info/unicode/char/2712/index.htm
    ( http://www.fileformat.info/info/unicode/char/2712/black_nib.svg)

    than you can upload that svg file to http://fontello.com/
    the fontello icons generator. you than can download this font as a zip file and upload it via your Enfold Options Dialog (Import/Export)
    after that you can use this uploaded font in every icon context – to get the code of your sign use f.e. an Iconbox and navigate to your uploaded sign – on mouseover the code is shown.

    than you have to change the functions.php in that way described above
    that line :
    'ov_image' => array( 'font' =>'entypo-fontello', 'icon' => 'ue869'),
    goes to f.e.
    'ov_image' => array( 'font' =>'newfont', 'icon' => 'ue753'),

    on fontello icon fontgenerator you can give a name to the downloaded font you created or selected there (here newfont)

    #296587

    and did you use .image-overlay .image-overlay-inside:before
    i don’t know wheather it works with unicode fonts i used a custom font made on fontello font generator

    try first of all this:

    .image-overlay .image-overlay-inside:before {
        content: "✒";
      -webkit-transform: rotate(30deg);
      -moz-transform: rotate(30deg);
      -o-transform: rotate(30deg);
      -ms-transform: rotate(30deg);
      transform: rotate(30deg);
        font-size: 70px;
        line-height: 70px;
    }

    the transform is only to rotate the content. If you don’t like it – get rid of it

    you can see an other solution here: https://kriesi.at/support/topic/custom-fontello-icon-set-to-standard-post-pic/

    it is i guess in functions.php the line 218
    'ov_image' => array( 'font' =>'entypo-fontello', 'icon' => 'ue869'),

    concerning to your problem.
    if you have a child-theme installed you can do it as described above.
    or you can change it by editing the functions.php itself and have in mind after updates it could be loss than.

    btw . your mentioned U+2712 is an Fontello Icon or do you think that you can use unicode fonts here ?

    • This reply was modified 11 years, 8 months ago by Guenni007.
    #296429

    Hi!

    1) I uploaded the files here: https://www.mediafire.com/?4xvw8la68gv824t

    2) You just need to unzip the sensei.zip file and upload the unpacked sensei folder into the wp-content/themes/enfold/ folder.

    3) Yes, if you use the automatic theme update feature of wordpress. No if you update the theme files with ftp (just overwrite the existing theme files on your server): https://vimeo.com/channels/aviathemes/67209750

    4) I added this code into the quick css field to fix the comments styling:

    
    #top.single-lesson #comments{ clear: both; padding-top: 20px; }
    
    

    5) I noticed someone added php code into the quick css field – that’s not possible. You can place the php code into the enfold/functions.php file or child theme functions.php file but the quick css field will not execute or accept any php code. For reference I attached the php code below…

    
    // dave add published comments.
    add_action('sensei_single_main_content', 'dc_add_comments_to_template');  
     
    function dc_add_comments_to_template() {
    	//Gather comments on the post 
    	$comments = get_comments(array(
    		'post_id' => get_the_ID(),
    		'status' => 'approve' //Change this to the type of comments to be displayed
    	));
     
    	//Display the list of comments
    		
    	echo '<div class="entry-comments"><ul>';
    		
    	wp_list_comments(array(
    		'per_page' => 10, // Allow comment pagination (optional)
    		'type' => 'comment', // Very important! Otherwise you get Woo's comments for some internal process.
    		'reverse_top_level' => false // Show the latest comments at the top of the list
    	), $comments);
    		
    	echo '</ul></div>';
    		
    }
    // end of dave's code
    

    Regards,
    Peter

    #296395

    Hey!

    If you can choose a predefined size from function.php this would be the easiest way.

    You just have to take the name like portfolio_small.

    If this is not an option add the following in function.php after entry_without_sidebar and adjust the values.

    
    $avia_config['imgSize']['your_selected_size'] 	= array('width'=>710, 'height'=>270);
    

    You have to regenerate the thmbnails with a plugin like https://wordpress.org/plugins/regenerate-thumbnails/

    Cheers!
    Günter

    This reply has been marked as private.
    #296233

    Hey!

    It seems like LayerSlider triggers too many database queries (maybe because it tries to query all 45000 posts in the database but I’m not sure) and the the mysql server terminates the connection. ( [Thu Jul 24 03:06:56.330217 2014] [:error] [pid 4911] [client 181.64.190.126:55692] PHP Warning: mysql_real_escape_string(): A link to the server could not be established – referer: http://www.2waybrasil.com.br/produtos/wp-admin/admin.php?page=layerslider ). I don’t know if and how we can fix this on our end and I’ll forward the issue to Kriesi. In the worst case we can only report the issue to the plugin author and hopefully they can release an update for the LayerSlider plugin.

    Cheers!
    Peter

    #296190

    Hey!

    You can either deactivate the sessions: https://kriesi.at/support/topic/error-issues-with-masonry_entries-php-on-line-33/#post-271660 or contact the server administrator and ask him to fix the sessions configuration.

    Best regards,
    Peter

    #295905
    This reply has been marked as private.
    #295794
    Geoffdoyle
    Participant

    Warning: session_start(): open(/tmp/sess_d5bfe2f14b03dd43c12eabcf6b829b7e, O_RDWR) failed: Permission denied (13) in /home/briscs/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 33

    The above error message is received when we use http://www.brisbanecomputersolutions.com.au There is no problem when the www. is not used.

    Any suggestions

    Hi Steve,

    Open /config-templatebuilder/avia-shortcodes/portfolio.php and look for line 703:

    $output .= " <a href='".$img[0]."' class='portolio-preview-list-image' title='".$description."' ><img src='".$img[0]."' title='".$title."' alt='".$alt."' /></a>";
    

    Replace it by this:

    $output .= " <img src='".$img[0]."' title='".$title."' alt='".$alt."' />";
    

    Regards,
    Josue

    #295682
    ThomasWalkerDesign
    Participant

    Hey there,

    I need to use the size 600×338 for the thumbnails in my portfolio as that keeps the ratio correct for 16:9 videos. I tried to add a video_thumbnail, but then realized that wouldn’t work. Where in the functions.php do I make this edit so the thumbnails in the grid layout will be this correct size?

    HERE IS THE CODE I AM WORKING WITH:

    ##################################################################
    # AVIA FRAMEWORK by Kriesi

    # this include calls a file that automatically includes all
    # the files within the folder framework and therefore makes
    # all functions and classes available for later use

    require_once( ‘framework/avia_framework.php’ );

    ##################################################################

    /*
    * Register additional image thumbnail sizes
    * Those thumbnails are generated on image upload!
    *
    * If the size of an array was changed after an image was uploaded you either need to re-upload the image
    * or use the thumbnail regeneration plugin: http://wordpress.org/extend/plugins/regenerate-thumbnails/
    */

    $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’][‘video_thumbnail’] = array(‘width’=>600, ‘height’=>338 ); // images for video on demand thumbnails
    $avia_config[‘imgSize’][‘gallery’] = array(‘width’=>710, ‘height’=>575 ); // 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’=>710, ‘height’=>270); // big images for blog and page entries
    $avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1030, ‘height’=>360 ); // images for fullsize pages and fullsize slider

    //overwrite blog and fullwidth image on extra large layouts
    if(avia_get_option(‘responsive_layout’) == “responsive responsive_large”)
    {
    $avia_config[‘imgSize’][‘gallery’] = array(‘width’=>845, ‘height’=>684 ); // images for portfolio entries (2,3 column)
    $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
    }

    $avia_config[‘selectableImgSize’] = array(
    ‘square’ => __(‘Square’,’avia_framework’),
    ‘featured’ => __(‘Featured Thin’,’avia_framework’),
    ‘featured_large’ => __(‘Featured Large’,’avia_framework’),
    ‘portfolio’ => __(‘Portfolio’,’avia_framework’),
    ‘gallery’ => __(‘Gallery’,’avia_framework’),
    ‘video_thumbnail’ => __(‘Video on Demand’,’avia_framework’),
    ‘entry_with_sidebar’ => __(‘Entry with Sidebar’,’avia_framework’),
    ‘entry_without_sidebar’ => __(‘Entry without Sidebar’,’avia_framework’),
    ‘extra_large’ => __(‘Fullscreen Sections/Sliders’,’avia_framework’),

    );

    avia_backend_add_thumbnail_size($avia_config);

    if ( ! isset( $content_width ) ) $content_width = $avia_config[‘imgSize’][‘featured’][‘width’];

    HERE IS THE PAGE ON MY SITE:

    http://dev.questcommunity.com/watch/

    Thanks,
    Nate

    #295532

    Hey ghodson!

    I can’t tell you which script breaks the w3tc plugin but I can provide the configuration which is used on my websites (with Enfold). The config data can be found in wp-content/w3tc-config/master.php

    
    return array(
    	'version' => '0.9.4',
    	'common.instance_id' => XXXX,
    	'pgcache.enabled' => true,
    	'pgcache.engine' => 'file_generic',
    	'minify.enabled' => true,
    	'minify.auto' => false,
    	'minify.engine' => 'file',
    	'minify.html.engine' => 'html',
    	'minify.js.engine' => 'js',
    	'minify.css.engine' => 'css',
    	'dbcache.enabled' => true,
    	'dbcache.engine' => 'file',
    	'objectcache.enabled' => false,
    	'objectcache.engine' => 'file',
    	'browsercache.enabled' => true,
    	'cdn.enabled' => false,
    	'cdn.engine' => 'ftp',
    	'varnish.enabled' => false,
    	'varnish.servers' => array(
    		0 => '',
    	),
    	'newrelic.enabled' => false,
    	'newrelic.api_key' => '',
    	'newrelic.account_id' => '',
    	'newrelic.appname' => '',
    	'newrelic.application_id' => 0,
    	'widget.pagespeed.enabled' => true,
    	'widget.pagespeed.key' => '',
    	'config.check' => true,
    	'pgcache.file.nfs' => false,
    	'minify.file.nfs' => false,
    	'dbcache.file.locking' => false,
    	'objectcache.file.locking' => false,
    	'pgcache.file.locking' => false,
    	'minify.file.locking' => false,
    	'minify.rewrite' => true,
    	'minify.reject.logged' => true,
    	'minify.html.enable' => true,
    	'minify.html.inline.css' => true,
    	'minify.html.inline.js' => false,
    	'minify.html.reject.feed' => true,
    	'minify.html.strip.crlf' => true,
    	'minify.html.comments.ignore' => array(
    		0 => 'google_ad_',
    		1 => 'RSPEAK_',
    	),
    	'minify.js.enable' => true,
    	'minify.js.combine.header' => false,
    	'minify.js.header.embed_type' => 'blocking',
    	'minify.js.strip.comments' => false,
    	'minify.js.strip.crlf' => false,
    	'minify.css.enable' => true,
    	'minify.css.combine' => false,
    	'minify.css.strip.comments' => false,
    	'minify.css.strip.crlf' => true,
    	'minify.css.imports' => '',
    	'minify.lifetime' => 86400,
    	'minify.file.gc' => 86400,
    	'minify.reject.uri' => array(
    		0 => '',
    	),
    	'minify.reject.files.js' => array(
    		0 => '',
    	),
    	'minify.reject.files.css' => array(
    		0 => '',
    	),
    	'minify.reject.ua' => array(
    		0 => '',
    	),
    	'minify.cache.files' => array(
    		0 => 'https://ajax.googleapis.com',
    	),
    	'notes.need_empty_minify' => false,
    	'browsercache.timestamp' => '1405783478',
    	'browsercache.no404wp' => false,
    	'browsercache.no404wp.exceptions' => array(
    		0 => 'robots\\.txt',
    		1 => '[a-z0-9_\\-]*sitemap[a-z0-9_\\-]*\\.(xml|xsl|html)(\\.gz)?',
    	),
    	'browsercache.cssjs.last_modified' => true,
    	'browsercache.cssjs.expires' => true,
    	'browsercache.cssjs.lifetime' => 31536000,
    	'browsercache.cssjs.cache.control' => false,
    	'browsercache.cssjs.cache.policy' => 'cache_public_maxage',
    	'browsercache.cssjs.etag' => false,
    	'browsercache.cssjs.w3tc' => false,
    	'browsercache.cssjs.compression' => true,
    	'browsercache.cssjs.replace' => false,
    	'browsercache.cssjs.nocookies' => false,
    	'browsercache.html.last_modified' => true,
    	'browsercache.html.expires' => true,
    	'browsercache.html.lifetime' => 3600,
    	'browsercache.html.cache.control' => false,
    	'browsercache.html.cache.policy' => 'cache_public_maxage',
    	'browsercache.html.etag' => false,
    	'browsercache.html.w3tc' => false,
    	'browsercache.html.compression' => true,
    	'browsercache.other.last_modified' => true,
    	'browsercache.other.expires' => true,
    	'browsercache.other.lifetime' => 31536000,
    	'browsercache.other.cache.control' => false,
    	'browsercache.other.cache.policy' => 'cache_public_maxage',
    	'browsercache.other.etag' => false,
    	'browsercache.other.w3tc' => false,
    	'browsercache.other.compression' => true,
    	'browsercache.other.replace' => false,
    	'browsercache.other.nocookies' => false,
    	'notes.plugins_updated' => false,
    	'notes.support_us' => false,
    	'pgcache.late_init' => false,
    	'minify.debug' => false,
    	'notes.need_empty_pgcache' => false,
    	'pgcache.debug' => false,
    	'dbcache.debug' => false,
    	'dbcache.reject.logged' => true,
    	'dbcache.lifetime' => 180,
    	'dbcache.file.gc' => 3600,
    	'dbcache.reject.uri' => array(
    		0 => '',
    	),
    	'dbcache.reject.sql' => array(
    		0 => 'gdsr_',
    		1 => 'wp_rg_',
    		2 => '_wc_session_',
    	),
    	'dbcache.reject.words' => array(
    		0 => '^\\s*insert\\b',
    		1 => '^\\s*delete\\b',
    		2 => '^\\s*update\\b',
    		3 => '^\\s*replace\\b',
    		4 => '^\\s*create\\b',
    		5 => '^\\s*alter\\b',
    		6 => '^\\s*show\\b',
    		7 => '^\\s*set\\b',
    		8 => '\\bautoload\\s+=\\s+\'yes\'',
    		9 => '\\bsql_calc_found_rows\\b',
    		10 => '\\bfound_rows\\(\\)',
    		11 => '\\bw3tc_request_data\\b',
    	),
    	'plugin.type' => '',
    	'fragmentcache.enabled' => false,
    	'fragmentcache.engine' => 'file',
    	'cluster.messagebus.enabled' => false,
    	'cluster.messagebus.sns.region' => '',
    	'cluster.messagebus.sns.api_key' => '',
    	'cluster.messagebus.sns.api_secret' => '',
    	'plugin.license_key' => '',
    	'minify.js.combine.body' => false,
    	'minify.js.body.embed_type' => 'blocking',
    	'minify.js.combine.footer' => false,
    	'minify.js.footer.embed_type' => 'blocking',
    	'minify.js.groups' => array(
    		'7c169' => array(
    			'default' => array(
    				'include' => array(
    					'files' => array(
    						0 => 'wp-includes/js/jquery/jquery.js',
    						1 => 'wp-includes/js/jquery/jquery-migrate.min.js',
    						5 => 'wp-content/themes/enfold/js/avia-compat.js',
    						6 => 'wp-includes/js/comment-reply.min.js',
    						12 => 'wp-content/themes/enfold/js/avia.js',
    						13 => 'wp-content/themes/enfold/js/shortcodes.js',
    					),
    				),
    				'include-footer' => array(
    					'files' => array(
    						0 => 'wp-content/themes/enfold/config-woocommerce/woocommerce-mod.js',
    						2 => 'wp-includes/js/jquery/ui/jquery.ui.core.min.js',
    					),
    				),
    			),
    		),
    	),
    	'minify.css.groups' => array(
    		'7c169' => array(
    			'default' => array(
    				'include' => array(
    					'files' => array(
    						3 => 'wp-content/themes/enfold/config-woocommerce/woocommerce-mod.css',
    						4 => 'wp-content/themes/enfold/css/base.css',
    						5 => 'wp-content/themes/enfold/css/layout.css',
    						6 => 'wp-content/themes/enfold/css/shortcodes.css',
    						7 => 'wp-content/themes/enfold/js/mediaelement/skin-1/mediaelementplayer.css',
    						8 => 'wp-content/uploads/dynamic_avia/enfold.css',
    					),
    				),
    			),
    		),
    	),
    	'pgcache.accept.uri' => array(
    		0 => 'sitemap(_index)?\\.xml(\\.gz)?',
    		1 => '([a-z0-9_\\-]+)?sitemap\\.xsl',
    		2 => '[a-z0-9_\\-]+-sitemap([0-9]+)?\\.xml(\\.gz)?',
    	),
    	'cdn.theme.files' => '*.css;*.js;*.gif;*.png;*.jpg;*.ico;*.ttf;*.otf,*.woff,*.less',
    	'mobile.rgroups' => array(
    		'high' => array(
    			'theme' => '',
    			'enabled' => false,
    			'redirect' => '',
    			'agents' => array(
    				0 => 'acer\\ s100',
    				1 => 'android',
    				2 => 'archos5',
    				3 => 'bada',
    				4 => 'bb10',
    				5 => 'blackberry9500',
    				6 => 'blackberry9530',
    				7 => 'blackberry9550',
    				8 => 'blackberry\\ 9800',
    				9 => 'cupcake',
    				10 => 'docomo\\ ht\\-03a',
    				11 => 'dream',
    				12 => 'froyo',
    				13 => 'googlebot-mobile',
    				14 => 'htc\\ hero',
    				15 => 'htc\\ magic',
    				16 => 'htc_dream',
    				17 => 'htc_magic',
    				18 => 'iemobile/7.0',
    				19 => 'incognito',
    				20 => 'ipad',
    				21 => 'iphone',
    				22 => 'ipod',
    				23 => 'kindle',
    				24 => 'lg\\-gw620',
    				25 => 'liquid\\ build',
    				26 => 'maemo',
    				27 => 'mot\\-mb200',
    				28 => 'mot\\-mb300',
    				29 => 'nexus\\ one',
    				30 => 'nexus\\ 7',
    				31 => 'opera\\ mini',
    				32 => 's8000',
    				33 => 'samsung\\-s8000',
    				34 => 'series60.*webkit',
    				35 => 'series60/5\\.0',
    				36 => 'sonyericssone10',
    				37 => 'sonyericssonu20',
    				38 => 'sonyericssonx10',
    				39 => 't\\-mobile\\ mytouch\\ 3g',
    				40 => 't\\-mobile\\ opal',
    				41 => 'tattoo',
    				42 => 'touch',
    				43 => 'webmate',
    				44 => 'webos',
    			),
    		),
    		'low' => array(
    			'theme' => '',
    			'enabled' => false,
    			'redirect' => '',
    			'agents' => array(
    				0 => '2\\.0\\ mmp',
    				1 => '240x320',
    				2 => 'alcatel',
    				3 => 'amoi',
    				4 => 'asus',
    				5 => 'au\\-mic',
    				6 => 'audiovox',
    				7 => 'avantgo',
    				8 => 'benq',
    				9 => 'bird',
    				10 => 'blackberry',
    				11 => 'blazer',
    				12 => 'cdm',
    				13 => 'cellphone',
    				14 => 'danger',
    				15 => 'ddipocket',
    				16 => 'docomo',
    				17 => 'dopod',
    				18 => 'elaine/3\\.0',
    				19 => 'ericsson',
    				20 => 'eudoraweb',
    				21 => 'fly',
    				22 => 'haier',
    				23 => 'hiptop',
    				24 => 'hp\\.ipaq',
    				25 => 'htc',
    				26 => 'huawei',
    				27 => 'i\\-mobile',
    				28 => 'iemobile',
    				29 => 'iemobile/7',
    				30 => 'iemobile/9',
    				31 => 'j\\-phone',
    				32 => 'kddi',
    				33 => 'konka',
    				34 => 'kwc',
    				35 => 'kyocera/wx310k',
    				36 => 'lenovo',
    				37 => 'lg',
    				38 => 'lg/u990',
    				39 => 'lge\\ vx',
    				40 => 'midp',
    				41 => 'midp\\-2\\.0',
    				42 => 'mmef20',
    				43 => 'mmp',
    				44 => 'mobilephone',
    				45 => 'mot\\-v',
    				46 => 'motorola',
    				47 => 'msie\\ 10\\.0',
    				48 => 'netfront',
    				49 => 'newgen',
    				50 => 'newt',
    				51 => 'nintendo\\ ds',
    				52 => 'nintendo\\ wii',
    				53 => 'nitro',
    				54 => 'nokia',
    				55 => 'novarra',
    				56 => 'o2',
    				57 => 'openweb',
    				58 => 'opera\\ mobi',
    				59 => 'opera\\.mobi',
    				60 => 'p160u',
    				61 => 'palm',
    				62 => 'panasonic',
    				63 => 'pantech',
    				64 => 'pdxgw',
    				65 => 'pg',
    				66 => 'philips',
    				67 => 'phone',
    				68 => 'playbook',
    				69 => 'playstation\\ portable',
    				70 => 'portalmmm',
    				71 => '\\bppc\\b',
    				72 => 'proxinet',
    				73 => 'psp',
    				74 => 'qtek',
    				75 => 'sagem',
    				76 => 'samsung',
    				77 => 'sanyo',
    				78 => 'sch',
    				79 => 'sch\\-i800',
    				80 => 'sec',
    				81 => 'sendo',
    				82 => 'sgh',
    				83 => 'sharp',
    				84 => 'sharp\\-tq\\-gx10',
    				85 => 'small',
    				86 => 'smartphone',
    				87 => 'softbank',
    				88 => 'sonyericsson',
    				89 => 'sph',
    				90 => 'symbian',
    				91 => 'symbian\\ os',
    				92 => 'symbianos',
    				93 => 'toshiba',
    				94 => 'treo',
    				95 => 'ts21i\\-10',
    				96 => 'up\\.browser',
    				97 => 'up\\.link',
    				98 => 'uts',
    				99 => 'vertu',
    				100 => 'vodafone',
    				101 => 'wap',
    				102 => 'willcome',
    				103 => 'windows\\ ce',
    				104 => 'windows\\.ce',
    				105 => 'winwap',
    				106 => 'xda',
    				107 => 'xoom',
    				108 => 'zte',
    			),
    		),
    	),
    	'extensions.active' => array(
    		'wordpress-seo' => 'w3-total-cache/extensions/WordPressSEO.php',
    	),
    	'pgcache.prime.enabled' => true,
    	'pgcache.prime.sitemap' => '/sitemap_index.xml',
    	'fragmentcache.debug' => false,
    );
    

    If W3TC doesn’t work for you try these plugins instead: https://wordpress.org/plugins/bwp-minify/ and https://wordpress.org/plugins/wp-super-cache/

    Best regards,
    Peter

    #295452
    This reply has been marked as private.
    #295415
    Munford
    Participant

    PLEASE HELP!
    My client just saw this on a site that has been up and running for months. I have not changed the files recently, but last time I looked at the admin and site it was all fine. Now the site cphfilmcompany.dk returns this error:
    Fatal error: Out of memory (allocated 27262976) (tried to allocate 428729 bytes) in /home/cphfilm/public_html/wp-includes/functions.php on line 275
    and if I try to get into the wp admin the errors come up in any number of files connected to some plugins, especially it seems good old WPML.
    I really hoped this is a server problem, but now I see there may be some issue with the plugins? I can’t access the admin so I can’t see what’s going on, although I can access the files on the server. I am not a coder.
    Can you help me with this?? I am also tyring to contact our hosting service but maybe you can see where the error is.
    thanks so much!
    Nancy

    • This topic was modified 11 years, 8 months ago by Munford.
    #295271

    Hey!

    Where in functions.php are you putting this code? are you using a child theme? try changing the priority parameter:

    add_filter(‘frm_where_filter’, ‘starts_with_filter’, 1000, 2);
    function starts_with_filter($where, $args){
    if ($args['display']->ID == 6157 and $args['where_opt'] == 551){
    $where = str_replace(” ‘%”, ” ‘”, $where);
    }
    return $where;
    }
    

    Regards,
    Josue

    #295139

    In the mean time… ;)

    I replaced all the files in FTP with the files I backup’ed two days ago. This is much worse. Not just AN error on top of the website, but a fatal error and as such:

    Warning: require(/srv/hchcur/www/www.hch-cursussen.nl/wp-includes/pomo/mo.php) [function.require]: failed to open stream: No such file or directory in /srv/hchcur/www/www.hch-cursussen.nl/wp-settings.php on line 76

    Fatal error: require() [function.require]: Failed opening required ‘/srv/hchcur/www/www.hch-cursussen.nl/wp-includes/pomo/mo.php’ (include_path=’.:/var/php5/lib/php’) in /srv/hchcur/www/www.hch-cursussen.nl/wp-settings.php on line 76

    So I’m undoing right now what I just did, replacing all the files with what I just backup’ed 20 mins ago, in the mean time trying to get my heart beat down from 180 to 60-100 again.

    #295097
    This reply has been marked as private.
Viewing 30 results - 15,451 through 15,480 (of 16,892 total)