jc21
Forum Replies Created
-
Ahh nevermind me. Our stupidly outdated theme was using jquery 1.6, instead of the minimum 1.7 that is required by your plugin.
Forum: Plugins
In reply to: [Woopra Analytics Plugin] Needs update to support php7Here is our patched version for php7:
https://public.jc21.com/wordpress/wordpress_woopra_php7_compatible-2.7.1.zip
Install it as you would any other plugin.
I’ve digged in to this myself today and I believe the code logic is incorrect for our wordpress multisite setups.
File:
amazon-s3-and-cloudfront.php
Function:get_dynamic_prefix
There is a line that determines how to prefix the multisite dir:
if ( defined( 'MULTISITE' ) ) {
Which is incorrect. I do not define
MULTISITE
in my configuration but WordPress is defining it later inwp-settings.php
as FALSE. The line should be:if ( defined( 'MULTISITE' ) && MULTISITE ) {
And then later in that function, replace:
if ( is_multisite() && ! ( is_main_network() && is_main_site() ) && false === strpos( $prefix, 'sites/' ) ) {
with:
if ( defined( 'MULTISITE' ) && MULTISITE && is_multisite() && ! ( is_main_network() && is_main_site() ) && false === strpos( $prefix, 'sites/' ) ) {
Would be great if this change made it to a new version so I don’t have to hotfix this plugin. Thanks
- This reply was modified 7 years, 11 months ago by jc21.
Forum: Everything else WordPress
In reply to: Comments turned off, but comments coming through!No spam plugins. I thought pingbacks and trackbacks would identify themselves differently from user comments. Perhaps they should.
Nevertheless, shall turn off trackbacks and see what happens.