Upgrade error

3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 15, 2009   (RSS)

By Toledoh - April 15, 2009

Hi Guys,

I'm upgrading from 1.23 to 1.28 and get the following error when I go to the admin.php

Notice: Use of undefined constant DATA_DIR - assumed 'DATA_DIR' in /var/www/wineclubnetau/public_html/cmsAdmin/lib/database_functions.php on line 246 Notice: Use of undefined constant DATA_DIR - assumed 'DATA_DIR' in /var/www/wineclubnetau/public_html/cmsAdmin/lib/database_functions.php on line 201 Warning: scandir(): (errno 2): No such file or directory in /var/www/wineclubnetau/public_html/cmsAdmin/lib/database_functions.php on line 205 Warning: Invalid argument supplied for foreach() in /var/www/wineclubnetau/public_html/cmsAdmin/lib/database_functions.php on line 205 Warning: Cannot modify header information - headers already sent by (output started at /var/www/wineclubnetau/public_html/cmsAdmin/lib/database_functions.php:246) in /var/www/wineclubnetau/public_html/cmsAdmin/lib/menus/header.php on line 3 Fatal error: Call to undefined function doaction() in /var/www/wineclubnetau/public_html/cmsAdmin/lib/menus/header.php on line 20


What am I doing wrong?

Thanks!
Cheers,

Tim (toledoh.com.au)

Re: [Toledoh] Upgrade error

By Dave - April 15, 2009

Hi Tim,

Sounds like some of the files may not have been fully uploaded. Try re-uploading the /lib/ folder from the 1.28 zip.

The latest /lib/init.php should have a line near the top that sets the data dir like this:

if (!defined('DATA_DIR')) { define('DATA_DIR', _getProgramDir() . '/data'); }

Let me know what happens.
Dave Edis - Senior Developer
interactivetools.com