Fatal error: Cannot redeclare CSQLAdmin::$functions in sqladmin.php on line 30

I am trying to install a PHP application that manages vehicle dispatch scheduling.

I installed it per the instructions, however I cannot run it; I get an error:

                               Fatal error: Cannot redeclare CSQLAdmin::$functions in sqladmin.php on line 30

I am running PHP 5.2.4.  Any ideas how to resolve this?  I have attached the source code.

Thanks!
dispatch-software.zip.txt
LVL 16
hankknightAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hernst42Commented:
You get that error because that property $functions is declared twice in line 20 and 30


	/**
	* description
	*
	* @var type
	*
	* @access type
	*/
	var $functions;
	
 
	/**
	* description functions list which will be executed in variouse points of sqladmin
	*
	* @var type
	*
	* @access type
	*/
	var $functions;

Open in new window

0
hernst42Commented:
To fix the error remove eg. line 20-29 or 13-22
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hankknightAuthor Commented:
Thanks, Jürgen.

That fixed the Fatal Error problem but it still does not work.  Now I just get a blank screen.

The website for this application is here but there is NO support:

http://www.dispatch-software.org/

Cheers!
0
hernst42Commented:
The program is written for php4 only and if run with php5 will lead to blank pages.
$this is a special keyword in php5 wheras it was special, but not protected. $this as variable name in a non object context will produce a fatal error in php5 where it work in php4.

Better search for a supported and working program for such task.
0
hankknightAuthor Commented:
Thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.