Title: Font Awesome causing massive load problems
Last modified: December 2, 2020

---

# Font Awesome causing massive load problems

 *  [jacksoncb](https://wordpress.org/support/users/jacksoncb/)
 * (@jacksoncb)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/font-awesome-causing-massive-load-problems/)
 * Hey there for whatever reason, font awesome is creating massive loads and none
   of it is used on my site.
    [FontAwesome](https://imgur.com/wDxzpm9)
 * 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](https://wordpress.org/support/users/apollo13themes/)
 * (@apollo13themes)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/font-awesome-causing-massive-load-problems/#post-13736043)
 * 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](https://wordpress.org/support/users/jacksoncb/)
 * (@jacksoncb)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/font-awesome-causing-massive-load-problems/#post-13737886)
 * 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](https://wordpress.org/support/users/apollo13themes/)
 * (@apollo13themes)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/font-awesome-causing-massive-load-problems/#post-13755775)
 * 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](https://wordpress.org/support/users/jacksoncb/)
 * (@jacksoncb)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/font-awesome-causing-massive-load-problems/#post-13757007)
 * 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](https://wordpress.org/support/users/apollo13themes/)
 * (@apollo13themes)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/font-awesome-causing-massive-load-problems/#post-13777205)
 * 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/](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.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/rife-free/2.4.24/screenshot.png)
 * Rife Free
 * [Support Threads](https://wordpress.org/support/theme/rife-free/)
 * [Active Topics](https://wordpress.org/support/theme/rife-free/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/rife-free/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/rife-free/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [apollo13themes](https://wordpress.org/support/users/apollo13themes/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/font-awesome-causing-massive-load-problems/#post-13777205)
 * Status: not resolved