My Subscriptions

No active or expired subscriptions. View Available Subscriptions

Advanced Search

Home arrow Forum arrow JCal Client 1.6.xarrow 1.6.x General Discussionarrow Fatal Error when running
Pages: [1]
Print
Author Topic: Fatal Error when running  (Read 813 times)
nketola
Newbie
*
Posts: 1


View Profile
« on: November 13, 2007, 12:13:54 PM »

Hello-

I have just installed JCal Client 1.6 and while it seems to be working, I am getting an error when I click on a date from the min cal. It seems to be going to a page, but on the top, gets the following error:

Undefined class name 'jfactory' in /home/content/n/k/e/nketola/html/glmdemo/components/com_jcalpro/include/functions.inc.php on line 1620

I have searched the forums and cannot find anything. I apologize if I have missed it.

Thank you in advance for any help.
Logged
steenmf
Newbie
*
Posts: 11


View Profile
« Reply #1 on: November 23, 2007, 03:35:40 PM »

Hi.
I´m having the same issue here. I´ve just installed JcalClient on a Joomla 1.0.12 site, and when I go to the calendar i get this error message:
Fatal error: Class 'JFactory' not found in /home/web26249/domains/chirurgia.se/public_html/components/com_jcalpro/include/functions.inc.php on line 1620

Would be grateful if someone could solve this one for me.
Logged
V-man
Administrator
Hero Member
*****
Posts: 1573


Ignorance is curable, stupid is forever.


View Profile
« Reply #2 on: November 24, 2007, 01:36:05 AM »

Looks like JFactory error. Can u quote the line in the error message here?
Logged

V-man
Forum Admin
Support questions via PM will be ignored. Please use the forum for all support-related enquiries.
steenmf
Newbie
*
Posts: 11


View Profile
« Reply #3 on: November 24, 2007, 06:29:47 AM »

Here´s the error message:
Quote
Fatal error: Class 'JFactory' not found in /home/web26249/domains/chirurgia.se/public_html/components/com_jcalpro/include/functions.inc.php on line 1620
Logged
V-man
Administrator
Hero Member
*****
Posts: 1573


Ignorance is curable, stupid is forever.


View Profile
« Reply #4 on: November 24, 2007, 10:09:30 AM »

I meant could you put the code from jfactory, functions.inc.php, line 1620.
Logged

V-man
Forum Admin
Support questions via PM will be ignored. Please use the forum for all support-related enquiries.
steenmf
Newbie
*
Posts: 11


View Profile
« Reply #5 on: November 24, 2007, 06:46:05 PM »

Sorry  Embarrassed

Here´s line 1620 in include/functions.inc.php:
Code:
$cur_user =& JFactory::getUser();

- and here are lines 1619 to 1623:
Code:
    if ( defined('_JEXEC') ) {
        $cur_user =& JFactory::getUser();
    } else {
        $cur_user = $mainframe->getUser();
    }
Logged
bhornedo
Beta Testers
Newbie
*
Posts: 1


View Profile Email
« Reply #6 on: November 25, 2007, 03:22:02 AM »

If you are running 1.0.13, _JEXEC shouldn't be defined, and the the JFactory code should not get executed. Is there another component or modification on your system that is setting _JEXEC? The JFactory code is for Joomla 1.5 installations. Your system ( 1.0.x ) should be skipping that and executing the "else" code: $cur_user - $mainframe->getUser();

Logged
steenmf
Newbie
*
Posts: 11


View Profile
« Reply #7 on: November 25, 2007, 01:44:18 PM »

As I´m using Joomla 1.0.12 and not 1.5 I commented out these lines:
Code:
if ( defined('_JEXEC') ) {
        $cur_user =& JFactory::getUser();
    } else {
- and after that the problem seems to be solved.

Am I doing something that I shouldn´t be doing?
Logged
ByDomino
Newbie
*
Posts: 5


View Profile Email
« Reply #8 on: February 02, 2008, 12:01:49 AM »

I suddenly had the same issue.. BUT I realized it related to a mambot that must be making _JEXEC Defined.
XAJAX System Mambot For Joomla

looking at their code i see

if (defined( '_VALID_MOS' ) OR defined( '_JEXEC' )){
   /* ok we are in Joomla 1.0.x or Joomla 1.5+ */
   if (!defined('_VALID_MOS'))   {
      /* We are in Joomla 1.5 */
      define('_VALID_MOS', '1');
      define('_PLUGIN_DIR_NAME','plugins');
      define('_BF_PLATFORM','JOOMLA1.5');
   } else if (!defined('_JEXEC')){
      /* we are in Joomla 1.0 */
      define('_JEXEC', '1');
      define('_PLUGIN_DIR_NAME','mambots');
      define('_BF_PLATFORM','JOOMLA1.0');
      define('JPATH_ROOT', $GLOBALS['mosConfig_absolute_path']);
      if (!defined('DS'))       define('DS', DIRECTORY_SEPARATOR);
   }
Maybe this was done BACKWARDS?
« Last Edit: February 02, 2008, 12:05:28 AM by ByDomino » Logged
filterit
Newbie
*
Posts: 10


View Profile
« Reply #9 on: May 06, 2008, 04:52:53 PM »

if (defined( '_VALID_MOS' ) OR defined( '_JEXEC' )){
   /* ok we are in Joomla 1.0.x or Joomla 1.5+ */
   if (!defined('_VALID_MOS'))   {
      /* We are in Joomla 1.5 */
      define('_VALID_MOS', '1');
      define('_PLUGIN_DIR_NAME','plugins');
      define('_BF_PLATFORM','JOOMLA1.5');
   } else if (!defined('_JEXEC')){
      /* we are in Joomla 1.0 */
      define('_JEXEC', '1');
      define('_PLUGIN_DIR_NAME','mambots');
      define('_BF_PLATFORM','JOOMLA1.0');
      define('JPATH_ROOT', $GLOBALS['mosConfig_absolute_path']);
      if (!defined('DS'))       define('DS', DIRECTORY_SEPARATOR);
   }
Maybe this was done BACKWARDS?

Backwards do we need to swap these IFs around?
Logged
Pages: [1]
Print
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com

Original Joomla Template design by RocketTheme ( Conversion by Bloc)