J3.x

Difference between revisions of "CLI Applications Broken"

From Joomla! Documentation

(Created page with "CLI and some other applications that use JTable break in Joomla 3.1.3 and later. Adding this code to your application should fix the issue. <source lang="php"> jimport('cms....")
 
Line 1: Line 1:
CLI and some other applications that use JTable break in Joomla 3.1.3 and later.
+
Because of changes made to JTable,  CLI and some other applications that use JTable break in Joomla 3.1.3 and later.
  
 
Adding this code to your application should fix the issue.
 
Adding this code to your application should fix the issue.

Revision as of 09:18, 2 August 2013

Because of changes made to JTable, CLI and some other applications that use JTable break in Joomla 3.1.3 and later.

Adding this code to your application should fix the issue.

jimport('cms.helper.tags');
jimport('cms.table.corecontent');
// Categories is in legacy for CMS 3 so we have to check there.
JLoader::registerPrefix('J', JPATH_PLATFORM . '/legacy');
	JLoader::Register('J', JPATH_PLATFORM . '/cms');