Hi dear;
On 1.0.8.14 I am getting below error on advert_manager.php when I try to add new advert.
Fatal error
: Uncaught TypeError: Argument 2 passed to Image::__construct() must be of the type array, string given, called in /xx/admin/includes/classes/admin.php on line 66 and defined in /xx/includes/system/versioned/1.0.8.1/image.php:29 Stack trace: #0 /xx/admin/includes/classes/admin.php(66): Image->__construct('includes/langua...', 'English') #1 /xx/admin/advert_manager.php(323): Admin::catalog_image('includes/langua...', 'English') #2 {main} thrown in
/xx/includes/system/versioned/1.0.8.1/image.php
on line
29
Please can you help me fix this issue;
Thanking you in advance;
Very warm regds./
radhavallabh
Advert Manager Error
-
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
- burt
- Core Team
- Posts: 4551
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: Advert Manager Error
I have just added an advert using 1.0.8.14 & it worked as expected.radhavallabh wrote: ↑Thu May 12, 2022 1:35 pm On 1.0.8.14 I am getting below error on advert_manager.php when I try to add new advert.
Can you take notes of each step that you perform until it breaks [and then write down those steps to replicate], so that no time is wasted trying to get it to break...
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
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: Advert Manager Error
Hi dear;burt wrote: ↑Thu May 12, 2022 2:28 pmI have just added an advert using 1.0.8.14 & it worked as expected.radhavallabh wrote: ↑Thu May 12, 2022 1:35 pm On 1.0.8.14 I am getting below error on advert_manager.php when I try to add new advert.
Can you take notes of each step that you perform until it breaks [and then write down those steps to replicate], so that no time is wasted trying to get it to break...
I follow below steps-
Click advert Manager -> Add New -> On the same page beside Html Text I get this error.
Attaching screenshot dear Thank you in advance;
Very Warm Regds./
radhavallabh
You do not have the required permissions to view the files attached to this post.
-
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: Advert Manager Error
Sorry for all the trouble....burt wrote: ↑Thu May 12, 2022 2:28 pmI have just added an advert using 1.0.8.14 & it worked as expected.radhavallabh wrote: ↑Thu May 12, 2022 1:35 pm On 1.0.8.14 I am getting below error on advert_manager.php when I try to add new advert.
Can you take notes of each step that you perform until it breaks [and then write down those steps to replicate], so that no time is wasted trying to get it to break...
Found my mistake dear;
As per suggestion by dear ecartz for a previous issue I had made the change on all admin side files for the new Image function call.
On below line I forgot to add ,[],
Code: Select all
<span class="input-group-text"><?= $Admin->catalog_image("includes/languages/{$l['directory']}/images/{$l['image']}",[], $l['name']); ?></span>Very Warm regds./
radhavallabh