My Subscriptions

No active or expired subscriptions. View Available Subscriptions

News Feed

Receive our Newsletter

Advanced Search

Save $50 on your CMS Expo Registration

Receive $50 off the registration fee for the CMS Expo featuring Joomla! in Dever, Colorado (USA). Click here to register at the reduced rate.
Pages: [1]
Print
Author Topic: Undefined variable: _VERSION  (Read 377 times)
skelly
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« on: February 07, 2008, 10:26:47 AM »

I get the following error on the backend when managing events.
Undefined variable: _VERSION in /Applications/MAMP/htdocs/administrator/components/com_jcalpro/includes/events.php on line 57

I the the following error on the front end when viewing the calendar
/Applications/MAMP/htdocs/components/com_jcalpro/config.inc.php on line 196

Any idea why this is happening and what I can do to fix it?

I'm running Joomla 1.5 and JCal Client 1.6.x

-Susan
Logged
PepsimanAB
Moderator
Jr. Member
*****

Karma: +4/-0
Posts: 71


View Profile Email
« Reply #1 on: February 08, 2008, 02:18:43 AM »

In both files, the line that's causing the error is
Code:
if ( preg_match('/Joomla/i', $_VERSION->PRODUCT )

From reading the Joomla Changelog, $_VERSION is now JVersion() in Joomla 1.5, which is why it isn't defined and why you're getting the error, although my Joomla 1.5 installation just runs right through it without showing an error.  (If the code comments are correct, I think Jcal might be using the Mambo functions?)

Is the calendar still working for you, and just showing this message?  It sounds like your php settings might be set to "Strict" error reporting, which generally isn't what you want for a public website.  If you have control of your server, you can change this in the php.ini file.  If it's a server that's out of your control, you might try adding the line
Code:
ini_set('display_errors', 'Off');
somewhere above the lines that are giving you the problem.  This should temporarily turn off error reporting.

I'm sure they're working on fixing stuff like this for one of the next betas.
Logged

Anthony
*** Please read this post before posting in the forum. ***
skelly
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« Reply #2 on: February 08, 2008, 11:40:39 AM »

Inserting "ini_set('display_errors', 'Off');" worked.

I do have control over the PHP settings, modifying the ini file didn't work. 

Thanks.

-Susan
Logged
PepsimanAB
Moderator
Jr. Member
*****

Karma: +4/-0
Posts: 71


View Profile Email
« Reply #3 on: February 08, 2008, 11:56:06 AM »

I'm glad that worked for you.  Hopefully the error will be taken care of properly soon.
Logged

Anthony
*** Please read this post before posting in the forum. ***
Pages: [1]
Print
Jump to:  

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

Original Joomla Template design by RocketTheme ( Conversion by Bloc)