Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #645183

    So, to fix my website, I have to use this code snippet.

    function modify_jquery() {
    if (!is_admin()) {
    	wp_deregister_script('jquery');
    	wp_register_script('jquery', 'https://code.jquery.com/jquery-1.11.3.min.js');
    	wp_enqueue_script('jquery');
    }
    }
    add_action('init', 'modify_jquery');

    Removing it breaks my site. Is there any way I can search for which plugin is causing it? I can’t stuff around with plugins while the site is live. Was wondering if I could look for calls or something from the plugin.

    #645209

    Hey haydenkirk,

    There is no way to search for calls in each plugin. To find which plugin is causing the conflict please remove your line of code temporarily and follow these steps:

    1. Go to your plugins page > Deactivate all active Plugins
    2. Make sure all the plugins are updated.
    3. If the problem does not persist when plugins are turned off, activate one plugin at a time and refresh until you find the plugin in conflict.

    Best regards,
    Jordan

    #645214

    Yep – so I disabled all the plugins and the issue remains… at a bit of a loss… i’ve put some login details for you.

    • This reply was modified 7 years, 10 months ago by haydenkirk.
    #645218

    Just worked out it is googlepagespeed… guessing there is an option here which is not compatible?

            SSLEngine on
            SSLCertificateFile /etc/apache2/ssl/www.domain.nz.crt
            SSLCertificateKeyFile  /etc/apache2/ssl/www.domain.nz.key
            SSLCertificateChainFile /etc/apache2/ssl/gd_bundle-g2-g1.crt
    
            Header always set Strict-Transport-Security "max-age=7776000"
    
            ExpiresActive on
            ExpiresDefault "access plus 1 week"
            ExpiresByType image/jpg "access plus 1 week"
            ExpiresByType image/jpeg "access plus 1 week"
            ExpiresByType image/gif "access plus 1 week"
            ExpiresByType image/png "access plus 1 week"
    
            ModPagespeed off
    
            ModPagespeedSslCertDirectory /etc/apache2/ssl
            ModPagespeedSslCertFile /etc/apache2/ssl/www.domain.nz.crt
            ModPagespeedMapOriginDomain "http://www.domain.nz" "https://www.domain.nz"
            ModPagespeedDisableRewriteOnNoTransform off
            ModPagespeedFetchHttps enable
    
            ModPagespeedLoadFromFile https://www.domain.nz /var/www/domain.nz/public_html
    
            ModPagespeedLoadFromFileRuleMatch disallow .*$
            ModPagespeedLoadFromFileRuleMatch allow \.css$
            ModPagespeedLoadFromFileRuleMatch allow \.js$
            ModPagespeedLoadFromFileRuleMatch allow \.gif$
            ModPagespeedLoadFromFileRuleMatch allow \.png$
            ModPagespeedLoadFromFileRuleMatch allow \.jpg$
    
            ModPagespeedStatistics on
            ModPagespeedStatisticsLogging on
            ModPagespeedLogDir /var/log/pagespeed
    
            <Location /pagespeed_admin>
              Allow from localhost
              Allow from xxxxx
              SetHandler pagespeed_admin
    
    #645234

    Found the issue.

    rewriting the javascript and putting it at the bottom of the page with pagespeed was causing the error.

    #645975

    Hi,

    Great, glad you got it working and thanks for sharing. Please let us know if you should need any more help on the topic.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.