Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #991435

    Hi,

    I am having an issue with icons not showing up on my website.

    Any idea on why this is happening?

    URL: http://sydneylocalpainting.com/
    Screenshot of missing icons: https://screenshots.firefox.com/dmdhWFGEgemoIIOi/www.sydneylocalpainting.com how it looks on local: https://screenshots.firefox.com/aAgJEGTTDkJ0cZRW/localhost
    Error when trying to add font: http://prntscr.com/kcmt79
    File trying to upload: http://www.sydneylocalpainting.com/wp-content/uploads/2018/07/my-icons-collection5-2.zip

    It is working on my local server but not on my server.

    Thank you

    Best,
    Kosta

    #991466

    Hey,

    I edited one of your icon box element and chose a spray can icon and updated your page. It shows up fine on my end. Please edit your page and choose icon for each icon box element – https://kriesi.at/documentation/enfold/icon-box/ :)

    Best regards,
    Yigit

    #991475

    Hi,

    Regarding the icons please note that I am trying to import a custom icon list as per previous question – the .zip file for the new icon list is located at the URL below:

    http://www.sydneylocalpainting.com/wp-content/uploads/2018/07/my-icons-collection5-2.zip

    When I try to upload it – it doesn’t work. What I want to be able to do is import the new icons and use them.

    Also I am getting the following error:

    Fatal error: Uncaught Error: Call to undefined function apply_filters_deprecated() in /home/kostaku/public_html/wp-content/themes/enfold_new/framework/php/class-framework-widgets.php:2234 Stack trace: #0 /home/kostaku/public_html/wp-includes/widgets.php(591): avia_instagram_widget->__construct() #1 /home/kostaku/public_html/wp-includes/widgets.php(720): WP_Widget_Factory->register(‘avia_instagram_…’) #2 /home/kostaku/public_html/wp-content/themes/enfold_new/functions.php(646): register_widget(‘avia_instagram_…’) #3 /home/kostaku/public_html/wp-content/themes/enfold_new/functions.php(650): avia_register_avia_widgets() #4 /home/kostaku/public_html/wp-settings.php(329): include(‘/home/kostaku/p…’) #5 /home/kostaku/public_html/wp-config.php(114): require_once(‘/home/kostaku/p…’) #6 /home/kostaku/public_html/wp-load.php(37): require_once(‘/home/kostaku/p…’) #7 /home/kostaku/public_html/wp-admin/admin.php(31): require_once(‘/home/kostaku/p…’) #8 /home/kostaku/public_html/wp-admin/update-core.php(10): require_once(‘/ in /home/kostaku/public_html/wp-content/themes/enfold_new/framework/php/class-framework-widgets.php on line 2234

    This is happening when I try to update my WordPress version.

    Any idea on how to fix this?

    Thanks!

    #991480

    Hi,

    Could you please make sure you are using PHP 5.6 or higher? We would recommend PHP7.

    Best regards,
    Yigit

    #992194

    Hi Yigit,

    I have updated to the latest PHP version and am still getting this error. Perhaps there is some option in the cPanel I can change?

    Any input would be much appreciated.

    Thanks

    #993105

    Any input on this? I have a suspicion this is a server error – I am on GoDaddy – is there any options i can check in the .ini file or something along those line?

    Thanks

    #993212

    Hi,

    Where did you get the icon file? Please note that you can only upload icon fonts from fontello and flaticon. Did you get that collection from those sites?

    Best regards,
    Ismael

    #993480

    Hi Ismael,

    Yes I did – I just tried to download an icon pack now and upload it. You can test for yourself by trying to upload a .zip file from Flaticon (which is what I tested with).

    Is there anything else I can do?

    Thanks

    #993818

    Hi,

    I would like to test it, but I get the following error when I try to access the site.

    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
    

    Did you transfer the site?

    Best regards,
    Ismael

    #995258

    Hi,

    The site is at bwpainting.com.au now.

    Can you please check now?

    Thanks

    #995342

    Hi,

    Thanks for the info.

    Can you enable PHP ZipArchive Extension? This is needed to import the zip files. Please ask your hosting provider if you need help with it.

    Best regards,
    Ismael

    #996925

    Hi Ismael,
    Thanks for your help – but I see that ZipArchive seems to all ready be installed
    http://prntscr.com/ki9gdx
    By this forum it seems Archive_Zip is the same as ZipArchive.
    https://au.godaddy.com/community/Managing-Web-Hosting/ZipArchive-need-to-be-enable/td-p/7942
    Is there anything else I can try?
    Thanks!
    P.S. Maybe I can manually move over the icon files it refers to – I just need to know where to look and how to set it up. Thanks!

    #997406

    Hi,

    Yes, you can manually activate a custom icon. Follow these steps:

    1.) In the wp-content > uploads folder, create a directory and name it “avia_fonts”.

    2.) Create a custom folder for the font files inside the new directory and then name it whatever you want. We’ll name it “new” for example.

    3.) Inside the “new” folder, extract the font files (.eot, .svg, .woff, .ttf) and the config.json file from the fontello zip file. The name of the files should be the same as the font folder.

    4.) Once the font and the config files were extracted, create a charmap.php file.

    5.) Inside the charmap.php file, add the char code of the icon fonts. Example:

    <?php $chars = array();
    $chars['new']['ue800'] = 'ue800';
    $chars['new']['ue801'] = 'ue801';
    $chars['new']['ue802'] = 'ue802';
    $chars['new']['ue813'] = 'ue813';
    $chars['new']['uf0e0'] = 'uf0e0';
    $chars['new']['uf1e9'] = 'uf1e9';
    

    We have 6 custom icon fonts above. Make sure that there’s a character code for each custom fonts in the config.json file, and the array key should be the same as the folder name “new”.

    6.) After that, add this code in the functions.php file to register the new icon fonts in the database.

    add_action('wp_head', function() {
        $font = get_option('avia_builder_fonts');
    
        $current_user = wp_get_current_user();
        $upload_dir   = wp_upload_dir();
    
        if ( isset( $current_user->user_login ) && ! empty( $upload_dir['basedir'] ) ) {
            if( !array_key_exists('new', $font) ) {
                $font['new'] =  array (
                    'include' => 'avia_fonts/new',
                    'folder' => 'avia_fonts/new',
                    'config' => 'charmap.php',
                    'origin_folder' => $upload_dir['baseurl'],
                );
    
                update_option('avia_builder_fonts', $font);
            }
        }   
    });
    

    7.) Refresh the dashboard once and then remove the code from the functions.php file.

    8.) Done.

    Best regards,
    Ismael

    #997459

    Hi,

    Thank you for this guide. However I have tried to do this and it has not worked for me. I have added the code in the functions.php file as follows:

    add_action('wp_head', function() {
        $font = get_option('avia_builder_fonts');
    
        $current_user = wp_get_current_user();
        $upload_dir   = wp_upload_dir();
    
        if ( isset( $current_user->user_login ) && ! empty( $upload_dir['basedir'] ) ) {
            if( !array_key_exists('flaticon', $font) ) {
                $font['new'] =  array (
                    'include' => 'avia_fonts/flaticon',
                    'folder' => 'avia_fonts/flaticon',
                    'config' => 'charmap.php',
                    'origin_folder' => $upload_dir['baseurl'],
                );
    
                update_option('avia_builder_fonts', $font);
            }
        }   
    });
    
    add_action('wp_head', function() {
        $font = get_option('avia_builder_fonts');
    
        $current_user = wp_get_current_user();
        $upload_dir   = wp_upload_dir();
    
        if ( isset( $current_user->user_login ) && ! empty( $upload_dir['basedir'] ) ) {
            if( !array_key_exists('_light', $font) ) {
                $font['new'] =  array (
                    'include' => '_light/flaticon',
                    'folder' => '_light/flaticon',
                    'config' => 'charmap.php',
                    'origin_folder' => $upload_dir['baseurl'],
                );
    
                update_option('avia_builder_fonts', $font);
            }
        }   
    });

    However the icons are still not showing up – is there anything else I can do?

    Here is a screencast of me troubleshooting this issue:
    https://screencast.com/t/lBoMGAs78oi

    Thanks!

    #997460

    Never mind – I’ve fixed the issue :). I just had to activate it in the “Select PHP Version” page in the cPanel (even though I installed it in PEAR Packages section in cPanel).

    #997556

    Hi HeadStudiosWeb,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.