Can you share any specific error logs/debug messages related to this? Will help track down the issue.
Sicne it seems to be related to a theme update, perhaps contact the theme developers as well to check for a conflict.
Thread Starter
jpadua
(@joelpadua)
PHP Fatal error: Uncaught Error: Call to undefined function
Thread Starter
jpadua
(@joelpadua)
The thing is that it works if i do manual run
Hey @joelpadua,
It sounds like the import is running a specific function during cron imports that no longer exists, most likely because it was saved in your theme’s functions.php file (which will be overwritten during updates unless you use a child themes’s functions.php file). Do you have a more complete error log entry that tells you what the function name is?
Also, are you using a Code Snippets plugin to store some of your code that’s related to the import? If so, be sure to use the “Run anywhere” option (not just run in admin) for the snippet so that it’s available during cron imports.
Thread Starter
jpadua
(@joelpadua)
What do you mean by Run Anywhere option?
Hi @joelpadua,
Code snippets plugins typically have an option that lets you choose where the code runs. For example, in this plugin – https://ww.wp.xz.cn/plugins/code-snippets/ – you’ll find the options here: https://d.pr/i/UhUJvr.
Thread Starter
jpadua
(@joelpadua)
The code i use is from wpallimport https://www.wpallimport.com/documentation/code-snippets/#reference-taxonomy-terms-by-custom-id
And i use it in the wpallimport functions. When run in admin dashboard its ok, but using cron it gives error.
Hey @joelpadua,
The code i use is from wpallimport https://www.wpallimport.com/documentation/code-snippets/#reference-taxonomy-terms-by-custom-id
And i use it in the wpallimport functions. When run in admin dashboard its ok, but using cron it gives error.
Thanks for clarifying. I wasn’t able to replicate that, so we’ll need you to replicate the issue on a sandbox site at http://www.wpallimport.com/debug/, then open a support request at http://www.wpallimport.com/support/ with the sandbox site URL and a brief description of the issue (include a link to this thread for reference).