Req - Php code

Turan

Regular Member
Joined
Feb 6, 2018
Messages
229
Reaction score
23
I received such an error in Wordpress.
Fatal error: Uncaught Error: Call to undefined function antreas_****data_fontawesome() in /home/u8837748/roy******.com.tr/wp-content/themes/antreas/core/classes/class-antreas-menu-edit-walker.php:194 Stack trace: #0 /home/u8837748/roy******.com.tr/wp-includes/class-wp-walker.php(144): Antreas_Menu_Edit_Walker->start_el('', Object(WP_Post), 0, Object(stdClass)) #1 /home/u8837748/roy******.com.tr/wp-includes/class-wp-walker.php(244): Walker->display_element(Object(WP_Post), Array, 0, 0, Array, '') #2 /home/u8837748/roy******.com.tr/wp-includes/nav-menu-template.php(583): Walker->walk(Array, 0, Object(stdClass)) #3 /home/u8837748/roy******.com.tr/wp-admin/includes/nav-menu.php(1076): walk_nav_menu_tree(Array, 0, Object(stdClass)) #4 /home/u8837748/roy******.com.tr/wp-admin/nav-menus.php(512): wp_get_nav_menu_to_edit(25) #5 {main} thrown in /home/u8837748/roy******.com.tr/wp-content/themes/antreas/core/classes/class-antreas-menu-edit-walker.php on line 194

<?php echo antreas_form_select( 'menu-item-icon[' . $item_id . ']', $item->icon, array_merge( array( '0' => ' ' ), antreas_****data_fontawesome() ), array( 'class' => 'fontawesome widefat' ) ); ?>

What should I do? Could you help?
 
The PHP code doesn't know where to find the antreas_metadata_fontawesome() function.

Some possible reasons might include:

1) It simply doesn't exist; it's been misspelled.
2) It exists in another file but hasn't been imported into the current file.
3) It exists inside of another class or object that isn't being referenced.

Hard to say what's really going on though. Having access to the class-antreas-menu-edit-walker.php source code would help.
 
The PHP code doesn't know where to find the antreas_metadata_fontawesome() function.

Some possible reasons might include:

1) It simply doesn't exist; it's been misspelled.
2) It exists in another file but hasn't been imported into the current file.
3) It exists inside of another class or object that isn't being referenced.

Hard to say what's really going on though. Having access to the class-antreas-menu-edit-walker.php source code would help.
Thank you. It got better when I deleted the codes.
 
Back
Top