Cron not working with joomla
Joomla 3.7.1 made this work from the command line. But from a c-panel cron job I got the error: 
"cli.php can only be run from command line."

Now this also works from the command line as well as with the c-panel cron job. : Note the back slashes!

wget -O - -t 1 https://www.MYSITE.org/administrator/components/com_civicrm/civicrm/bin/cron.php?key=THEKEY\&amp;name=THEUSER\&amp;pass=THEPASSWORD