Page 1 of 1
s08e01 - Info Page Meta QUESTIONS/SUPPORT
Posted: Sun Apr 10, 2022 7:17 am
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
Info Page error 1.0.8.15
Posted: Tue May 31, 2022 11:01 am
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
Re: Info Page error 1.0.8.15
Posted: Tue May 31, 2022 1:41 pm
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.
Re: Info Page error 1.0.8.15
Posted: Tue May 31, 2022 1:59 pm
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
Re: Info Page error 1.0.8.15
Posted: Tue May 31, 2022 2:02 pm
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
Re: s08e01 - Info Page Meta SUPPORT
Posted: Tue May 31, 2022 2:17 pm
by ecartz
Hopefully I uploaded the correct zip this time.
Re: s08e01 - Info Page Meta SUPPORT
Posted: Wed Jun 01, 2022 5:58 am
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