Schedule plugin eMail don#t work

For a test I create a php-cron test file:

PHP:
<?php
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();
$db =&JFactory::getDBO();
$db->setQuery("UPDATE `ect_kontostand` SET `kontostand` = kontostand + 1");
$db->query();

I run it manually and als cron-job many time. But there is no change in the database

My settings:

cron.PNG


What's the matter?
 
Hmm, seems to work for me.

Can you try just putting:

exit;

... as the first line of your script? See if you just get a blank page when you hit the "Run" button.

-- hugh
 
OK, in which case the code is executing.

So next place to look is see if the query errored out.

Try:

PHP:
JError::raiseError(500, "Err? " . $db->getErrorMsg());

... as the last line. Oh, and obviously take the exit out now.

-- hugh
 
OK, but no actual error from MySQL.

Is the ect_kontostand table on the default J! site database connection?

-- hugh
 
Hallo Hugh,

it works now, the value in the table increses.

Could you please still check out the schedule eMail-plugin?
 
Oh, I see, the php-plugin works only i I start it manually in the administration, if I take it as cron it dosn't work.
 
Ok, I think that should now be fixed in github.

Thanks for reporting this, it was a bug which prevented the plugins from running via the front end system plugin, where they would run from the backend with the 'Run' button.

-- hugh
 
Hallo Hugh,

thank you. Yes it seems to work, but I make a test with this data, see Subject:

cron_email1.PNG

I get the eMail, but the subject is this:

cron_email.PNG


In the database-table the value of the field "ect_unterrubriken___name" is "Restaurant".

Thank you!
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top