Fatal error: Class 'bbcode_parent_class' not found (ccs.php) > nEwZ - sCRiPTz-TEAM.iNFO

Canal Rss Canal Rss
Canal Atom Canal Atom 

Fatal error: Class 'bbcode_parent_class' not found (ccs.php)

Category: IPS Tracker - IP.Board 3.0
Viewed: 41 times
Printerfriendly version version of Microsoft Word HTML version

Full error:

Fatal error: Class 'bbcode_parent_class' not found in .../admin/sources/classes/bbcode/custom/ccs.php on line 18


Line of the error:
class bbcode_page extends bbcode_parent_class implements bbcodePlugin



The issue happens when the custom bbcode plugin for IP.Content pages is loaded and no other bbcode are present in the class, in this scenario the bbcode_parent_class class is NEVER loaded. This is basically the same issue of my old report even if the cause is a little different (extends cannot find the class instead of retrieveTags): http://community.inv...-always-loaded/


A temporary fix is to put this code at the top of the ccs.php file:
if( !class_exists('bbcode_parent_class') )
{
	require_once( IPS_ROOT_PATH.'sources/classes/bbcode/custom/defaults.php');
}

The best fix would be to always load the bbcode_parent_class which presently is included in defaults.php instead of having a separate file.

Mon, 06 September 2010