J-BusinessDirectory - Beta testing - 5.6.2 bug on Joomla 4

Support Forum

 
 

 

1 - When calling packages:

Error: Class JBusinessDirectoryModelPackages contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Joomla\CMS\MVC\Model\ItemModelInterface::getItem)

components\com_jbusinessdirectory\models\packages.php (line 15)

line15:  class JBusinessDirectoryModelPackages extends JModelItem {

 

2 - when use social login on user module:

Fatal error: require_once(): Failed opening required '\components\com_jbusinessdirectory\libraries\vendor\composer/autoload_static.php' (include_path='.;C:\php\pear') in \components\com_jbusinessdirectory\libraries\vendor\composer\autoload_real.php on line 28

 

2 replies

for package: 

I add this code now working:

 

jimport('joomla.application.component.modellist');
JTable::addIncludePath(DS.'components'.DS.'com_jbusinessdirectory'.DS.'tables');
require_once HELPERS_PATH.'/helper.php';

class JBusinessDirectoryModelPackages extends JModelList {
public function __construct($config = array()) {
if (empty($config['filter_fields'])) {
$config['filter_fields'] = array(
'id', 'p.id',
'name', 'p.name',
'price', 'p.price',
"special_price", "p.special_price",
"days", "p.days",
"special_from_date", "p.special_from_date",
"special_to_date", "p.special_to_date",
"status", "p.status",
'ordering', 'p.ordering',
"popular", "p.popular"
);
}

parent::__construct($config);
}

Hi,

Thank you for letting us know.
We will include a fix for this in the 5.6.3 version that will be released this week.

 
 
 

3 Item(s)

Show per page