Problem with Image Gallery

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
joerugg

Problem with Image Gallery

Post by joerugg »

Hey All ...

After testing and trying out a half-dozen CMS packages, I've settled on CMSMS. A great mix of features and simple enough for my clients to deal with.  ;)

I'm running on a Windows/IIS server on my webhost (CrystalTech); PHP5, MySQL 5.0.22, via Server API CGI/FastCGI

Got it installed on my host (CrystalTech) with a few hiccups but now all seems to be working fine with one major exception: the Image Gallery.

When I browse to the image gallery page within the admin, the following message appears in the area where I believe the image thumbnails should appear:

Fatal error: Class 'Files' not found in D:\Inetpub\DomainID178109\lib\filemanager\ImageManager\Classes\ImageManager.php on line 98

The function that include line 98 reads (in RED):

Code: Select all

	function _dirs($base, $path) 
	{
[color=red]		$base = Files::fixPath($base);[/color]
		$dirs = array();

		if($this->isValidBase() == false)
			return $dirs;

		$d = @dir($base);
		if( !$d ) return $dirs;
	
		while (false !== ($entry = $d->read())) 
		{
			//If it is a directory, and it doesn't start with
			// a dot, and if is it not the thumbnail directory
			if(is_dir($base.$entry) 
				&& substr($entry,0,1) != '.'
				&& $this->isThumbDir($entry) == false) 
			{
				$relative = Files::fixPath($path.$entry);
				$fullpath = Files::fixPath($base.$entry);
				$dirs[$relative] = $fullpath;
				$dirs = array_merge($dirs, $this->_dirs($fullpath, $relative));
			}
		}
		$d->close();

		Return $dirs;
	}
I'm a noob at PHP, but have been developing in ASP for years ... so be gentle!  ;D

What's weird is that I can upload images (I tried and then, via FTP, checked to see if the image arrived in the uploads/images directory and there it was).

And I can insert images into content with no problem.

Any ideas what's going wrong here?

Thanks ... JR
Locked

Return to “[locked] Installation, Setup and Upgrade”