Fraska Portal

Exploring the WebSphere Commerce world

Joomla

Subcategories from this category: Customizations, Extensions

Elaborating Joomla articles from a custom component could lead issues due to the Joomla core code.

For example I'm creating and editing articles from a different component than the Joomla's native one. In particular I have created a JTable extension of Content's table:

  class TableContent extends JTable
{
    var $id = null;
    var $title = null;
    var $alias = null;
    var $title_alias = null;
    var $introtext = null;
    var $fulltext = null;
    var $state = null;
    var $sectionid = null;

Than, in my controller's class method I store the content deriving from FORM's data:

function processContent(){
    	global $option;
    	
    	JTable::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_ttrainings'.DS.'tables');
    	$row =& JTable::getInstance('content', 'Table');

    	$id = JRequest::getVar("id");
    	$title = JRequest::getVar("title");
    	$alias = JRequest::getVar("alias");
    	$introtext = JRequest::getVar("introtext");
    	$user =& JFactory::getUser();
    	$user_id =  $user->get('id');
    	...
    	
    	
    	if (!$row->bind(JRequest::get('post')) || !$row->bind(JRequest::get('get'))) {
    		...
    	}
    	if (!$row->store()) {
    		...
    	}

When the system tries to update an existing content- in other words when the form already contains the content ID editing an existing article- the following exception is thrown:

Fatal error: Call to a member function load() on a non-object in <system path>/plugins/system/jfdatabase/jfdatabase_inherit.php on line 563

To integrate, in single sign-on, Joomla 1.5 and MediaWiki 2.1 I found an interesting plugin for joomla called "MediaWiki login" (or MediaWiki Bridge):

http://www.haroldprins.nl/index.php/mediawiki-bridge

Let's review the actors ...

  • Joomla 1.5 (an existing working instance)
  • MediaWiki 2.1 (a fresh instance)
  • MediaWiki login (joomla plugin)
  • AuthJoomla2 (mediawiki extension)

 

Following the simple guide provided from MediaWiki Bridge and installed the plugin and than the MW extension, however something went wrong.

Most Popular Post

WebSphere Commerce, the SOLR extension index
Administration
Rate this blog entry:
4
WebSphere Commerce, Data Load and SOLR Delta Index
Data Load
Rate this blog entry:
0
WebSphere Commerce, the curious life of a front-end catalog request
Core
Rate this blog entry:
5

Latest Blogs

WebSphere Commerce, CommandLevelAuthorizationCache
Cache
Rate this blog entry:
0
WebSphere Commerce v8, toolkit exception, ClassNotFound db2
Administration
Rate this blog entry:
1
WebSphere Commerce, ATP migration
Store
Rate this blog entry:
0
WebSphere Commerce, the curious life of a front-end catalog request
Core
Rate this blog entry:
5
WebSphere Commerce, Performance analysis of few European stores
Performance
Rate this blog entry:
0