-
AuthorPosts
-
December 10, 2016 at 10:09 pm #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.
December 11, 2016 at 10:15 am #722806Hey 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,
VinayDecember 12, 2016 at 6:28 am #722944I 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’;
December 12, 2016 at 10:53 pm #723428Here’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.
December 14, 2016 at 5:42 am #724097Hi,
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,
IsmaelDecember 19, 2016 at 11:16 pm #726323Hello again Ismael,
Do you think it is safe to simply remove the function is_checkout altogether?
December 19, 2016 at 11:24 pm #726327Hey!
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,
YigitDecember 19, 2016 at 11:29 pm #726330Actually, 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.
December 19, 2016 at 11:33 pm #726335Hey!
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,
YigitDecember 19, 2016 at 11:39 pm #726338I 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.
December 19, 2016 at 11:47 pm #726342Hi!
Login credentials are not working for me. Can you please check them once again?
Also, we actually need FTP logins to edit the filesRegards,
YigitDecember 19, 2016 at 11:51 pm #726347Well, let’s start by just logging in and looking at the files. Why do you need ftp?
December 21, 2016 at 8:44 pm #727278Have you tried the fresh credentials?
December 22, 2016 at 6:24 am #727394Hi,
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,
IsmaelApril 20, 2017 at 5:02 pm #780661Hello,
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.
April 25, 2017 at 12:38 pm #782819Hi 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.
April 25, 2017 at 2:54 pm #782901I 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.
April 26, 2017 at 6:48 am #783258Hi,
Ok, thanks for the feedback. We’ll keep the thread open for you.
Best regards,
RikardMay 3, 2017 at 3:43 pm #787207This 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.
May 4, 2017 at 12:46 am #787494Hi,
Glad to hear that :) Let us know if you need more assistance regarding this topic.
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.