Jump to content
WebFlake
  • 0

Fatal Error When Installing App


Yuu

Question

I tried installing an application on my board and I keep getting an error. I wasn't getting this error up until last night, and I'm not sure why this is happening because it was working perfectly fine less than 2 days ago.

This is the error message I'm receiving: Fatal error: Class 'skin_global_121' not found in /home/lakevalo/public_html/admin/sources/classes/output/publicOutput.php(3846) : eval()'d code on line 3

I already tried Googling for an answer, but everything I found and tried didn't make a difference.
I checked the publicOutput.php file and this is what's around line 3846:

protected function _getSkinHooks( $name, $classname, $id )
{
	/* Hooks: Are we overloading this class? */
	$hooksCache	= ipsRegistry::cache()->getCache('hooks');
	
	if( isset($hooksCache['skinHooks'][ $name ]) && is_array($hooksCache['skinHooks'][ $name ]) && count($hooksCache['skinHooks'][ $name ]) )
	{
		foreach( $hooksCache['skinHooks'][ $name ] as $classOverloader )
		{
			if( is_file( IPS_HOOKS_PATH . $classOverloader['filename'] ) )
			{
				if( ! class_exists( $classOverloader['className'] ) )
				{
					/* Hooks: Do we have the hook file? */
					$thisContents = file_get_contents( IPS_HOOKS_PATH . $classOverloader['filename'] );
					$thisContents = str_replace( $name."(~id~)", $classname, $thisContents );
					
					ob_start();
					eval( $thisContents );
					ob_end_clean();
				}
				
				if( class_exists( $classOverloader['className'] ) )
				{
					/* Hooks: We have the hook file and the class exists - reset the classname to load */
					$classname = $classOverloader['className'];
				}
			}
		}
	}
	
	return $classname;
}

Line 3846 would be this exact code:

$thisContents = str_replace( $name."(~id~)", $classname, $thisContents );

I found a few answers that told me to upgrade or uninstall the Group Color on User Links hook, but I did both and the problem still persisted.

If anybody knows why this is happening or has a solution, please let me know. Thank you!

Need some IPB, MyBB, or HTML/CSS work done? Check out my thread!
:smiley:

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...