• Resolved spark0118

    (@spark0118)


    Hi,

    First of all thanks for the great free plugin, I appreciate all the hard work you maintain.

    With the last update I’ve noticed an issue in the Network area when viewing the Sites page. There for each site is a link to the Dashboard and Visit (to visit the site).

    Those links are missing the site path.

    For example:
    https://domain.com/sitepath/wp-admin/
    is linking to
    https://domain.com/wp-admin/

    This is the same for all listed sites. I have not debugged this further than:
    1. Disabling the plugin, the links are correct.
    2. Rolling back the update, the links are correct.

    In addition I have (with the latest version installed) flushed the cache at both the Plugin and Server level and the issue remains.

    Any insight to this issue is greatly appreciated.

    Thanks for your time,
    Daniel

    UPDATE:
    While at first I thought this was only effecting that specific area, I am also noticing site paths incorrect on the front end too. The following code is used on the frontend to get a site url and the result is incorrect with the latest version of the plugin enabled.

    
    function user_meta_primary_url($atts,$content=null){
    	
    	$user_id = get_current_user_id();
    	$primary_id = get_user_meta($user_id, 'primary_blog', true);
    	$primary_url = get_site_url($primary_id, '', 'https');
    	
    	return esc_html($primary_url);
    }
    
    • This topic was modified 4 years, 2 months ago by spark0118. Reason: spelling
    • This topic was modified 4 years, 2 months ago by spark0118. Reason: additonal information
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Using the object-cache.php drop-in from v2.0.13 all the links are correct after flushing the cache?

    Can you var_dump($user_id, $primary_id, $primary_url) this to see what the corrupt values are?

    Thread Starter spark0118

    (@spark0118)

    The get_site_url() function is returning the wrong value. Both get_current_user_id()and get_user_meta() are returning correct values.

    Also I have confirmed as you mention above using the object-cache.php drop-in from v2.0.13 the links are correct.

    Thanks!

    Hi, noticed the same thing on a subdomain multisite (using mapped domains also)… all links in the Sites list point to primary domain, not to subdomains or mapped domains. Also there are conflicts with plugins like Multisite enhancements where for example cross-network plugin usage info is completely wrong when the Redis drop-in is active.

    Flushing does not help, only deactivating.

    I’ve tested drop-in version v2.0.13 and the links are indeed correct then, but only once because the drop-in is automatically updated… apparently :/

    Plugin Author Till Krüss

    (@tillkruess)

    We added key caching, that’s probably causing it. I will revert this and tag a new version Monday.

    Plugin Author Till Krüss

    (@tillkruess)

    This version of the object-cache.php drop-in contains the fix and can safely be deployed:

    https://github.com/rhubarbgroup/redis-cache/blob/develop/includes/object-cache.php

    Thread Starter spark0118

    (@spark0118)

    Thanks for the follow up.

    Hi,

    I have reverted the plugin for now to fix the issue in the interim and will await the official release.

    We were getting the same site being replicated in the following manner:

    My Sites
    Network Admin
    Site Name
    Site Name (same as above)
    Site Name (same as 1st site)

    All links to dashboard and sub navigation items were the same.

    Thanks

    Plugin Author Till Krüss

    (@tillkruess)

    Thanks! I’ll tag a new release today.

    Thanks for your attention here Till!

    Was affecting our large multisite network too. Looks like the switch_to_blog function wasn’t switching successfully which left every last one of our “My Sites” show as the current site, as well as showing a row for ALL blogs in the multisite, not just within the current parent site.

    Unreal that you provide this level of attention and care for free! I’ll be sure to poke our CTO into considering the pro level plan.

    Plugin Author Till Krüss

    (@tillkruess)

    My pleasure @manyhatsdigital, did v2.0.15 resolve all your issues?

    It resolved THIS issue. There’s no code on earth powerful enough to resolve all MY issues ??

    Perfect!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Multisite Sites Links Missing Site Path’ is closed to new replies.