Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #722742

    I have started seeing an error when I try to click to pages in my navigation that are blog categories. I don’t understand what the error message means. Can you help me? This is the error:

    Fatal error: Call to undefined function is_checkout() in /home/solconne/public_html/wp-content/themes/enfold-child/inc/theme/functions.php on line 14

    I see this when I click on “projects” or “news” in the main navigation. Both are post categories and used to work fine. I also see the error when I click on links that go to a specific post in one of those categories.

    #722806

    Hey Dandelion222,

    A plugin conflict may be one of the reason for this issue.
    To find which plugin is causing the conflict please follow these steps:

    1. Go to your plugins page > Deactivate all active Plugins
    2. Update WordPress and Enfold to latest version if you have not.
    3. Make sure all the plugins are updated.
    4. If the problem does not persist when plugins are turned off, activate one plugin at a time and refresh until you find the plugin in conflict.

    We await the results of your plugin compatibility test.

    Thanks for your cooperation :)

    Best regards,
    Vinay

    #722944

    I updated everything and deactivated all my plug-ins and the problem persists. I looked in Appearance > editor at the file referenced in the error message. At least I think it might be the right file. This is what was in the file called functions.php in the child theme files:

    <?php

    /*
    * Add your own functions here. You can also copy some of the theme functions into this file.
    * WordPress will use those functions instead of the original functions then.
    */

    require_once get_stylesheet_directory( ) . ‘/inc/init.php’;

    #723428

    Here’s a clue. I had recently deactivated WooCommerce. (We switched to JotForms). So I tried simply reactivating that plugin even though we aren’t using it for anything. That fixed the issue. But ideally I’d like it to work no matter what so I can not just deactivate but remove WooCommerce.

    #724097

    Hi,

    Edit the functions.php file in the child theme then look for the is_checkout function. It is a function from WooCommerce so it will stop working if you deactivate the plugin.

    Best regards,
    Ismael

    #726323

    Hello again Ismael,

    Do you think it is safe to simply remove the function is_checkout altogether?

    #726327

    Hey!

    Can you please try changing “is_checkout” into “if_is_checkout” and check if that helps? If it does not, please create a temporary admin login and FTP logins here privately so we can look into it.

    Regards,
    Yigit

    #726330

    Actually, see my entry from December 12th above in this thread. That code that I copied and pasted is the entirety of the Enfold child theme functions.php file. There is no is_checkout function to remove or edit.

    #726335

    Hey!

    Please make sure that you are checking the correct file – /inc/theme/functions.php
    Again, if you do not mind posting FTP logins here privately, we can locate and fix it :)

    Best regards,
    Yigit

    #726338

    I have added you as a temp user. I think it would be best if you had a look – to at least be sure we are talking about the same file.

    #726342

    Hi!

    Login credentials are not working for me. Can you please check them once again?
    Also, we actually need FTP logins to edit the files

    Regards,
    Yigit

    #726347

    Well, let’s start by just logging in and looking at the files. Why do you need ftp?

    #727278

    Have you tried the fresh credentials?

    #727394

    Hi,

    There is a init.php file in the child theme folder and it’s calling a lot of other files. What is that for?

    Best regards,
    Ismael

    #780661

    Hello,

    Sorry to have had to step away from this for so long. The holidays came and this project went on hold for a while. To answer the most recent question – I have no idea what the init.php file is for. I think the developer I was working with created it and I cannot reach him anymore.

    #782819

    Hi Dandelion222,

    Do you still need help with this issue or you had it solved?

    Best regards,
    Victoria

    • This reply was modified 7 years, 8 months ago by Victoria.
    #782901

    I do not have it solved yet. I have found the init.php file and I am going to try commenting out parts of it – hopefully all of it – to help assess if it can be removed. I will report here what I learn.

    #783258

    Hi,

    Ok, thanks for the feedback. We’ll keep the thread open for you.

    Best regards,
    Rikard

    #787207

    This now appears to be resolved. The files that were creating errors for each other were left from a previous theme and not needed so have been deleted and everything is fine.

    #787494

    Hi,

    Glad to hear that :) Let us know if you need more assistance regarding this topic.

    Best regards,
    Nikko

Viewing 20 posts - 1 through 20 (of 20 total)
  • You must be logged in to reply to this topic.