Criss Cross icon font page not displaying

Home Forums Criss Cross Skin Criss Cross icon font page not displaying

This topic contains 8 replies, has 2 voices, and was last updated by  keithwjones 9 years, 6 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #337

    keithwjones
    Participant

    I am working on a new site but Criss Cross icon font page not displaying in the Dashboard. The icons do display on the site when you add the code.

    I have a couple of test sites and the page displays on both of those.

    Keith

    #342

    Thomas
    Keymaster

    Hmmm, i’ve never seen/heard this problem before.

    My best guess is that the problem lies within a difference between your test sites & your new site.

    Different servers? Different plugins (try deactivating)?

    Was this with a fresh WP install?

    #362

    keithwjones
    Participant

    Complete fresh install. Only plugin is Types – deactivated still same. Happens in all browsers. It is on a different server from test sites.

    Apart from that all appears to be working.

    Permissions seem ok for folders and files.

    Keith

    #364

    Thomas
    Keymaster

    That’s so weird. Do you know what version of PHP the sever is running?

    #371

    keithwjones
    Participant

    About Thesis
    ===========================
    Thesis Version: 2.1.9
    Current Skin Name: ※ CrissCross
    Current Skin Version: 1.0.1
    Current Skin Author: Thomas Soler

    Thesis Filesystem Check
    ===========================
    wp-content/thesis: YES
    wp-content/thesis/skins: YES
    wp-content/thesis/boxes: YES
    wp-content/thesis/packages: YES
    wp-content/thesis/master.php: YES
    Skin CSS Writable: YES

    About WordPress
    ===========================
    WordPress Version: 4.0
    Filesystem Method: direct
    Using Multisite: NO
    Installed plugins: Akismet, Types – Complete Solution for Custom Fields and Types

    About PHP
    ===========================
    Version: 5.3.10
    cURL: YES
    Max Upload (according to WP): 8 MB
    Memory Limit: 40M

    About Server/Database
    ===========================
    Site URL: http://www.musicmakersacademy.co.uk
    Server Software: Apache/2.2.3 (CentOS)
    Options Collation: utf8_general_ci
    MySQL Version: 5.5.37
    PHP Handler: apache2handler

    #372

    Thomas
    Keymaster

    Ok, I have an idea of what you can try. If you are able to view the Criss Cross icon font page but no content displays, the steps below will hopefully solve your problem.

    1) Go into the box.php file and search for the code below:

    public function my_admin() {
            echo wp_remote_fopen( THESIS_USER_SKIN_URL . "/fonts/exothesis-icons/icons-reference.html");
    }

    2) Replace the code from above with the code below:

    public function my_admin() {
            function file_get_contents_curl($url) {
            $ch = curl_init();
     
            curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
            curl_setopt($ch, CURLOPT_HEADER, 0);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
            curl_setopt($ch, CURLOPT_URL, $url);
            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); 
     
            $data = curl_exec($ch);
            curl_close($ch);
     
            return $data;
            }
     echo file_get_contents_curl( THESIS_USER_SKIN_URL . "/fonts/exothesis-icons/icons-reference.html");
     }

    3) If the code from Step 2 does not work, try replacing it with the code below:

    public function my_admin() {
            echo file_get_contents( THESIS_USER_SKIN_URL . "/fonts/exothesis-icons/icons-reference.html");
    }

    Since the server configuration supports cURL, I am hoping that Step 2 solves your problem, even though wp_remote_fopen is supposed to revert to cURL if fopen doesn’t retrieve the content. Otherwise, file_get_contents may be a possible solution but not as good as the other two.

    This is also assuming that wp_remote_fopen is actually the cause of your problem.

    Hope this information helps. Crossing my fingers!

    #373

    keithwjones
    Participant

    Tried all of those several times but still not displaying.

    #374

    keithwjones
    Participant

    I have carried out more test. I have CC on 2 test sites which is ok with different hostings.

    I have another site using Pearsonified but on same hosting as the one I am having problems with, so installed CC on that one and I got same result icon contents not displaying.

    About Thesis
    ===========================
    Thesis Version: 2.1.9
    Current Skin Name: ※ CrissCross
    Current Skin Version: 1.0.1
    Current Skin Author: Thomas Soler

    Thesis Filesystem Check
    ===========================
    wp-content/thesis: YES
    wp-content/thesis/skins: YES
    wp-content/thesis/boxes: YES
    wp-content/thesis/packages: YES
    wp-content/thesis/master.php: YES
    Skin CSS Writable: YES

    About WordPress
    ===========================
    WordPress Version: 4.0
    Filesystem Method: direct
    Using Multisite: NO
    Installed plugins: Akismet, BackupBuddy, Wp Backup

    About PHP
    ===========================
    Version: 5.3.9
    cURL: YES
    Max Upload (according to WP): 8 MB
    Memory Limit: 40M

    About Server/Database
    ===========================
    Site URL: http://www.kwjassociates.co.uk
    Server Software: Apache/2.2.3 (CentOS)
    Options Collation: utf8_general_ci
    MySQL Version: 5.0.95
    PHP Handler: apache2handler

    #380

    keithwjones
    Participant

    Tom

    I have the answer as to why the page does not display:

    After a few more enquiries I started to think it was a server issue and that fopen was not working. The icons do work on the web pages when code added.

    Reply from Easyspace Hosting:

    Thanks for your query about fopen.

    The reason it won’t work is we do not allow it on our shared services for security reasons, if you really need to use it then you would need to have a V server with us.

    Keith

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.