[SOLVED] How debug PHP scheduled task?

Two options ...

1) Run it by hand on the backend, using the "Run" button, and do the usual "var_dump() or print_r() then exit" method of debugging.

2) Learn how to drive something like Eclipse, and use xdebug. Not for the feint of heart, so I'd suggest 1.

I would login and take a look, but you don't seem to have provided a login for us in My Sites.

-- hugh
 
If you get nothing with a manual run and
var_dum($yourvariable);exit;
it's probably a syntax error in your code, so it doesn't run at all.

Set Joomla error reporting to max and debug line by line, e.g. put all your code into comment,
add first line
echo 'this is my php plugin';exit;
to see if it running at all etc.
 
Added:
Hi, troester.
I didn't reload page, so I didn't see your post, but I tried what you suggested me.

--------------------


I just tried.

PHP:
$query = "SELECT Valore FROM fabrik_parametri WHERE id=5";
var_dump($query);
exit;


1.png

Nothing is showed by var_dump.

I added a user Superuser for you and ftp information in MySite, so you can "take a look" (thank you).

Franco
 

Attachments

  • 1.png
    1.png
    45.6 KB · Views: 243
WOOOW, now it works.

I am sorry; I became learning JavaScript and PHP using Fabrik.
I thought I had not to use <?php yourcode ?>, as other cases using Fabrik.

Thanks, troester.

I hope that hugh says again
You are forgiven. :)

-- hugh
:) :) :)


Franco
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top