• Resolved lyamzina

    (@lyamzina)


    HELP PLEASE:

    Our page just went down and the error which it shows is:

    Fatal error: Cannot redeclare my_remove_menu_icons() (previously declared in /home/fmurmc/fmu-global.jp/public_html/wp-content/themes/twentyseventeen/functions.php:570) in /home/fmurmc/fmu-global.jp/public_html/wp-content/themes/twentyseventeen/inc/icon-functions.php on line 223

    HELP PLEASE!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I just went to your website, but do not get that error message. Perhaps it was a temporary problem that is now fixed, or did you solve it?

    Basically when an error says “Cannot redeclare”, it means that something was added that is a duplicate function.

    I am curious though about this “my_remove_menu_icons()” function on line 570 of your functions.php file; there is no function like this in the twenty seventeen’s function.php file…..was it something you added?

    UPDATE: I noticed you did another post and there I saw the error. But am I correct in assuming you want to get rid of all svg code and icons from your theme? If so, this might help…

    https://ww.wp.xz.cn/support/topic/disable-inline-svg-icons/

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You will need access to your hosting provider’s control panel. In there look for a tool named “File manager” or similar, which lets you manage the files and folders behind your website.

    Download a fresh copy of the Twenty Seventeen theme. Then in your “File manager” tool find the file that has the problem and upload the fresh /inc/icon-functions.php file (to overwrite it).

    • This reply was modified 8 years, 7 months ago by Andrew Nevins.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal error: Cannot redeclare my_remove_menu_icons()’ is closed to new replies.