Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1060640

    WordPress 4.9.8 Enfold 4.5.3

    Today I upgraded via FTP from Enfold 4.2.6 and now there are some pages with missing content.
    https://www.chicagochurch.org/welcome/ Missing animated numbers on white bar ‘families’ ‘small groups’ etc.
    https://www.chicagochurch.org/locations/ Missing Google Map
    https://www.chicagochurch.org/contact-us/ Missing Google Map and Contact Form

    I encountered this same problem when upgrading Enfold about 9 months ago. I was hoping the problem would fix itself with a future upgrade, so I just rolled back my Enfold and everything worked fine.

    Enfold Child –> Google Services says “Last time we checked we were able to connected to google maps with your API key.” And, again, the maps and everything were working fine this morning before the Enfold upgrade.

    Login credentials are on this ticket.

    Thank you!

    #1060718

    Hey kroskopf,
    I took a look at your site and found the “Series Engine” plugin is giving an error.
    All of your errors above are corrected when the plugin is deactivated.
    Please check.

    Best regards,
    Mike

    #1061204

    Hi… the support for Series Engine says…

    “I can verify the the core issue is that the theme isn’t enqueuing mediaelement.js like it’s supposed to. There’s gotta be a toggle in there somewhere to turn that back on, which will fix everything.”

    Does Enfold block mediaelement.js? Is there a way to turn it on with the Enfold settings?

    Login credentials below. Thank you!

    #1061322

    Hi,
    Please try to edit the functions.php, find this line of codes.

    
    wp_register_script( 'avia-html5-video', $template_url.'/js/mediaelement/mediaelement-and-player.min.js', 'jquery', "1", true);
    
    and
    
    wp_enqueue_script( 'avia-html5-video' );
    

    Replace them with

    
    //wp_register_script( 'avia-html5-video', $template_url.'/js/mediaelement/mediaelement-and-player.min.js', 'jquery', "1", true);
    
    and
    
    //wp_enqueue_script( 'avia-html5-video' );
    

    Best regards,
    Mike

    #1061328

    I don’t see those exact lines, but I see similar code beginning around line 420 of wp-content/themes/enfold/functions.php

    		//load mediaelement js
    		$opt_mediaelement = isset( $options['disable_mediaelement'] ) ? $options['disable_mediaelement'] : '';
    		
    		$condition = true;
    		if( 'force_mediaelement' != $opt_mediaelement )
    		{
    			$condition  = ( $opt_mediaelement != "disable_mediaelement" ) && av_video_assets_required();
    		}
    		
    		/**
    		 * Allow to force loading of WP media element for 3rd party plugins. Nedded for wp_enqueue_media() to load properly.
    		 * 
    		 * @since 4.1.2 
    		 * @param boolean $condition 
    		 * @param array $options
    		 * @return boolean
    		 */
    		$condition = apply_filters( 'avf_enqueue_wp_mediaelement', $condition, $options );		
    		
    		$condition2 = ( version_compare( get_bloginfo( 'version' ), '4.9', '>=' ) ) && $condition;
    		avia_enqueue_script_conditionally( $condition , 'wp-mediaelement');
    		avia_enqueue_style_conditionally( $condition2 , 'wp-mediaelement'); //With WP 4.9 we need to load the stylesheet seperately

    Are there edits I make to this code block to allow mediaelement.js to load?

    #1061332

    Hi,
    Sorry, the solution I found above was for a different version, but I did find the setting for forcing mediaelement.js to load, it is under the Enfold Theme Options > Performance > Self hosted video and audio
    2019-01-31-194515
    I set it to “always load” and enabled your plugin, then tested for the errors above. Everything seems to be running correctly.
    Please check.

    Best regards,
    Mike

    #1061598

    Thank you! Everything is running perfectly now!

    #1061795

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Enfold Items Not Working After Upgrade’ is closed to new replies.