Admin Menu Icons Missing for JetPack & Genesis w/ Domain Mapping

Hi WPMdev,

I hope your day is going well :slight_smile:

I have an issue where the admin menu icon for JetPack & the Genesis Framework are NOT displaying, ONLY on subsites with a mapped domain address.

I am using original network addresses for admin/login.

I have used firebug to see that the genesis icon refers to a url that I understand, however the JetPack icon (like amny others in the admin menu) doesn't refer to a url and I'm not clear on how it works :slight_smile:

The issue with the JetPack icon persists when using Twenty Fourteen (& obviously that 'takes care' of the Genesis icon issue)... :slight_smile:

I have used some htaccess code to enforce frontend domain mapping, and at first thought that was the issue... the url in the page source refers to the 'original' network address and unlike other things, was being caught by my rewrite rule... I added an exception for one site and am now able to load the image through the original address in my browser.

RewriteCond %{REQUEST_URI} !/wp-login\.php [NC]
RewriteCond %{REQUEST_URI} !/wp-admin [NC]
RewriteCond %{REQUEST_URI} !genesis-menu\.png [NC]
RewriteCond %{HTTP_HOST} ^wpmsnetwork-secure.tivism.com [NC]
RewriteRule ^(.*)$ https://wpmsnetwork.com/$1 [R=301,L,S=2]

https://wpmsnetwork-secure.tivism.com/wp-content/themes/genesis/lib/admin/images/genesis-menu.png

I am using CloudFlare for the SSL on my mapped domains, so turning CF off is not an option; I have turned all features as far 'off' as possible and added appropriate page rules to further bypass CF cache as much as possible for admin/login on the network.

I am not sure where to look further to explain this behavior... the clearest difference in behavior that I see is that this ONLY happens for subsites with a mapped domain. I have two test subsites with no mapped domains which display BOTH the JetPack & Genesis icons ok, and so does primary.

I have enabled Support Access & can provid creds if needed, any tips welcome :slight_smile:

Kind Regards,
Max

  • Vinod Dalvi

    Hi Max,

    Thanks for posting on the forum.

    I just logged in to your site using support staff access and found except these two menu icons all others are working fine. Then i found these two icons are using custom font as following which may be causing this issue.

    font-family: 'genesis-icon' !important;
    font-family: 'jetpack' !important;

    I think the issue is related with loading custom font files but they are loading fine on the following URLs but not getting applied to that menus.

    https://og-test.tivism.com/wp-content/themes/genesis/lib/css/fonts/genesis-icon.ttf

    https://tivismnet-secure.tivism.com/wp-content/themes/genesis/lib/css/fonts/genesis-icon.ttf

    https://tivism.net/wp-content/themes/genesis/lib/css/fonts/genesis-icon.ttf

    I will troubleshoot it more and update you here about it.

    Thanks,
    Vinod Dalvi

    • wp.network

      Thanks @Vinod Dalvi

      To be clear:

      1) currently, when I visit admin for og-test.tivism.com the icons are displayed
      2) currently, only wpmsnetwork.com has the exception for the genesis .png
      2a) the htaccess for the other mapped domains looks like:

      RewriteCond %{REQUEST_URI} !/wp-login\.php [NC]
      RewriteCond %{REQUEST_URI} !/wp-admin [NC]
      RewriteCond %{HTTP_HOST} ^tivismnet-secure\.tivism\.com [NC]
      RewriteRule ^(.*)$ https://tivism.net/$1 [R=301,L,S=1]

      Let me know if you would like me to change anything :slight_smile:

      ps. my code above got filtered maybe by posting from dashboard? was fixing, time expired...
      is actually:

      RewriteCond %{REQUEST_URI} !/wp-login\.php [NC]
      RewriteCond %{REQUEST_URI} !/wp-admin [NC]
      RewriteCond %{REQUEST_URI} !genesis-menu\.png [NC]
      RewriteCond %{HTTP_HOST} ^wpmsnetwork-secure\.tivism\.com [NC]
      RewriteRule ^(.*)$ https://wpmsnetwork.com/$1 [R=301,L,S=2]

      Many Thanks,
      Max

  • wp.network

    Hi @Vinod Dalvi

    This is to update you that I have just activated Formidable Forms and am seeing the same issue with its icon... this is some quirky behavior :slight_smile:

    The Formidable icon, like the Genesis, refers to an actual uri for an image, and so I have added an exception for this resource to my frontend mapping htaccess ONLY for the wpmsnetwork.com subsite to be sure it wasn't being caused there.

    I also see via firebug that the Formidable icon is also using a custom font, seems to be
    font-family: "s11-fp" !important;

    This icon is displayed correctly for subsites without a mapped domain, ONLY has the issue on subsites with mapped domains.

    Your help is very appreciated, look forward to hearing back :slight_smile:

    Cheers, Max

    **** Update:

    @Vinod Dalvi my apologies for not testing this earlier, after adding the exceptions to my htaccess rules, I assumed that it was not the issue... I have no gone back to re-examine assumptions, and have removed all custom domain mapping htaccess rules for one subsite, this site is now displaying the icons correctly!

    I have had alot of issues writing htaccess code that takes care of the Domain Mapping bug wherein the feature to force frontend mapping is broken (known bug); what I have in place now is the simplest maneuver I could think of.

    I include the main bits of htaccess currently in use below:

    # BEGIN Custom Mapping
    <IfModule mod_rewrite.c>
    RewriteEngine On
    #RewriteCond %{REQUEST_URI} !/wp-login\.php [NC]
    #RewriteCond %{REQUEST_URI} !/wp-admin [NC]
    #RewriteCond %{HTTP_HOST} ^wpmsthemes-secure\.tivism\.com [NC]
    #RewriteRule ^(.*)$ https://wpmsthemes.com/$1 [R=301,L,S=6]
    RewriteCond %{REQUEST_URI} !/wp-login\.php [NC]
    RewriteCond %{REQUEST_URI} !/wp-admin [NC]
    RewriteCond %{HTTP_HOST} ^wpmscloud-secure\.tivism\.com [NC]
    RewriteRule ^(.*)$ https://wpmscloud.com/$1 [R=301,L,S=5]
    RewriteCond %{REQUEST_URI} !/wp-login\.php [NC]
    RewriteCond %{REQUEST_URI} !/wp-admin [NC]
    RewriteCond %{HTTP_HOST} ^wpmshost-secure\.tivism\.com [NC]
    RewriteRule ^(.*)$ https://wpmshost.com/$1 [R=301,L,S=4]
    RewriteCond %{REQUEST_URI} !/wp-login\.php [NC]
    RewriteCond %{REQUEST_URI} !/wp-admin [NC]
    RewriteCond %{HTTP_HOST} ^wpmshosting-secure\.tivism\.com [NC]
    RewriteRule ^(.*)$ https://wpmshosting.com/$1 [R=301,L,S=3]
    RewriteCond %{REQUEST_URI} !/wp-login\.php [NC]
    RewriteCond %{REQUEST_URI} !/wp-admin [NC]
    RewriteCond %{REQUEST_URI} !genesis-menu\.png [NC]
    RewriteCond %{REQUEST_URI} !form_16\.png [NC]
    RewriteCond %{HTTP_HOST} ^wpmsnetwork-secure\.tivism\.com [NC]
    RewriteRule ^(.*)$ https://wpmsnetwork.com/$1 [R=301,L,S=2]
    RewriteCond %{REQUEST_URI} !/wp-login\.php [NC]
    RewriteCond %{REQUEST_URI} !/wp-admin [NC]
    RewriteCond %{HTTP_HOST} ^tivismnet-secure\.tivism\.com [NC]
    RewriteRule ^(.*)$ https://tivism.net/$1 [R=301,L,S=1]
    RewriteCond %{REQUEST_URI} !/wp-login\.php [NC]
    RewriteCond %{REQUEST_URI} !/wp-admin [NC]
    RewriteCond %{HTTP_HOST} ^tivismorg-secure\.tivism\.com [NC]
    RewriteRule ^(.*)$ https://tivism.org/$1 [R=301,L]
    </IfModule>
    
    # END Custom Mapping
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^author/ https://%{HTTP_HOST}/ [R=301,L]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress