• Resolved Amin

    (@aminima)


    Hi there,
    I made some changes to my wordpress installation, and after that the dashicons of iThemes plugin and some other plugins (not all of them) disappeared!

    the changes are these:
    changed the “wp-content” directory to “content” as a subdomain. so now, files are loading from here: https://content.example.com instead of https://example.com/wp-content

    these are wp-config settings:
    define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/content' );
    define( 'WP_CONTENT_URL', 'https://content.example.com' );

    and this is the htaccess settings (if they could help to understand the issue)

    # expire headers
      ExpiresByType image/gif                 "access plus 1 year"
      ExpiresByType image/png                 "access plus 1 year"
      ExpiresByType image/jpg                 "access plus 1 year"
      ExpiresByType image/jpeg                "access plus 1 year"
      ExpiresByType video/ogg                 "access plus 1 year"
      ExpiresByType audio/ogg                 "access plus 1 year"
      ExpiresByType video/mp4                 "access plus 1 year"
      ExpiresByType video/webm                "access plus 1 year"
    
      ExpiresByType font/truetype             "access plus 1 year"
      ExpiresByType font/opentype             "access plus 1 year"
      ExpiresByType font/woff	          "access plus 1 year"
      ExpiresByType application/x-font-woff   "access plus 1 year"
      ExpiresByType image/svg+xml             "access plus 1 year"
    
      ExpiresByType text/css                  "access plus 1 month"
      ExpiresByType application/javascript    "access plus 1 month"
      ExpiresByType text/javascript           "access plus 1 month"
    
    <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)(\.gz)?$">
    Header unset ETag
    FileETag None
    </FilesMatch>

    This is the image of how the dashicon appear for ithemes and some other plugins:
    https://i.imgur.com/rEXRvdc.png

    What do you think? is that a plugin related issue?
    Thank you in advance

    https://www.ads-software.com/plugins/better-wp-security/

Viewing 5 replies - 1 through 5 (of 5 total)
  • @aminima

    Are you able to access:

    https://content.example.com/plugins/better-wp-security/lib/icon-fonts/icon-fonts.css

    And what happens when you temporarily comment the WP_CONTENT_DIR line in wp-config.php file like this:

    //define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/content' );

    dwinden

    Thread Starter Amin

    (@aminima)

    the URL above returns me the css file correctl:

    @font-face {
    	font-family: 'ithemes-icons';
    	src:url('fonts/ithemes-icons.eot');
    	src:url('fonts/ithemes-icons.eot?#iefix') format('embedded-opentype'),
    		url('fonts/ithemes-icons.woff') format('woff'),
    		url('fonts/ithemes-icons.ttf') format('truetype'),
    		url('fonts/ithemes-icons.svg#ithemes-icons') format('svg');
    	font-weight: normal;
    	font-style: normal;
    }
    
    #toplevel_page_
    ...
    ...

    and when I comment that line, I get this error:

    The theme directory “twentysixteen-child” does not exist.
    ERROR: The themes directory is either empty or doesn’t exist. Please check your installation.

    @aminima

    While in the iTSec plugin Settings page check the <head></head> section using the build-in inspector of your browser.

    It might be the plugin is trying to enqueue the icon-fonts.css file using an incorrect path.

    dwinden

    @aminima

    This topic might be relevant.

    Check your server log(s) for any errors.

    dwinden

    Thread Starter Amin

    (@aminima)

    Thank you dwinden,
    As this problem is not affecting iThems plugin specifically, and no other fonts from other plugins are loaded, and I’m having other problems, I decided to revert back to the default setting and make wp-content back. now everything works as before.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘dashicons gone’ is closed to new replies.