s08e01 - Info Page Meta QUESTIONS/SUPPORT

Open to all! Ask other shopowners for help.
Post Reply
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

s08e01 - Info Page Meta QUESTIONS/SUPPORT

Post by heatherbell »

Addon:
Adds in extra capability to the Core Info Pages system.

Download:
viewtopic.php?f=28&t=487







--


Works fine on Edit Info Page but on New info Page shows:
Fatal error: Uncaught TypeError: Argument 2 passed to Image::__construct() must be of the type array, string given
Fixed by changing /includes/hooks/admin/info_pages/meta.php Line 51
From

Code: Select all

          $page_meta_input .= '<span class="input-group-text">' . $GLOBALS['Admin']->catalog_image('includes/languages/' . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . '</span>';
To

Code: Select all

          $page_meta_input .= '<span class="input-group-text">' . $GLOBALS['Admin']->catalog_image('includes/languages/' . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], [], $languages[$i]['name']) . '</span>';
that is, add missing

Code: Select all

[],

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Info Page error 1.0.8.15

Post by radhavallabh »

Hi Dear;
I upgraded to 1.0.8.15
On clicking Info Pages- Click Edit on a added page->
or
On clicking Info Pages- Click Insert page->
I get below error after the Sort Order Field-
Warning: count(): Parameter must be an array or an object that implements Countable in xx/includes/hooks/admin/info_pages/meta.php on line 76
Attaching line 76

Code: Select all

for ($i=0, $n=count($languages); $i<$n; $i++) {
Please can you help me fix the issue.
Regds./
radhavallabh
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Info Page error 1.0.8.15

Post by ecartz »

radhavallabh wrote: Tue May 31, 2022 11:01 am Warning: count(): Parameter must be an array or an object that implements Countable in xx/includes/hooks/admin/info_pages/meta.php on line 76
I updated the zip (earlier in the topic) to fix this.
heatherbell wrote: Sun Apr 10, 2022 7:17 am Fatal error: Uncaught TypeError: Argument 2 passed to Image::__construct() must be of the type array, string given
Also this.
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: Info Page error 1.0.8.15

Post by radhavallabh »

ecartz wrote: Tue May 31, 2022 1:41 pm
radhavallabh wrote: Tue May 31, 2022 11:01 am Warning: count(): Parameter must be an array or an object that implements Countable in xx/includes/hooks/admin/info_pages/meta.php on line 76
I updated the zip (earlier in the topic) to fix this.
heatherbell wrote: Sun Apr 10, 2022 7:17 am Fatal error: Uncaught TypeError: Argument 2 passed to Image::__construct() must be of the type array, string given
Also this.
Hi dear;
I downloaded the zip and replaced the files;
Yet same issue.
Can you please check is the zip got updated...

Thank you in advance;
Very Warm Regds./
radhavallabh
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: Info Page error 1.0.8.15

Post by radhavallabh »

radhavallabh wrote: Tue May 31, 2022 1:59 pm
ecartz wrote: Tue May 31, 2022 1:41 pm
radhavallabh wrote: Tue May 31, 2022 11:01 am Warning: count(): Parameter must be an array or an object that implements Countable in xx/includes/hooks/admin/info_pages/meta.php on line 76
I updated the zip (earlier in the topic) to fix this.
heatherbell wrote: Sun Apr 10, 2022 7:17 am Fatal error: Uncaught TypeError: Argument 2 passed to Image::__construct() must be of the type array, string given
Also this.
Hi dear;
Sorry I checked again now the issue changes to-
Warning: sizeof(): Parameter must be an array or an object that implements Countable in /xx/includes/hooks/admin/info_pages/meta.php on line 80

Thank you in advance;
Very Warm Regds./
radhavallabh
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: s08e01 - Info Page Meta SUPPORT

Post by ecartz »

Hopefully I uploaded the correct zip this time.
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: s08e01 - Info Page Meta SUPPORT

Post by radhavallabh »

ecartz wrote: Tue May 31, 2022 2:17 pm Hopefully I uploaded the correct zip this time.
Hi Dear!
Issue fixed;
Thank you!
Very Warm Regds./
radhavallabh


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply