Tedd2011
Forum Replies Created
-
Forum: Plugins
In reply to: [Postie] Automatic posting not working (manual working)And with php, you could just redirect the stdout and stderr to a log with something like:
php [URL] >> mylog 2>&1I have been playing with this and found the following error message that might be interesting:
PHP Warning: require_once(/etc/wordpress/wp-settings.php): failed to open stream: No such file or directory in /etc/wordpress/wp-config.php on line 90
PHP Fatal error: require_once(): Failed opening required ‘/etc/wordpress/wp-settings.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /etc/wordpress/wp-config.php on line 90
Forum: Plugins
In reply to: [Postie] Automatic posting not working (manual working)Splaestro,
Thank you very much for replying.
1) I have dropped the -O switch and redirected wget’s outup to a file
*/10 * * * * /usr/bin/wget /tmp/cronlog https://www.sociart.org/wp-content/plugins/postie/get_mail.php >/tmp/cronglog 2>&1
In the file, I can see that my cron job is trying to reach the url https://www.domain.org/wp-content/plugins/postie/get_mail.php but gets an internal server error 500
2) There is no cron log file in /var/log/cron but I was able to find in /var/log/syslog something interesting that makes me think that my cron job is running:
May 24 06:50:01 domainname CRON[31994]: (root) CMD (/usr/bin/wget -O /dev/null https://www.domain.org/wp-content/plugins/postie/get_mail.php >/dev/null 2>&1)
May 24 06:50:01 domainname CRON[31995]: (root) CMD (/usr/share/php /usr/share/wordpress/wp-content/plugins/postie/get_mail.php)I have activated postie’s own logging and I am expecting the debug file to appear any minute now.
The wget log output gives me the same as the 1) ( internal server error 500 when trying to reach my server) and the php log gives me the following :
Could not open input file: https://www.mydomain.org/wp-content/plugins/postie/get_mail.php
3) Yes I realize that ?? but I’m getting a little desperate therefore I’m trying everything I can.
So I guess the problem is that the php file is unreachable ? But then why does it work when clicking the run button in the dashboard ? More questions do I have. And now i’m talking like Yoda, keeps getting better & better.