Hey Admin I think i solved your random issue noted in the loader.php
// Register all Models because of unsolved random JLoader issue.
// Cook offers 3 months subscribtion for the person who solve this issue.
Perhaps your constants defined in the file.php get markers function the component site and component admin constants are incorrect
JPATH_ADMIN_COMPONENTNAME is one directory lower
Although I thought I did read somwhere that they could be defined as above (unsure)
// The correct directory constants - as defined at
http://docs.joomla.org/Constants
'COM_ADMIN' => JPATH_COMPONENT_ADMINISTRATOR
COM_SITE' => JPATH_COMPONENT_SITE
// The correct directory example
CkJLoader::discover('ComponentnameClass', JPATH_COMPONENT_ADMINISTRATOR .DS.'classes');
/administrator/components/com_mycomname/classes/file/file.php
The current
public static function getMarkers()
{
.......................
................
.................
'COM_ADMIN' => JPATH_ADMIN_COMPONENTNAME,
'ADMIN' => JPATH_ADMINISTRATOR,
'COM_SITE' => JPATH_SITE_COMPONENTNAME,
'IMAGES' => JPATH_SITE .DS. $config->get('image_path', 'images') .DS,
'MEDIAS' => JPATH_SITE .DS. $configMedias->get('file_path', 'images') .DS,
'ROOT' => JPATH_SITE
);
}
the correct definitions are listed below
public static function getMarkers()
{
.......................
................
.................
'COM_ADMIN' => JPATH_COMPONENT_ADMINISTRATOR, // <=== HERE AS IS (NOT THE COMPONENT NAME)
'ADMIN' => JPATH_ADMINISTRATOR,
'COM_SITE' => JPATH_COMPONENT_SITE, // <=== HERE AS IS (NOT THE COMPONENT NAME)
'IMAGES' => JPATH_SITE .DS. $config->get('image_path', 'images') .DS,
'MEDIAS' => JPATH_SITE .DS. $configMedias->get('file_path', 'images') .DS,
'ROOT' => JPATH_SITE
);
}
// And i believe that the solution is replace __DIR__ with
JPATH_COMPONENT_ADMINISTRATOR .DS.'heplers'
// Handle cross compatibilities
require_once(JPATH_COMPONENT_ADMINISTRATOR .DS.'heplers' .DS. 'mvc.php');
// Load the component Dependencies
require_once(JPATH_COMPONENT_ADMINISTRATOR .DS.'helpers' .DS. 'helper.php');
I Could be wrong ??