Page 1 of 1

deprecation warning

Posted: Wed Jul 30, 2025 6:22 am
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.

Re: depreciation warning

Posted: Wed Jul 30, 2025 9:28 am
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

Re: depreciation warning

Posted: Wed Jul 30, 2025 10:51 am
by burt

Re: depreciation warning

Posted: Thu Jul 31, 2025 3:06 am
by Portman
Thanks guys - it was the null thing