Viewing 15 replies - 1 through 15 (of 17 total)
  • Hi Philippe,

    I had a look at the page and the problem is that the stylesheet is not being loaded. It returns a 404 page – you can see it here.

    Are there any rules in your .htaccess file which could be blocking the file from loading ?

    On another note (nothing to do with the above issue): your Google analytics code is *above* the html <head> section, making every page in your website return invalid html. This could cause all sorts of issues. You may want to fix that.

    Smile,
    Juliette

    Hi Philippe,

    Just wondering whether you figured out what is causing the 404 and if there’s anything I can do to help you get it sorted.

    Hoping to hear from you.

    Smile,
    Juliette

    Thread Starter PhilippeBonneau

    (@philippebonneau)

    Hi Juliette. I had no time to work on that recently. I will give you a feedback when I will.

    Philippe

    Hi Philippe,

    Had a chance to look at this yet ?

    Smile,
    Juliette

    Thread Starter PhilippeBonneau

    (@philippebonneau)

    Not yet. I will give you a feedback when I will.

    Thread Starter PhilippeBonneau

    (@philippebonneau)

    I am not familiar with .htaccess file editing. Here is the content of the file.

    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
        <IfModule mod_setenvif.c>
            BrowserMatch ^Mozilla/4 gzip-only-text/html
            BrowserMatch ^Mozilla/4\.0[678] no-gzip
            BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
            BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
        </IfModule>
        <IfModule mod_headers.c>
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
        <IfModule mod_filter.c>
            AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
        </IfModule>
    </IfModule>
    <FilesMatch "\.(css|js|htc|CSS|JS|HTC)$">
        FileETag None
        <IfModule mod_headers.c>
             Header set X-Powered-By "W3 Total Cache/0.9.2.4"
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$">
        FileETag None
        <IfModule mod_headers.c>
             Header set X-Powered-By "W3 Total Cache/0.9.2.4"
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|WAV|WMA|WRI|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
        FileETag None
        <IfModule mod_headers.c>
             Header set X-Powered-By "W3 Total Cache/0.9.2.4"
        </IfModule>
    </FilesMatch>
    # END W3TC Browser Cache
    # BEGIN W3TC Page Cache core
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteRule ^(.*\/)?w3tc_rewrite_test$ $1?w3tc_rewrite_test=1 [L]
        RewriteCond %{HTTP:Accept-Encoding} gzip
        RewriteRule .* - [E=W3TC_ENC:_gzip]
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteCond %{QUERY_STRING} =""
        RewriteCond %{HTTP_HOST} =fppc.qc.ca
        RewriteCond %{REQUEST_URI} \/$ [OR]
        RewriteCond %{REQUEST_URI} (sitemap(_index)?\.xml(\.gz)?|[a-z0-9_\-]+-sitemap([0-9]+)?\.xml(\.gz)?) [NC]
        RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register|mail)\.php|\/feed\/|wp-.*\.php|index\.php) [NC,OR]
        RewriteCond %{REQUEST_URI} (wp\-comments\-popup\.php|wp\-links\-opml\.php|wp\-locations\.php) [NC]
        RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|wordpress_\[a\-f0\-9\]\+|wordpress_logged_in) [NC]
        RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache/0\.9\.2\.4) [NC]
        RewriteCond "%{DOCUMENT_ROOT}/wordpress/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" -f
        RewriteRule .* "/wordpress/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" [L]
    </IfModule>
    # END W3TC Page Cache core
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Ok, looks like W3 Total Cache might be the problem, though I cannot confirm this without testing.

    Could you try replacing the following line:

    RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register|mail)\.php|\/feed\/|wp-.*\.php|index\.php) [NC,OR]

    with this one:

    RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register|mail)\.php|\/feed\/|wp-.*\.php|index\.php|\/wp-content\/plugins\/mimetypes-link-icons\/css\/style\.php) [NC,OR]

    And test whether the stylesheet loads ?

    Hope this helps!

    Thread Starter PhilippeBonneau

    (@philippebonneau)

    Nope. Line is changed but icons do not show.
    Here is the changed .htaccess file code.

    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
        <IfModule mod_setenvif.c>
            BrowserMatch ^Mozilla/4 gzip-only-text/html
            BrowserMatch ^Mozilla/4\.0[678] no-gzip
            BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
            BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
        </IfModule>
        <IfModule mod_headers.c>
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
        <IfModule mod_filter.c>
            AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
        </IfModule>
    </IfModule>
    <FilesMatch "\.(css|js|htc|CSS|JS|HTC)$">
        FileETag None
        <IfModule mod_headers.c>
             Header set X-Powered-By "W3 Total Cache/0.9.2.4"
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$">
        FileETag None
        <IfModule mod_headers.c>
             Header set X-Powered-By "W3 Total Cache/0.9.2.4"
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|WAV|WMA|WRI|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
        FileETag None
        <IfModule mod_headers.c>
             Header set X-Powered-By "W3 Total Cache/0.9.2.4"
        </IfModule>
    </FilesMatch>
    # END W3TC Browser Cache
    # BEGIN W3TC Page Cache core
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteRule ^(.*\/)?w3tc_rewrite_test$ $1?w3tc_rewrite_test=1 [L]
        RewriteCond %{HTTP:Accept-Encoding} gzip
        RewriteRule .* - [E=W3TC_ENC:_gzip]
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteCond %{QUERY_STRING} =""
        RewriteCond %{HTTP_HOST} =fppc.qc.ca
        RewriteCond %{REQUEST_URI} \/$ [OR]
        RewriteCond %{REQUEST_URI} (sitemap(_index)?\.xml(\.gz)?|[a-z0-9_\-]+-sitemap([0-9]+)?\.xml(\.gz)?) [NC]
        RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register|mail)\.php|\/feed\/|wp-.*\.php|index\.php|\/wp-content\/plugins\/mimetypes-link-icons\/css\/style\.php) [NC,OR]
        RewriteCond %{REQUEST_URI} (wp\-comments\-popup\.php|wp\-links\-opml\.php|wp\-locations\.php) [NC]
        RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|wordpress_\[a\-f0\-9\]\+|wordpress_logged_in) [NC]
        RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache/0\.9\.2\.4) [NC]
        RewriteCond "%{DOCUMENT_ROOT}/wordpress/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" -f
        RewriteRule .* "/wordpress/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" [L]
    </IfModule>
    # END W3TC Page Cache core
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Ok, thanks for testing. It is a bit difficult for me to figure out the solution without being able to test things myself.

    Could you try (temporarily) turning W3 Total Cache off (including removing all W3TC .htaccess rules) to see if MTLI works then ?
    If so, then at least we’d know the cause of the issue for sure.

    Thread Starter PhilippeBonneau

    (@philippebonneau)

    OK. Now my .htaccess file looks like that:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    I also try to deactivate all extensions but MimeTypes Link Icons ad the result is the same… No icons.

    Hi Philippe,

    Thank you for checking this so thoroughly. Unfortunately this means that neither the .htaccess file nor W3TC is the problem.

    Two more possibilities come to mind:

    • Could you check via FTP that the file does actually exist ?
      Look for : /webroot/wp-content/plugins/mimetypes-link-icons/css/style.php
      Something may have accidentally gone wrong in the installation. If the file doesn’t exist, please download the plugin .zip file to your local hard disk, unzip and upload over the original files via FTP. That way, you will not lose any existing settings.
    • Are you using an a-typical set-up by chance ? i.e. is the wp-content or plugins directory in a non-default location ?
      This normally shouldn’t give a problem as the plugin does try to work with those kind of setups, but worth checking just in case. If you do have such an a-typical setup, could you give me more information about it so I can figure out how to work around it ?

    If neither of the above help and the css file still returns a 404 page, you will need to check with your webhosting company whether they are blocking the file on a higher level (server directives).

    Hope this helps.

    Smile,
    Juliette

    Thread Starter PhilippeBonneau

    (@philippebonneau)

    Hi Juliette. Thanks for your help.

    The file is there:
    ftp://ftp.philippebonneau.net//www/wp-content/plugins/mimetypes-link-icons/css/style.php

    I can also open the file from the server with BBedit. Here is the path ftp://philipp:@ftp.philippebonneau.net//public_html/wp-content/plugins/mimetypes-link-icons/css/style.php

    For your info, the link https://philippebonneau.net/wp-content/plugins/mimetypes-link-icons/screenshot-5.png works.

    I have a default installation.

    Hi Philippe,

    Thanks again for checking.

    If neither of the above help and the css file still returns a 404 page, you will need to check with your webhosting company whether they are blocking the file on a higher level (server directives).

    Let’s see what your webhost has to say then. I hope they will be able to help you further.

    Smile,
    Juliette

    Plugin Author eagerterrier

    (@eagerterrier)

    This is weird

    1. CSS files appear https://philippebonneau.net/wp-content/plugins/mimetypes-link-icons/css/admin-style.css

    2. https://philippebonneau.net/wp-content/plugins/mimetypes-link-icons/css/index.php redirects to https://philippebonneau.net/wp-content/plugins/mimetypes-link-icons/css/

    3. https://philippebonneau.net/wp-content/plugins/mimetypes-link-icons/css/style.php gives a 404.

    @philippebonneau – My initial thought is that another plugin is blocking the style.php functionality, but can you run a few tests to double check?

    1. Permissions on style.php – too high / too low? Some hosts will complain if the permissions are set to 777 and issue a 5xx or 4xx response. If the permissions don’t give www read permissions, we could also have a 404 on some hosts.

    2. Have you tried turning WP debug on temporarily? Usually 404 codes aren’t real 404s (ie the file is there, as you can attest, but are some other error) – https://codex.www.ads-software.com/Debugging_in_WordPress

    3. How many plugins do you have running? Can you turn all plugins off temporarily, or provide us a list of plugins you are using so we can replicate your problem?

    Thread Starter PhilippeBonneau

    (@philippebonneau)

    I saw yesterday that the icons were there https://philippebonneau.net/maitrise/

    I dont know when or why they suddenly appear but the problem seem resolved. Thank’s for your help Juliette and eagerterrier.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘No icons’ is closed to new replies.