Warnings after PHP change
Posted: 11 Jan 2022, 19:20
Hello Jan,
I have updated my XAMPP configuration to:
Joomla 3.10.4
PHP 8.0.14
PG is on V 4.4.3
Due to the change to PHP 8.x, two warnings were issued:
Warning: attempting to access an array offset to a value of type int in ...xampp\htdocs\hp_joomla1\administrator\components\com_phocagallery\libraries\phocagallery\imagefront.php on line 402
Deprecated: Required parameter $treeId follows optional parameter $id in ...xampp\htdocs\hp_joomla1\modules\mod_phocagallery_tree\mod_phocagallery_tree.php on line 135
The following change fixed this warning:
function categoryTreePGTM( $data, $tree, $id = 0, $text = '', $treeId) {
change to:
function categoryTreePGTM( $data, $tree, $id = 0, $text = '', $treeId = 0) {
Could you please check if this is ok?
Is there a fix for the first warning? If so, If so, I offer to test it.
Thanks in advance
Regards
KarEm
I have updated my XAMPP configuration to:
Joomla 3.10.4
PHP 8.0.14
PG is on V 4.4.3
Due to the change to PHP 8.x, two warnings were issued:
Warning: attempting to access an array offset to a value of type int in ...xampp\htdocs\hp_joomla1\administrator\components\com_phocagallery\libraries\phocagallery\imagefront.php on line 402
Deprecated: Required parameter $treeId follows optional parameter $id in ...xampp\htdocs\hp_joomla1\modules\mod_phocagallery_tree\mod_phocagallery_tree.php on line 135
The following change fixed this warning:
function categoryTreePGTM( $data, $tree, $id = 0, $text = '', $treeId) {
change to:
function categoryTreePGTM( $data, $tree, $id = 0, $text = '', $treeId = 0) {
Could you please check if this is ok?
Is there a fix for the first warning? If so, If so, I offer to test it.
Thanks in advance
Regards
KarEm