How to execute CLI script in joomla 3

256 views
Skip to first unread message

Adam Rifat

unread,
Oct 24, 2013, 9:12:22 AM10/24/13
to joomla-de...@googlegroups.com
I'm trying to run some of the cli scripts in the /cli folder but for some reason the execute() method of JApplicationCli isn't firing.

It gets as far as getInstance and then seems to die. This happens via the command line or via a browser.

Am I missing something?

Thanks.

Anibal

unread,
Oct 25, 2013, 8:17:15 AM10/25/13
to joomla-de...@googlegroups.com
Hi,

CLi scripts are not meant to be run from the browser.

If the JApp is dying when you manually execute it, PHP environment may be misconfigured (it has a different php.ini than web setup).

Regards,
Anibal

Adam Rifat

unread,
Oct 25, 2013, 8:29:37 AM10/25/13
to joomla-de...@googlegroups.com

Same thing happens when I run it from the dos prompt. Dev env is windows 7 :-(

Added php exe to my PATH but it seems like it halts at the execute step.

--
You received this message because you are subscribed to a topic in the Google Groups "Joomla! General Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/joomla-dev-general/56ISDQivcto/unsubscribe.
To unsubscribe from this group and all of its topics, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/groups/opt_out.

Anibal

unread,
Oct 25, 2013, 8:37:31 AM10/25/13
to joomla-de...@googlegroups.com
Simplest solution, linux ;-)

I'm clean and sober of Windows since 5 years ago.

Regards,
Anibal

Omar Ramos

unread,
Oct 25, 2013, 11:09:14 AM10/25/13
to Joomla! General Development
Hi Adam,

You may very well be missing something...this example isn't using the latest version of the framework, but it may be helpful for you:

-Omar


--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages