Updatedt to latest version fatal error - Uncaught Error: Call to undefined function fa_unicode()

  //
  // Graphic.
  //

  if ( $graphic == 'image' ) {

    $graphic = '<div' . $graphic_container_class_style . '>'
               . '<div' . $graphic_outer_class_style . '>'
                 . '<div' . $graphic_inner_class_style . '>'
                   . '<img class="' . $graphic_shape . '" src="' . $graphic_image . '"' . $graphic_style . '>'
                 . '</div>'
               . '</div>'
             . '</div>';

  } else if ( $graphic == 'numbers' && $child == 'true' ) {

    $graphic = '<div' . $graphic_container_class_style . '>'
               . '<div' . $graphic_outer_class_style . '>'
                 . '<div' . $graphic_inner_class_style . '>'
                   . '<i class="number w-h ' . $graphic_shape . '"' . $graphic_style . '></i>'
                 . '</div>'
               . '</div>'
             . '</div>';

  } else {

$graphic = '<div' . $graphic_container_class_style . '>'
           . '<div' . $graphic_outer_class_style . '>'
             . '<div' . $graphic_inner_class_style . '>'
               . '<i class="x-icon-' . $graphic_icon . ' ' . $graphic_shape . '" data-x-icon="&#x' . fa_unicode( $graphic_icon ) . ';"' . $graphic_style . '></i>'
             . '</div>'
           . '</div>'
         . '</div>';

  }

Not sure what this was added for in the child theme back in the days. Haven’t been active in themeco and PRO for a long time. Do you know what it’s used for? is there a new change to fa_unicode()?

Fatal error : Uncaught Error: Call to undefined function fa_unicode() in /public_html/wp-content/themes/pro-child/functions.php:225 Stack trace:

Maybe you guys can shine some light on what this is and if I just can do some small changes else than review the whole child themes functions.php for old code that is no longer working or unused?

My worries it that it’s used somewhere with legacy code and would cause issues which I can’t see right now. So best would be just to fix the new alternative to fa_unicode()

Seems to be this full code I used back in the days:

Hi Mike,

Thank you for writing in, yes that code is for old Classic Featured Box to change the title heading tag from h4 to h3. If that heading tag is not a concern anymore, you can simply remove that entire custom Feature Box function on your child theme.

However, if you need to keep that custom function, you can find the original and updated function under \pro\cornerstone\includes\shortcodes\feature-box.php, but please keep in mind though that we won’t be able to provide support for any customization. The custom function that Ruenel’s provided on the other thread is only for reference.

Hope it helps,
Cheers!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.