Fatal error: Cannot redeclare class WA_Include
I have created a page using a theme however I get the following error:
Fatal error: Cannot redeclare class WA_Include in /home/rsheep/public_html/webassist/framework/framework.php on line 2
I have created a page using a theme however I get the following error:
Fatal error: Cannot redeclare class WA_Include in /home/rsheep/public_html/webassist/framework/framework.php on line 2
looks like the webassist/framework/framework.php file is included in the page multiple times.
on the /evergreen/Templates/evergreen page with sidebar.dwt.php page was the following code:
<?php require_once('../../webassist/framework/framework.php'); ?>
<?php require_once('../../webassist/framework/library.php'); ?>
on the /evergreen/adminLogin.php was this code:
<?php require_once('webassist/framework/framework.php'); ?>
<?php require_once('webassist/framework/library.php'); ?>
the first set was pointing to the /webassist/framework/ directory, the second was pointing to the /evergreen/webassist/framework/ since they where pointing to separate locations, it was including them both and causing the error.
i edited the template code to:
<?php require_once('../webassist/framework/framework.php'); ?>
<?php require_once('../webassist/framework/library.php'); ?>
so both pages would point to the same location.
OK Thanks Jason!
For some reason I did things in a different order this time which may be why I had this problem.
Thanks again
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.