Jump to content
  • 0

FluxCP Notice Error


mitsukee

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  04/28/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  04/28/12
  • Last Seen:  

Would anyone know how to fix this? o:

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

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 by Skorm
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  161
  • Reputation:   5
  • Joined:  02/07/13
  • Last Seen:  

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

×
×
  • Create New...