Jump to content
  • 0

FluxCP Notice Error


Question

Posted

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;

3 answers to this question

Recommended Posts

Posted (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 by Skorm
Posted

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...