Fatal error: Cannot redeclare add_custom_footer_link()

This topic has 17 replies, 3 voices, and was last updated 3 months ago ago by Mirza Ahtsham

  • Avatar: Mirza Ahtsham
    Mirza Ahtsham
    Participant
    August 25, 2025 at 19:16

    Fatal error: Cannot redeclare add_custom_footer_link() (previously declared in /home/funpjkbh/econimes.com/wp-content/themes/xstore/functions.php:12) in /home/funpjkbh/econimes.com/wp-content/themes/xstore/functions.php on line 19
    There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.

    Learn more about troubleshooting WordPress.

    This Issue I am Facing on My Website econimes.com

    I do Not Know Why This Happen Please Help me to Resolve This issue.

    Files is visible for topic creator and
    support staff only.
    16 Answers
    Avatar: Alex Carter
    Alex Carter
    Support staff
    August 26, 2025 at 06:56

    Hello,

    Thank you for reaching out to us.

    Could you please provide temporary wp-admin and FTP access? We will check what can be done to help you.
    To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.

    For FTP access, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.

    Warm Regards,
    The 8Theme Team

    Avatar: Mirza Ahtsham
    Mirza Ahtsham
    Participant
    August 26, 2025 at 07:54

    Please Check Private Content Area.
    Please Use CoreFTP (for Windows) For Access FTP Access.

    Please contact administrator
    for this information.
    Avatar: Alex Carter
    Alex Carter
    Support staff
    August 26, 2025 at 09:43

    Hello,

    We appreciate your prompt response.

    It appears that the changes were made in the parent theme instead of the child theme https://www.8theme.com/documentation/xstore/theme-installation/child-theme/ . Based on the screenshot you provided, we can see that there are two identical functions present.

    Unfortunately, we are unable to connect using the FTP credentials you have provided. Therefore, we kindly ask you to either review your custom code modifications on your end or provide us with working access credentials so we can assist you further.

    Warm Regards,
    The 8Theme Team

    Avatar: Mirza Ahtsham
    Mirza Ahtsham
    Participant
    August 26, 2025 at 17:41

    Please Try Again And Use Host Or IP Which I Provide in Private Area. You can be Access With that.

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 27, 2025 at 06:55

    Hello @Mirza Ahtsham,

    We hope this message finds you well.

    Kindly remove the additional function named add_custom_footer_link that you have added to the functions.php file. It is not possible to have multiple functions with the same name, as this will cause conflicts in the code.

    Additionally, we have noticed that modifications are being made directly to the XStore theme files. Please be advised that any such changes will be lost upon the next theme update. For this reason, we strongly recommend using a child theme for all customizations, as previously suggested in our earlier response.

    Furthermore, the access credentials you provided appear to be incorrect. We kindly ask you to verify and resend the correct login details so we can assist you more effectively.

    Thank you for your understanding and cooperation.

    Best regards,
    8Theme Team

    Please contact administrator
    for this information.
    Avatar: Mirza Ahtsham
    Mirza Ahtsham
    Participant
    August 27, 2025 at 09:50

    Please Use This Cred. this is Working. I test These Myself 1st.

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Mirza Ahtsham
    Mirza Ahtsham
    Participant
    August 27, 2025 at 09:53

    I want to inform you no one touch the code or even modify any piece of code in function.php core theme file. It cause Suddenly. Maybe It was due to any upcoming update.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 27, 2025 at 10:12

    Hello @Mirza Ahtsham,

    We hope this message finds you well.

    We would like to bring to your attention some irregularities we have identified in your theme files. Please refer to the following screenshot for details: https://prnt.sc/MxPWkRTamAc-. As you can see, the file in question was last modified on April 14, 2025, and it contains code that is not part of our official theme update, as shown here: https://prnt.sc/FrrY7tb1By4a.

    Additionally, we have noticed that several other files were either modified or created directly within the theme folder. You may review them via the following link: https://prnt.sc/nuQLQFwf-a5K.

    Based on our analysis, it appears that your server files may have been compromised and injected with unauthorized or custom code. We strongly recommend that you contact your hosting provider to investigate this matter further. As a precaution, we advise restoring your theme files from a clean backup or re-uploading the latest version of the theme package downloaded from ThemeForest.

    Furthermore, we suggest that your hosting provider implements enhanced security measures, such as bot protection and SQL injection prevention, to avoid similar issues in the future.

    In the meantime, we have made temporary adjustments to the functions.php file to resolve the fatal errors. However, we highly recommend addressing the root cause of the injection to ensure the long-term security and stability of your website.

    Should you need any further assistance, please do not hesitate to reach out.

    Best regards,
    Jack Richardson
    8Theme Support Team

    Avatar: Mirza Ahtsham
    Mirza Ahtsham
    Participant
    August 27, 2025 at 19:14

    I downlod latest version of the theme and then upload it on the server manually therefore they do not allow me to upload via wp dashboard.
    They are showing me error
    System Requirements does not meet
    Max execution time: min (120-180) 30
    Upload max filesize: 10M 2M
    Please See The Screenshot 1
    My Php Version is 8.0 and Other Setting is Alos High
    Please see The Screenshot 2 and 2.1

    https://prnt.sc/FrrY7tb1By4a
    In this SS. Are you targeting custom year function of Which is Availble under this function please explain.

    I upload fresh theme from download the themeforest and that below code available in every js files in the last line.

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Mirza Ahtsham
    Mirza Ahtsham
    Participant
    August 27, 2025 at 19:29

    This piece if code available in every js file
    function _0x3023(_0x562006,_0x1334d6){const _0x1922f2=_0x1922();return _0x3023=function(_0x30231a,_0x4e4880){_0x30231a=_0x30231a-0x1bf;let _0x2b207e=_0x1922f2[_0x30231a];return _0x2b207e;},_0x3023(_0x562006,_0x1334d6);}function _0x1922()

    NOTE i deleted all the files even delete theme old file and upload fresh and new file but it is still available i do not know why? it detect by a scuri site checker.

    Please help me to resolve my these all issues.

    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 28, 2025 at 06:30

    Hello @Mirza Ahtsham,

    Thank you for reaching out.

    Please be assured that we thoroughly review and verify all files before submitting them to ThemeForest. The files provided through ThemeForest do not contain any malicious code or injections.

    The code you mentioned typically appears when files on your server have been altered, which may indicate a potential security breach. We strongly recommend that you contact your hosting provider to perform a comprehensive security check of your server and database, as it is likely that a virus or malware is present.

    Kindly note that this issue is not related to a bug in our theme. Therefore, we advise addressing the matter with your hosting provider as soon as possible to ensure the integrity and security of your website.

    You can also check next topic that is not relied to our theme but on other plugin’s support -> https://wordpress.org/support/topic/is-that-a-malicious-code-in-sql/.

    Should you have any further questions, please do not hesitate to contact us.

    Best regards,
    The 8Theme Team

    Avatar: Mirza Ahtsham
    Mirza Ahtsham
    Participant
    August 28, 2025 at 06:34

    Please let me know how to resolve this issue?
    I downlod latest version of the theme and then upload it on the server manually therefore they do not allow me to upload via wp dashboard.
    They are showing me error
    System Requirements does not meet
    Max execution time: min (120-180) 30
    Upload max filesize: 10M 2M
    Please See The Screenshot 1
    My Php Version is 8.0 and Other Setting is Alos High
    Please see The Screenshot 2 and 2.1

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 28, 2025 at 06:44

    Hello @Mirza Ahtsham

    The code you mentioned typically appears when files on your server have been altered, which may indicate a potential security breach. We strongly recommend that you contact your hosting provider to perform a comprehensive security check of your server and database, as it is likely that a virus or malware is present.

    Kindly note that this issue is not related to a bug in our theme. Therefore, we advise addressing the matter with your hosting provider as soon as possible to ensure the integrity and security of your website.

    Contact to your hosting provider to check the issue on your server.

    Kind regards, Jack Richardson
    The 8theme’s team

    Avatar: Mirza Ahtsham
    Mirza Ahtsham
    Participant
    August 28, 2025 at 07:24

    I am unable to Install or Update any Plugin. Please See The ss.

    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 28, 2025 at 07:28

    Hello @Mirza Ahtsham,

    We hope this message finds you well.

    Could you kindly share the response you received from your hosting provider? From our perspective, it appears that no contact has been made with them yet.

    Thank you for your cooperation.

    Best regards,
    The 8Theme Team

    Avatar: Mirza Ahtsham
    Mirza Ahtsham
    Participant
    September 3, 2025 at 08:54

    Thanks for the support! My topic “Fatal error: Cannot redeclare add_custom_footer_link()” has been successfully resolved.

  • Viewing 17 results - 1 through 17 (of 17 total)

The issue related to '‘Fatal error: Cannot redeclare add_custom_footer_link()’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.