Success

User tests: Successful: Unsuccessful:

avatar fastslack
fastslack
16 May 2013

Im trying to delete categories from CLI using JTableCategory class and JTable::getInstance('Corecontent'); return nothing. Addint the path solve the problem

avatar fastslack fastslack - open - 16 May 2013
avatar mbabker
mbabker - comment - 16 May 2013

JTableCorecontent is autoloadable. Is your CLI script running the code at /libraries/cms.php (or something similar) to properly load in the /libraries/cms/ files?

avatar fastslack
fastslack - comment - 16 May 2013

You can look the bootstrap.php of the script here: https://github.com/fastslack/jUpgradePro/blob/master/cli/bootstrap.php

Should i to add jimport('cms.table.corecontent'); ?

avatar mbabker
mbabker - comment - 16 May 2013

Your bootstrap is bringing in the Platform files (libraries/joomla and libraries/legacy), but not the CMS (libraries/cms) stuff. I just sent you a PR to handle that.

avatar fastslack
fastslack - comment - 17 May 2013

Thanks Michael! Closing..

avatar fastslack fastslack - close - 17 May 2013

Add a Comment

Login with GitHub to post a comment