lookup cache died all of a sudden

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
sticcino
User
Posts: 1043

lookup cache died all of a sudden

Post by sticcino »

not sure what happened today, but in one of the forms, the lookup cache items

	// Set up lookup cache
	$this->setupLookupOptions($this->accounts_id);
	$this->setupLookupOptions($this->stage);
	$this->setupLookupOptions($this->contractors_id);
	$this->setupLookupOptions($this->contacts_id);
	$this->setupLookupOptions($this->_UserId);
	$this->setupLookupOptions($this->CreatedBy);
	$this->setupLookupOptions($this->ModifiedBy);

causes a fatal error, removing them and the form works:

Fatal error: Uncaught Error: Cannot access protected property PHPMaker2019\electron2\Lookup::$ParentFields .....

any thoughts
thanks


arbei
User
Posts: 9384

Post by arbei »

According to the source code $ParentFields is public. Your script might be generated from an older template. You may try to update your template, click Tools > Delete Template Cache to remove old cache and generate with the latest template again.


sticcino
User
Posts: 1043

Post by sticcino »

found issue:

pfpfn15 wasn't regenerated... we have a workaround function in the file, so it wasn't being regenerated regularly...


Post Reply