1283 Posts
Bucklash
6 years ago
Topic

Hi Folks (Klas)

I am having a week of hurdles. Issue is with User Notes.

To test, I created a Menu Item for Seb Comment Form (Comments App)

Result is:

Access to undeclared static property: plgCCK_Storage_LocationJoomla_User_Note::$bridge_object

User Note doesn't get bridged, so anybody have an idea of where I should look, or what I might have done, or what I should do?

These files have $bridge_object:

Searching 6873 files for "$bridge_object"


/Applications/MAMP/htdocs/test-site/administrator/components/com_cck/install/cms/plugin/location.php:
  249  		// Core
  250  		if ( !$already ) {
  251: 			if ( static::$bridge_object != '' ) {
  252  				$params		=	static::getStaticParams()->toArray();
  253  			}


/Applications/MAMP/htdocs/test-site/libraries/cms/cck/plugin/location.php:
  249  		// Core
  250  		if ( !$already ) {
  251: 			if ( static::$bridge_object != '' ) {
  252  				$params		=	static::getStaticParams()->toArray();
  253  			}


/Applications/MAMP/htdocs/test-site/plugins/cck_storage_location/free/free.php:
   22  	protected static $author		=	'';
   23  	protected static $author_object	=	'';
   24: 	protected static $bridge_object	=	'';
   25  	protected static $child_object	=	'';
   26  	protected static $created_at	=	'';


/Applications/MAMP/htdocs/test-site/plugins/cck_storage_location/joomla_article/joomla_article.php:
   26  	protected static $author		=	'created_by';
   27  	protected static $author_object	=	'joomla_user';
   28: 	protected static $bridge_object	=	'';
   29  	protected static $child_object	=	'';
   30  	protected static $created_at	=	'created';


/Applications/MAMP/htdocs/test-site/plugins/cck_storage_location/joomla_category/joomla_category.php:
   26  	protected static $author		=	'created_user_id';
   27  	protected static $author_object	=	'joomla_user';
   28: 	protected static $bridge_object	=	'';
   29  	protected static $child_object	=	'joomla_article';
   30  	protected static $created_at	=	'created_time';


/Applications/MAMP/htdocs/test-site/plugins/cck_storage_location/joomla_user/joomla_user.php:
   24  	protected static $author		=	'id';
   25  	protected static $author_object	=	'';
   26: 	protected static $bridge_object	=	'joomla_article';
   27  	protected static $child_object	=	'';
   28  	protected static $created_at	=	'registerDate';


/Applications/MAMP/htdocs/test-site/plugins/cck_storage_location/joomla_user_group/joomla_user_group.php:
   24  	protected static $author		=	'';
   25  	protected static $author_object	=	'';
   26: 	protected static $bridge_object	=	'joomla_article';
   27  	protected static $child_object	=	'';
   28  	protected static $created_at	=	'';


/Applications/MAMP/htdocs/test-site/plugins/content/cck/cck.php:
  105  		$properties		= 	array( 'bridge_object', 'custom' );
  106  		$properties		= 	JCck::callFunc( 'plgCCK_Storage_Location'.$object, 'getStaticProperties', $properties );
  107: 		$bridge_object 	= 	$properties['bridge_object'];
  108  		$custom 		= 	$properties['custom'];
  109  		$parent			=	'';
  ...
  175  
  176  			if ( $pkb > 0 ) {
  177: 				if ( $bridge_object == 'joomla_category' ) {
  178  					JLoader::register( 'JTableCategory', JPATH_PLATFORM.'/joomla/database/table/category.php' );
  179  
  ...
  181  					$bridge->load( $pkb );
  182  					$bridge->delete( $pkb );
  183: 				} elseif ( $bridge_object == 'joomla_article' ) {
  184  					JLoader::register( 'JTableContent', JPATH_PLATFORM.'/joomla/database/table/content.php' );
  185  


10 matches across 8 files



Get a VIP membership
4229 Posts
Kadministrator
6 years ago
1
Level 1

Probably user note needs  to be updated, just add this property at the beginning of the user note plugins the same as in other objects.

1283 Posts
Bucklash
6 years ago
0
Level 2

Damn it, I feel like a chump.

Yep, plugin was out of date. Thought it wasn't.

Must need glasses!!!

Thanks and sorry for not having checked that properly


So updated plugin and it works when separate menu item, but as a nested form i.e. in Content View I receive Data Integrity message...hmmm

Get a Book for SEBLOD