nEwZ - sCRiPTz-TEAM.iNFO

A printed version of the article

Click here to view the article in its original format

nEwZ - sCRiPTz-TEAM.iNFO _ IPS Tracker - IP.Board 3.0 _ Fatal error: Class 'bbcode_parent_class' not found (ccs.php)

Added by: sCRiPTz-TEAM.iNFO Mon, 06 September 2010

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.

Source: http://community.invisionpower.com/tracker/issue-25099-fatal-error-class-bbcode-parent-class-not-found-ccsphp/

Powered by nEwZ - sCRiPTz-TEAM.iNFO
© sCRiPTz-TEAM dEv. (sCRiPTz-TEAM.iNFO)