• Hey there for whatever reason, font awesome is creating massive loads and none of it is used on my site.
    FontAwesome

    Whenever i try to remove it, in functions.php i am given a fatal error so i assume it is the theme rife that is creating this problem.
    Please help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author apollo13themes

    (@apollo13themes)

    Hello ??

    Please check the PHP error log, and copy here what error are you getting.
    Also, you can add here how yu try to remove it.

    By the way, both icon fonts are used in various places of the theme, like social icons or mobile menu.

    With kind regards.
    Air.

    Thread Starter jacksoncb

    (@jacksoncb)

    Heres the debug log.

    [02-Dec-2020 21:16:24 UTC] PHP Notice: Undefined offset: 543673 in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Products/FBCategories.php on line 108
    [02-Dec-2020 21:16:24 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php on line 673
    [02-Dec-2020 21:16:24 UTC] PHP Notice: Undefined offset: 543673 in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Products/FBCategories.php on line 108
    [02-Dec-2020 21:16:24 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php on line 673
    [02-Dec-2020 21:16:24 UTC] PHP Notice: Undefined offset: 543673 in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Products/FBCategories.php on line 108
    [02-Dec-2020 21:16:24 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php on line 673
    [02-Dec-2020 21:32:10 UTC] PHP Notice: Undefined offset: 543673 in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Products/FBCategories.php on line 108
    [02-Dec-2020 21:32:10 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php on line 673
    [02-Dec-2020 21:32:10 UTC] PHP Notice: Undefined offset: 543673 in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Products/FBCategories.php on line 108
    [02-Dec-2020 21:32:10 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php on line 673
    [02-Dec-2020 21:32:11 UTC] PHP Notice: Undefined offset: 543673 in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Products/FBCategories.php on line 108
    [02-Dec-2020 21:32:11 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php on line 673
    [02-Dec-2020 22:29:15 UTC] PHP Notice: Undefined offset: 543673 in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Products/FBCategories.php on line 108
    [02-Dec-2020 22:29:15 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php on line 673
    [02-Dec-2020 22:29:15 UTC] PHP Notice: Undefined offset: 543673 in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Products/FBCategories.php on line 108
    [02-Dec-2020 22:29:15 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php on line 673
    [02-Dec-2020 22:29:15 UTC] PHP Notice: Undefined offset: 543673 in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Products/FBCategories.php on line 108
    [02-Dec-2020 22:29:15 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/lumae439/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php on line 673
    [02-Dec-2020 22:43:17 UTC] PHP Fatal error: Cannot redeclare tn_dequeue_font_awesome_style() (previously declared in /home/lumae439/public_html/wp-includes/functions.php:7645) in /home/lumae439/public_html/wp-content/themes/rife-free/functions.php on line 14
    [02-Dec-2020 22:43:22 UTC] PHP Fatal error: Cannot redeclare tn_dequeue_font_awesome_style() (previously declared in /home/lumae439/public_html/wp-includes/functions.php:7645) in /home/lumae439/public_html/wp-content/themes/rife-free/functions.php on line 12
    [02-Dec-2020 22:43:24 UTC] PHP Fatal error: Cannot redeclare tn_dequeue_font_awesome_style() (previously declared in /home/lumae439/public_html/wp-includes/functions.php:7645) in /home/lumae439/public_html/wp-content/themes/rife-free/functions.php on line 12

    This is added into rife-free folder and the file is functions.php with the following code added below

    add_action( ‘wp_print_styles’, ‘tn_dequeue_font_awesome_style’ );
    function tn_dequeue_font_awesome_style() {
    wp_dequeue_style( ‘fontawesome’ );
    wp_deregister_style( ‘fontawesome’ );
    }

    Theme Author apollo13themes

    (@apollo13themes)

    Hey ??

    From the error log it looks like you have declared this function of your 2 times, and it creates fatal error:

    [02-Dec-2020 22:43:24 UTC] PHP Fatal error: Cannot redeclare tn_dequeue_font_awesome_style() (previously declared in /home/lumae439/public_html/wp-includes/functions.php:7645) in /home/lumae439/public_html/wp-content/themes/rife-free/functions.php on line 12

    Check in the file ‘public_html/wp-includes/functions.php’ is there a copy of this function, and delete it if there is.

    With kind regards.
    Air.

    Thread Starter jacksoncb

    (@jacksoncb)

    There is no ‘tn_dequeue_font_awesome_style()’ within ‘public_html/wp-includes/functions.php’ or ‘public_html/wp-content/themes/rife-free/functions.php’

    This is why it seems like a such a problem

    Theme Author apollo13themes

    (@apollo13themes)

    Hey ??

    The PHP error report is always true, so I am almost sure the definition of this function is added there if the error says so.

    Look for tn_dequeue_font_awesome_style instead of tn_dequeue_font_awesome_style()

    If you need help looking into this, please consider getting Rife Pro with a support plan and come to our support forum where we work with our clients on such changes/inspections https://rifetheme.com/help/docs/getting-started/support-forum/

    With kind regards.
    Air.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Font Awesome causing massive load problems’ is closed to new replies.