-
AuthorPosts
-
June 9, 2016 at 3:03 am #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.
June 9, 2016 at 5:06 am #645209Hey 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,
JordanJune 9, 2016 at 5:17 am #645214Yep – 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 8 years, 5 months ago by haydenkirk.
June 9, 2016 at 5:24 am #645218Just 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
June 9, 2016 at 6:18 am #645234Found the issue.
rewriting the javascript and putting it at the bottom of the page with pagespeed was causing the error.
June 10, 2016 at 4:39 am #645975 -
AuthorPosts
- You must be logged in to reply to this topic.