mitsukee Posted November 1, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 20 Reputation: 0 Joined: 04/28/12 Last Seen: December 4, 2012 Share Posted November 1, 2012 When I add JayPee's FluxCP Vote4Points add-on, it always show me these messages in my FluxCP Theme. "Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 86 Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 86 Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 87 Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 87 Notice: Object of class Flux_Config could not be converted to int in /home/scarlett/public_html/lib/Flux/Template.php on line 403 Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 86 Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 86 Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 87 Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 87 Notice: Object of class Flux_Config could not be converted to int in /home/scarlett/public_html/lib/Flux/Template.php on line 427" Is this a theme error? o-o; Link to comment Share on other sites More sharing options...
mitsukee Posted November 5, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 20 Reputation: 0 Joined: 04/28/12 Last Seen: December 4, 2012 Author Share Posted November 5, 2012 Would anyone know how to fix this? o: Link to comment Share on other sites More sharing options...
Skorm Posted June 26, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted June 26, 2013 (edited) I'd like to know the answer to. public function actionAllowed($moduleName, $actionName = 'index') { $accessConfig = $this->config->get('modules'); $accessKeys = array("$moduleName.$actionName", "$moduleName.*"); $accountLevel = $this->session->account->group_level; $existentKeys = array(); if ($accessConfig instanceOf Flux_Config) { foreach ($accessKeys as $accessKey) { $accessLevel = $accessConfig->get($accessKey); if (!is_null($accessLevel)) { $existentKeys[] = $accessKey; if ($accessLevel == AccountLevel::ANYONE || $accessLevel == $accountLevel || ($accessLevel != AccountLevel::UNAUTH && $accessLevel <= $accountLevel)) { return true; } } } } if (empty($existentKeys)) { return -1; } else { return false; } } Nudge Edited June 26, 2013 by Skorm Link to comment Share on other sites More sharing options...
Talaysen Posted March 23, 2014 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 161 Reputation: 5 Joined: 02/07/13 Last Seen: March 25, 2016 Share Posted March 23, 2014 Would anyone know how to fix this? o: I know this is an outdated post, but I was encountering the same error after updating from one version of FluxCP to another, while retaining the original 'application.php' settings. I replaced application.php with the new (modified) file, and it removed the error message. Link to comment Share on other sites More sharing options...
Question
mitsukee
When I add JayPee's FluxCP Vote4Points add-on, it always show me these messages in my FluxCP Theme.
"Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 86
Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 86
Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 87
Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 87
Notice: Object of class Flux_Config could not be converted to int in /home/scarlett/public_html/lib/Flux/Template.php on line 403
Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 86
Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 86
Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 87
Notice: Object of class Flux_Config could not be converted to int in/home/scarlett/public_html/lib/Flux/Authorization.php on line 87
Notice: Object of class Flux_Config could not be converted to int in /home/scarlett/public_html/lib/Flux/Template.php on line 427"
Is this a theme error? o-o;
Link to comment
Share on other sites
3 answers to this question
Recommended Posts