Small problem [solved]

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
rhysdavies
Forum Members
Forum Members
Posts: 31
Joined: Thu Oct 04, 2007 9:23 am

Small problem [solved]

Post by rhysdavies »

I have set up CMSMS for two sites.  Both installations were straightforward and easy and I had no problems.  However, on one of the sites, I get the following message on the top of each and every page, in public and admin:
Notice: Use of undefined constant CMS_VERSION - assumed 'CMS_VERSION' in /home/fhlinux162/r/rhuddelwelshblack.co.uk/user/htdocs/lib/adodb_lite/adodb.inc.php on line 2
I have checked the page that this error refers to, and on line 2, this is the code:
if(!isset($GLOBALS[CMS_VERSION])) die('Attempt to use ADODB from outside of CMS');
I can't really get my head around what is wrong.  Both sites are run on Linux servers PHP 4.0  and MySQL

Any ideas would be gratefully received.

Cheers
Last edited by rhysdavies on Thu Oct 04, 2007 1:49 pm, edited 1 time in total.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Small problem

Post by tsw »

this is a known bug (will be fixed in coming 1.2 release)

change

Code: Select all

if(!isset($GLOBALS[CMS_VERSION])) die('Attempt to use ADODB from outside of CMS');
to

Code: Select all

if(!isset($GLOBALS['CMS_VERSION'])) die('Attempt to use ADODB from outside of CMS');
(note the ' characters around CMS_VERSION)
rhysdavies
Forum Members
Forum Members
Posts: 31
Joined: Thu Oct 04, 2007 9:23 am

Re: Small problem

Post by rhysdavies »

A thousand thanks, tsw!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Small problem [solved]

Post by Dr.CSS »

Well I just installed 1.2 and get...

Attempt to use ADODB from outside of CMS

No page just that...
Post Reply

Return to “CMSMS Core”