Hey guys, I was running a cron job when I receive an email from cron daemon that says this: <br /><b>Fatal error</b>: require() [<a href='function.require'>function.require</a>]: Failed opening required '/home/valandil/public_html/emailmarketer/admin/functions/api/send.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/valandil/public_html/emailmarketer/admin/functions/api/jobs_send.php</b> on line <b>15</b><br /> Anyone know what's wrong? The cron is for sending emails. I'm still trying it out so I only send it to me. One person.
Open the file /home/valandil/public_html/emailmarketer/admin/functions/api/jobs_send.php Look at line 15 There is probably a require statement which points to /home/valandil/public_html/emailmarketer/admin/functions/api/send.php Now, figure out why cron/php cannot open send.php from jobs_send.php. Some ideas: wrong paths, wrong permissions, ... Also check others logs, like /var/log/messages, cron log
Line 15 says this: require_once(dirname(__FILE__) . '/jobs.php'); I have no idea what's wrong. Is it a wrong path?
check jobs.php is there and in the right place. You might need to find out what dirname(_FILE_) points to to do that.
since it says it's failing trying to call: /home/valandil/public_html/emailmarketer/admin/functions/api/send.php make sure that file actually exists - AND that it's permissions are set correctly. A good possiblity is that it's got improper 'ownership', in which case I'd chmod the file to 774, but chown it's group to whatever group your *nix flavor uses to run cron jobs. (leaving the owner alone so you can still control it normally web-side)