ksoszka
asked on
Cron Job error in WordPress Php Functions
Hi, while using a Cron Job setup at Go Daddy to run a functions.php file on my self-hosted WordPress site, it does not work and I receive an error message from the Go Daddy system which is below. I cannot figure out what it is trying to tell me, or what I might be doing wrong. Thanks in advance..
Warning: require_once(STYLESHEETPAT H/library/ filters.ph p) [function.require-once]: failed to open stream: No such file or directory in
/home/content/32/9737732/h tml/wp-con tent/theme s/auto-mag ic-content -robot/fun ctions.php on line 3
Fatal error: require_once() [function.require]: Failed opening required 'STYLESHEETPATH/library/fi lters.php'
(include_path='.:/usr/loca l/php5/lib /php') in /home/content/32/9737732/h tml/wp-con tent/theme s/auto-mag ic-content -robot/fun ctions.php on line 3
Warning: require_once(STYLESHEETPAT
/home/content/32/9737732/h
Fatal error: require_once() [function.require]: Failed opening required 'STYLESHEETPATH/library/fi
(include_path='.:/usr/loca
ASKER
Hi, thank you - I went with the full path, and the original errors were replaced by this:
Fatal error: Call to undefined function add_filter() in /home/content/32/9737732/h tml/wp-con tent/theme s/auto-mag ic-content -robot/lib rary/filte rs.php on line 62
Line 62 of the filters.php file that it refers to is:
add_filter('arras_posthead er', 'my_postheader');
I sense that this might cascade if we keep going, so here is some background info in case there is an obvious root to the problem...
I am using a theme (auto-magic-content-robot) which is a child theme of the "Arras" theme. The functions file of the child theme contains programming which is designed to run with wp scheduled events. It worked fine, until I sold the site and moved it from my own Go Daddy hosting to the buyer's Go Daddy hosting. The Cron Job is an attempt to see if I could get it to work again. I have had this happen before when I move one of these sites. Apparently I should do something differently somewhere, either in the moving process or in the code.
I should also add that if I manually run the programming that is set up to use wp scheduled events, it works. Only the ability to make it run automatically is not working.
Fatal error: Call to undefined function add_filter() in /home/content/32/9737732/h
Line 62 of the filters.php file that it refers to is:
add_filter('arras_posthead
I sense that this might cascade if we keep going, so here is some background info in case there is an obvious root to the problem...
I am using a theme (auto-magic-content-robot)
I should also add that if I manually run the programming that is set up to use wp scheduled events, it works. Only the ability to make it run automatically is not working.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you, I will look at the filters.php to see if there is a definition of the function that may be failing.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
/STYLESHEETPATH/library/fi
Cd&