Closed msykiino closed 11 years ago
When you set multiple clusters in your include/conf.inc.php, it causes a php fatal error as shown below:
PHP Fatal error: Class 'SystemManager' not found in /PATH/TO/YOUR/APP/Cassandra-Cluster-Admin/helper/ClusterHelper.php on line 41 Workaround
PHP Fatal error: Class 'SystemManager' not found in /PATH/TO/YOUR/APP/Cassandra-Cluster-Admin/helper/ClusterHelper.php on line 41
I added the following lines in helper/ClusterHelper.php, to make this helper able to load SystemMager class.
require('include/autoload.php'); use phpcassa\SystemManager; Comments
require('include/autoload.php');
use phpcassa\SystemManager;
I don't think this is the best way to solve the problem, but at lease it worked and I needed to make it work AQAP so I wrote this simple dirty patch.
Regards.
thanks
Briefing
Issue
When you set multiple clusters in your include/conf.inc.php, it causes a php fatal error as shown below:
I added the following lines in helper/ClusterHelper.php, to make this helper able to load SystemMager class.
I don't think this is the best way to solve the problem, but at lease it worked and I needed to make it work AQAP so I wrote this simple dirty patch.
Regards.