deprecation warning

Open to all! Ask other shopowners for help.
Post Reply
User avatar
Portman
Contributor
Posts: 158
Joined: Mon Mar 08, 2021 1:04 am
Phoenix Version: v1.0.8.20
Has thanked: 29 times
Been thanked: 4 times

deprecation warning

Post by Portman »

Hi,

I have been doing a fair bit of modification to my 1.1.0.3 site before I noticed the following depreciation warning;

Code: Select all

PHP Deprecated:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/.../includes/system/versioned/1.01.00.02/product_builder.php on line 46
Is there something in particular that I should be looking for that could be throwing this warning? I have been working on a modified pi_buy_button that is hidden if the customer is not logged in, it also has a modal as part of it to explain why they cant buy it... but because I dont know what I am looking for I cant even be sure if this is the problem.

Any help would be appreciated.


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: depreciation warning

Post by Kofod95 »

I think this is due to missing product-data in a column that allows null as a "value" (probably more correct to say "allows null instead of a value"). That would be where I would check first.

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: depreciation warning

Post by burt »

I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
Portman
Contributor
Posts: 158
Joined: Mon Mar 08, 2021 1:04 am
Phoenix Version: v1.0.8.20
Has thanked: 29 times
Been thanked: 4 times

Re: depreciation warning

Post by Portman »

Thanks guys - it was the null thing


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