J2.5 talk

Developing a MVC Component/Developing a Basic Component

From Joomla! Documentation

Revision as of 14:46, 3 May 2013 by Tom Hutchison (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Notice: Undefined property: JAdministrator::$JComponentTitle

I received the following error message:

Notice: Undefined property: JAdministrator :: $ JComponentTitle in xxxxxxxxxxxx\ administrator\modules\mod_title\ mod_title.php on line 13

I'm running Joomla 2.5.7 in local development server with Apache 2.2.22, PHP 5.4.0, MySQL 5.5 on Windows Vista Home Premium (32 bit)

It possible that this error message appears me because my site is not in the Web, or you need to correct the code?

>> No, this is a behaviour present in Jommla since 2.5.7. The notice will vanish if you explicitely define the component title. Place this command inside the display() function, which is a part of the HelloWorldViewHelloWorlds class in view.html.php file (\admin\views\helloworlds folder in this example, and \administrator\components\com_helloworld\views\helloworlds\view.html.php after installation of the component):


However, the fact that the notice is displayed when the title is not explicitelly defined may be regarded as a minor mistake. To correct it you may place this temporary manual patch inside the /administrator/modules/mod_title/mod_title.php file:

 if (isset(JFactory::getApplication()->JComponentTitle)){
  $title = JFactory::getApplication()->JComponentTitle;
  $title = '';

You can read more here: [1]

There is a bug tracker created for this issue so it will be probably corrected in the next version of Joomla 2.5 If so, feel free to delete my notice.

Component name in manifestfile has to be conform

In Joomla 1.6 the component name specified in the manifest file has to follow the pattern 'com_componentname'. So here it should be


It will matter at least in the menu manager, where I discovered this problem.

Archive is created for version 1.6 instead of 2.5

In the section "Packaging an installation zip file", archive file offered as an example (located here: contains an XML file which has a line:

<extension type="component" version="1.6.0" method="upgrade">

instead of

<extension type="component" version="2.5.0" method="upgrade">

which should be fixed, I guess.

Broken links to zip downloads

Example zips reside here: This site is suspended, please prolong it's hosting or upload archives to another site