Page 1 of 1

Small problem [solved]

Posted: Thu Oct 04, 2007 9:28 am
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

Re: Small problem

Posted: Thu Oct 04, 2007 10:23 am
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)

Re: Small problem

Posted: Thu Oct 04, 2007 11:06 am
by rhysdavies
A thousand thanks, tsw!

Re: Small problem [solved]

Posted: Tue Oct 16, 2007 6:36 am
by Dr.CSS
Well I just installed 1.2 and get...

Attempt to use ADODB from outside of CMS

No page just that...