Okay
  Public Ticket #1211831
Contact Form
Closed

Comments

  •  2
    Sam started the conversation

    Hi Guys,

    I've just updated to the latest version of Salient today and WP 4.8

    My site now wont load if I have Contact Form 7 enabled. I get this in the JS Console: 

    7db4ceb796fbc1afd04881c598c770f7.js:6 JQMIGRATE: Migrate is installed, version 1.4.1

    05aa63520d41ffc3d5775098894585a4.js:2 Uncaught TypeError: wpcf7.toggleSubmit is not a function

        at HTMLFormElement.<anonymous> (05aa63520d41ffc3d5775098894585a4.js:2)

        at Function.each (7db4ceb796fbc1afd04881c598c770f7.js:2)

        at e.fn.init.each (7db4ceb796fbc1afd04881c598c770f7.js:2)

        at HTMLDocument.<anonymous> (05aa63520d41ffc3d5775098894585a4.js:2)

        at l (7db4ceb796fbc1afd04881c598c770f7.js:3)

        at Object.fireWith [as resolveWith] (7db4ceb796fbc1afd04881c598c770f7.js:3)

        at Function.ready (7db4ceb796fbc1afd04881c598c770f7.js:3)

        at HTMLDocument.s (7db4ceb796fbc1afd04881c598c770f7.js:2)

    Tried, deleting and re-installing. But no luck. This was all working fine before I upgraded.

    Any help would be great!


    KR

    Sam


  •  2,744
    Andrew replied

    Hi Sam,

    I hope you are having an awesome day and thanks for contacting us regarding your query.

    It's never really advised to update WordPress without first ensuring that your themes and plugins are fully compatible. It's usually best to wait for an update for those before updating WordPress as doing so without your plugins and themes compatible will cause issues as you're having now. 

    With that said, I'm going to advise that you use the All In One Migration plugin to do a full site backup, then use WP Downgrade to go back to the previous version of WordPress.

    That should get things working properly again.

    If that's the only issue, then you should be able to upgrade after CF7 updates.

    I hope this helps 

    Cheers! 

  •  2
    Sam replied

    Thanks Andrew,


    Unfortunately I've rolled back to 4.7.3 and I'm still having the same problem...

    Any more ideas>

    Cheers

    Sam

  •  2
    Sam replied

    I'll try rolling back a little further...

  •  2
    Sam replied

    Unfortunately no change 

  •  2
    Sam replied

    Ok, so I restored the full site from a backup (which was on 4.7.5) then just upgraded Salient. All seems to be good now. thanks

  •  8,470
    Tahir replied

    Hey Again,

    I can no longer see any console errors . 


    Please clear your cache using this guide: Clear Cache where applicable .

    Best.


    ThemeNectar Support Team 

  •  2
    Sam replied

    Hi Tahir,

    Ok I've done that and the issue has returned. 

    I then rolled back to a working backup, upgraded Salient & Salient VC. But then one I install Woocommerce the issues seems to of returned to the console.

    Any help would be amazing guys!

  •  8,470
    Tahir replied

    Hey Again,

    So the Issue is with Woocommerce ?.

    Also check your server for php errors: http://premium.wpmudev.org/blog/your-complete-guide-to-troubleshooting-wordpress/ .

    Best.


    ThemeNectar Support Team 

  •  2
    Sam replied

    It would appear not.

    This setup was fine before the upgrade...

    No PHP issues logged. But works fine if I deactivate either Woo or Contact Form 7?

    But again only became an issue after upgrading to Salient 8


    Any ideas? Thanks for all your help too!

  •  2
    Sam replied

    Following the link you sent gives me to following in an error log:


    [21-Jun-2017 17:13:00 UTC] [2017-06-21 17:13:00] - WPHB API: Sending request to https://m9gnuc7j4d.execute-api.us-east-1.amazonaws.com/hummingbird/minify/
    [21-Jun-2017 17:13:00 UTC] [2017-06-21 17:13:00] - WPHB API: Arguments:
    [21-Jun-2017 17:13:00 UTC] [2017-06-21 17:13:00] - Array
    (
        [headers] => Array
            (
                [content-type] => application/json
                [Authorization] => Basic 6b8ab00a83a9496327de434e10f7dc0a2976fe3c
            )

        [sslverify] => 
        [method] => POST
        [timeout] => 15
    )

    [21-Jun-2017 17:13:01 UTC] [2017-06-21 17:13:01] - WPHB API: Response:
    [21-Jun-2017 17:13:01 UTC] [2017-06-21 17:13:01] - Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [content-type] => application/json
                        [content-length] => 26775
                        [date] => Wed, 21 Jun 2017 17:13:01 GMT
                        [x-amzn-requestid] => e107a842-56a4-11e7-b701-83264c2a1a0a
                        [x-amzn-trace-id] => sampled=0;root=1-594aa91c-260d61e00f2ef17a51f6220d
                        [x-cache] => Miss from cloudfront
                        [via] => 1.1 4a470688318a5a155ec4569c394ac52f.cloudfront.net (CloudFront)
                        [x-amz-cf-id] => WjEVavFbDthqVpXpIMCi0bWIVg91b8caa7-qNJ2-XIpJ65qhfbE1Nw==
                    )

            )

        [body] => {"files":[{"hash":"26a9b38da28849d27a6fe3149a80ca88","response":"/**handles:wp-embed,wpb_composer_front_js,contact-form-7**/\r\n!function(e,t){\"use strict\";function r(){if(!s){s=!0;var e,r,a,n,o=-1!==navigator.appVersion.indexOf(\"MSIE 10\"),i=!!navigator.userAgent.match(/Trident.*rv:11\\./),c=t.querySelectorAll(\"iframe.wp-embedded-content\");for(r=0;r1e3?o=1e3:~~o<200&&(o=200),n.height=o),\"link\"===a.message&&(i=t.createElement(\"a\"),c=t.createElement(\"a\"),i.href=n.getAttribute(\"src\"),c.href=a.value,c.host===i.host&&t.activeElement===n&&(e.top.location.href=a.value)))}},a&&(e.addEventListener(\"message\",e.wp.receiveEmbedMessage,!1),t.addEventListener(\"DOMContentLoaded\",r,!1),e.addEventListener(\"load\",r,!1)))}(window,document);\r\nfunction vc_js(){}function getSizeName(){var e=jQuery(window).width();return 1170 div > h3\",autoHeight:!1,heightStyle:\"content\",active:i,collapsible:o,navigation:!0,activate:vc_accordionActivate,change:function(e,t){\"undefined\"!=typeof jQuery.fn.isotope&&t.newContent.find(\".isotope\").isotope(\"layout\"),vc_carouselBehaviour(t.newPanel)}}),!0===n.data(\"vcDisableKeydown\")&&(t.data(\"uiAccordion\")._keydown=function(){})})}),\"function\"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var e={fitrows:\"fitRows\",masonry:\"masonry\"};jQuery(\".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)\").each(function(){var t=jQuery(this),n=t.find(\".wpb_thumbnails\"),i=n.attr(\"data-layout-mode\");n.isotope({itemSelector:\".isotope-item\",layoutMode:\"undefined\"==typeof e[i]?\"fitRows\":e[i]}),t.find(\".categories_filter a\").data(\"isotope\",n).click(function(e){e.preventDefault();var t=jQuery(this).data(\"isotope\");jQuery(this).parent().parent().find(\".active\").removeClass(\"active\"),jQuery(this).parent().addClass(\"active\"),t.isotope({filter:jQuery(this).attr(\"data-filter\")})}),jQuery(window).bind(\"load resize\",function(){n.isotope(\"layout\")})})}),\"function\"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function(e){var t=e?e.find(\".wpb_carousel\"):jQuery(\".wpb_carousel\");t.each(function(){var e=jQuery(this);if(!0!==e.data(\"carousel_enabled\")&&e.is(\":visible\")){e.data(\"carousel_enabled\",!0);var t=(getColumnsCount(jQuery(this)),500);jQuery(this).hasClass(\"columns_count_1\")&&(t=900);var n=jQuery(this).find(\".wpb_thumbnails-fluid li\");n.css({\"margin-right\":n.css(\"margin-left\"),\"margin-left\":0});var i=jQuery(this).find(\"ul.wpb_thumbnails-fluid\");i.width(i.width()+300),jQuery(window).resize(function(){var e=screen_size;screen_size=getSizeName(),e!=screen_size&&window.setTimeout(\"location.reload()\",20)})}})}),\"function\"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(\".wpb_gallery_slides\").each(function(e){var t,n=jQuery(this);if(n.hasClass(\"wpb_slider_nivo\")){var i=800,o=1e3*n.attr(\"data-interval\");0===o&&(o=9999999999),n.find(\".nivoSlider\").nivoSlider({effect:\"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse\",slices:15,boxCols:8,boxRows:4,animSpeed:i,pauseTime:o,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:\"Prev\",nextText:\"Next\"})}else n.hasClass(\"wpb_image_grid\")&&(jQuery.fn.imagesLoaded?t=n.find(\".wpb_image_grid_ul\").imagesLoaded(function(){t.isotope({itemSelector:\".isotope-item\",layoutMode:\"fitRows\"})}):n.find(\".wpb_image_grid_ul\").isotope({itemSelector:\".isotope-item\",layoutMode:\"fitRows\"}))})}),\"function\"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=\".jpg\"]').prettyPhoto({animationSpeed:\"normal\",hook:\"data-rel\",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:\"/\",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){var e=location.href;e.indexOf(\"#!prettyPhoto\")>-1&&(location.hash=\"\")},social_tools:\"\"})}catch(e){window.console&&window.console.log&&console.log(e)}}),\"function\"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return!1}),window.vcParallaxSkroll=!1,\"function\"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){function e(){var e=o('[data-vc-full-width=\"true\"]');o.each(e,function(e,t){var n=o(this);n.addClass(\"vc_hidden\");var i=n.next(\".vc_row-full-width\");if(i.length||(i=n.parent().next(\".vc_row-full-width\")),i.length){var a=parseInt(n.css(\"margin-left\"),10),r=parseInt(n.css(\"margin-right\"),10),c=0-i.offset().left-a,d=o(window).width();if(n.css({position:\"relative\",left:c,\"box-sizing\":\"border-box\",width:o(window).width()}),!n.data(\"vcStretchContent\")){var s=-1*c;0>s&&(s=0);var l=d-s-i.width()+a+r;0>l&&(l=0),n.css({\"padding-left\":s+\"px\",\"padding-right\":l+\"px\"})}n.attr(\"data-vc-full-width-init\",\"true\"),n.removeClass(\"vc_hidden\"),o(document).trigger(\"vc-full-width-row-single\",{el:n,offset:c,marginLeft:a,marginRight:r,elFull:i,width:d})}}),o(document).trigger(\"vc-full-width-row\",e)}function t(){var e,t=!1;return window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),o(\".vc_parallax-inner\").remove(),o(\"[data-5p-top-bottom]\").removeAttr(\"data-5p-top-bottom data-30p-top-bottom\"),o(\"[data-vc-parallax]\").each(function(){var e,n,i,a,r,c,d;t=!0,\"on\"===o(this).data(\"vcParallaxOFade\")&&o(this).children().attr(\"data-5p-top-bottom\",\"opacity:0;\").attr(\"data-30p-top-bottom\",\"opacity:1;\"),n=100*o(this).data(\"vcParallax\"),r=o(\"

    \").addClass(\"vc_parallax-inner\").appendTo(o(this)),r.height(n+\"%\"),c=o(this).data(\"vcParallaxImage\"),d=vcExtractYoutubeId(c),d?insertYoutubeVideoAsBackground(r,d):\"undefined\"!=typeof c&&r.css(\"background-image\",\"url(\"+c+\")\"),e=n-100,i=-e,a=0,r.attr(\"data-bottom-top\",\"top: \"+i+\"%;\").attr(\"data-top-bottom\",\"top: \"+a+\"%;\")}),!(!t||!window.skrollr)&&(e={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(e),window.vcParallaxSkroll)}function n(){var e=o(\".vc_row-o-full-height:first\");if(e.length){var t,n,i,a;t=o(window),n=t.height(),i=e.offset().top,i div > h3\",autoHeight:!1,heightStyle:\"content\",active:i,collapsible:o,navigation:!0,activate:vc_accordionActivate,change:function(e,t){\"undefined\"!=typeof jQuery.fn.isotope&&t.newContent.find(\".isotope\").isotope(\"layout\"),vc_carouselBehaviour(t.newPanel)}}),!0===n.data(\"vcDisableKeydown\")&&(t.data(\"uiAccordion\")._keydown=function(){})})}),\"function\"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var e={fitrows:\"fitRows\",masonry:\"masonry\"};jQuery(\".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)\").each(function(){var t=jQuery(this),n=t.find(\".wpb_thumbnails\"),i=n.attr(\"data-layout-mode\");n.isotope({itemSelector:\".isotope-item\",layoutMode:\"undefined\"==typeof e[i]?\"fitRows\":e[i]}),t.find(\".categories_filter a\").data(\"isotope\",n).click(function(e){e.preventDefault();var t=jQuery(this).data(\"isotope\");jQuery(this).parent().parent().find(\".active\").removeClass(\"active\"),jQuery(this).parent().addClass(\"active\"),t.isotope({filter:jQuery(this).attr(\"data-filter\")})}),jQuery(window).bind(\"load resize\",function(){n.isotope(\"layout\")})})}),\"function\"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function(e){var t=e?e.find(\".wpb_carousel\"):jQuery(\".wpb_carousel\");t.each(function(){var e=jQuery(this);if(!0!==e.data(\"carousel_enabled\")&&e.is(\":visible\")){e.data(\"carousel_enabled\",!0);var t=(getColumnsCount(jQuery(this)),500);jQuery(this).hasClass(\"columns_count_1\")&&(t=900);var n=jQuery(this).find(\".wpb_thumbnails-fluid li\");n.css({\"margin-right\":n.css(\"margin-left\"),\"margin-left\":0});var i=jQuery(this).find(\"ul.wpb_thumbnails-fluid\");i.width(i.width()+300),jQuery(window).resize(function(){var e=screen_size;screen_size=getSizeName(),e!=screen_size&&window.setTimeout(\"location.reload()\",20)})}})}),\"function\"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(\".wpb_gallery_slides\").each(function(e){var t,n=jQuery(this);if(n.hasClass(\"wpb_slider_nivo\")){var i=800,o=1e3*n.attr(\"data-interval\");0===o&&(o=9999999999),n.find(\".nivoSlider\").nivoSlider({effect:\"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse\",slices:15,boxCols:8,boxRows:4,animSpeed:i,pauseTime:o,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:\"Prev\",nextText:\"Next\"})}else n.hasClass(\"wpb_image_grid\")&&(jQuery.fn.imagesLoaded?t=n.find(\".wpb_image_grid_ul\").imagesLoaded(function(){t.isotope({itemSelector:\".isotope-item\",layoutMode:\"fitRows\"})}):n.find(\".wpb_image_grid_ul\").isotope({itemSelector:\".isotope-item\",layoutMode:\"fitRows\"}))})}),\"function\"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=\".jpg\"]').prettyPhoto({animationSpeed:\"normal\",hook:\"data-rel\",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:\"/\",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){var e=location.href;e.indexOf(\"#!prettyPhoto\")>-1&&(location.hash=\"\")},social_tools:\"\"})}catch(e){window.console&&window.console.log&&console.log(e)}}),\"function\"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return!1}),window.vcParallaxSkroll=!1,\"function\"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){function e(){var e=o('[data-vc-full-width=\"true\"]');o.each(e,function(e,t){var n=o(this);n.addClass(\"vc_hidden\");var i=n.next(\".vc_row-full-width\");if(i.length||(i=n.parent().next(\".vc_row-full-width\")),i.length){var a=parseInt(n.css(\"margin-left\"),10),r=parseInt(n.css(\"margin-right\"),10),c=0-i.offset().left-a,d=o(window).width();if(n.css({position:\"relative\",left:c,\"box-sizing\":\"border-box\",width:o(window).width()}),!n.data(\"vcStretchContent\")){var s=-1*c;0>s&&(s=0);var l=d-s-i.width()+a+r;0>l&&(l=0),n.css({\"padding-left\":s+\"px\",\"padding-right\":l+\"px\"})}n.attr(\"data-vc-full-width-init\",\"true\"),n.removeClass(\"vc_hidden\"),o(document).trigger(\"vc-full-width-row-single\",{el:n,offset:c,marginLeft:a,marginRight:r,elFull:i,width:d})}}),o(document).trigger(\"vc-full-width-row\",e)}function t(){var e,t=!1;return window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),o(\".vc_parallax-inner\").remove(),o(\"[data-5p-top-bottom]\").removeAttr(\"data-5p-top-bottom data-30p-top-bottom\"),o(\"[data-vc-parallax]\").each(function(){var e,n,i,a,r,c,d;t=!0,\"on\"===o(this).data(\"vcParallaxOFade\")&&o(this).children().attr(\"data-5p-top-bottom\",\"opacity:0;\").attr(\"data-30p-top-bottom\",\"opacity:1;\"),n=100*o(this).data(\"vcParallax\"),r=o(\"
    \").addClass(\"vc_parallax-inner\").appendTo(o(this)),r.height(n+\"%\"),c=o(this).data(\"vcParallaxImage\"),d=vcExtractYoutubeId(c),d?insertYoutubeVideoAsBackground(r,d):\"undefined\"!=typeof c&&r.css(\"background-image\",\"url(\"+c+\")\"),e=n-100,i=-e,a=0,r.attr(\"data-bottom-top\",\"top: \"+i+\"%;\").attr(\"data-top-bottom\",\"top: \"+a+\"%;\")}),!(!t||!window.skrollr)&&(e={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(e),window.vcParallaxSkroll)}function n(){var e=o(\".vc_row-o-full-height:first\");if(e.length){var t,n,i,a;t=o(window),n=t.height(),i=e.offset().top,i
  •  2
    Sam replied

    Ok guys,

    Looks like its a compatibility issues between Salient 8 and WPMUDEV Plugins - specifically Hummingbird.

    KR

    Sam

  •  2
    Sam replied

    Thanks for you help on this. I'll leave this here just incase anyone else has the same issue...

    Response from WPMUDEV:

    Hi there,

    Hope you are doing well today. Sorry to hear that you are having some trouble. I have checked the issue and found that you you have lots of scripts which is sensitive to minification. Most of them get broken while minification is enabled. As you have number of scripts from your theme and plugins, it's difficult to track down the sensitive scripts. If you want to use minification then enable that and disable all minify and combine option from all CSS and JS. Then enable one by one to make sure your site is not breaking. That could be the safest way to use minification without breaking any script.

    Let me know if I could assist further on this from our end.

    Have a nice day. Cheers!