Deprecated : htmlspecialchars()

Open to all! Ask other shopowners for help.
Post Reply
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

Deprecated : htmlspecialchars()

Post by radhavallabh »

Hi dear;
On install of 1.1.0.3 I am getting this error on sample product pears without attributes-

Deprecated
: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in
C:\xampp\htdocs\xx\includes\system\versioned\1.01.00.02\product_builder.php
on line
46

data-is-special="0" data-product-price="4.99" data-product-manufacturer="" data-in-stock="1000" data-product-id="3" data-has-attributes="0">

Any ideas pls??
Thank you in advance;
Regds./
radhavallabh


Join The Code Co-op to get access to your library in the Code Co-op Forum
frankl
Builder
Posts: 159
Joined: Tue Feb 23, 2021 8:39 pm
Phoenix Version: v1.1.0.4
Has thanked: 17 times
Been thanked: 25 times

Re: Deprecated : htmlspecialchars()

Post by frankl »

Make sure all products have a manufacturer.
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: Deprecated : htmlspecialchars()

Post by radhavallabh »

frankl wrote: Tue Jun 17, 2025 4:41 am Make sure all products have a manufacturer.
Ok but those without manufacturer are deemed to have this error dear??
Should it not return no error with or without it?
Regds./
radhavallabh
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Deprecated : htmlspecialchars()

Post by burt »

Probably something to do with NULL manufacturers.

If a product has no manufacturer, it is now set to "NULL" not "0".

I'll take a look if I have time and enough effort to bother.
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Deprecated : htmlspecialchars()

Post by burt »

I am not here to build for you.
I am here to build with you. Let's help each other.


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