Deprecated errors in forms coming from html_output.php

Open to all! Ask other shopowners for help.
Post Reply
cut-n-paste
Member
Posts: 28
Joined: Fri Oct 07, 2022 12:20 pm
Phoenix Version:
Has thanked: 2 times
Been thanked: 5 times

Deprecated errors in forms coming from html_output.php

Post by cut-n-paste »

It seems like just about every function in html_output.php purposely triggers errors

Code: Select all

trigger_error('The tep_draw_stars function has been deprecated.', E_USER_DEPRECATED);
What is the purpose of this line? Should I be doing something about this?


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4560
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 413 times

Re: Deprecated errors in forms coming from html_output.php

Post by burt »

These are correct. You should be checking your error_logs to see if any are written to it. If yes, it means code in your site (usually addons) is using outdated functions. Get the code updated to use the more modern functions.
I am not here to build for you.
I am here to build with you. Let's help each other.
14Steve14
Senior Contributor
Posts: 923
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: Deprecated errors in forms coming from html_output.php

Post by 14Steve14 »

In starting the update process on my store I have had hundreds of these errors and with a bit of help from others on this forum I have removed every one of them. I think its caused where core code has been updated to remove all these old outdated functions. If in doubt of how to remove them, ask on these forums.
cut-n-paste
Member
Posts: 28
Joined: Fri Oct 07, 2022 12:20 pm
Phoenix Version:
Has thanked: 2 times
Been thanked: 5 times

Re: Deprecated errors in forms coming from html_output.php

Post by cut-n-paste »

You were right, the addMaths hook is doing tep_draw_input_field(). What is the new way to do this?
14Steve14
Senior Contributor
Posts: 923
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: Deprecated errors in forms coming from html_output.php

Post by 14Steve14 »

cut-n-paste wrote: Fri Sep 15, 2023 2:49 pm You were right, the addMaths hook is doing tep_draw_input_field(). What is the new way to do this?
There may be more to it than just that one bit of code so paste the full line of code so others can see the rest of it. In some instances the order of how things happen need to change too.
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Deprecated errors in forms coming from html_output.php

Post by heatherbell »

cut-n-paste wrote: Fri Sep 15, 2023 2:49 pm You were right, the addMaths hook is doing tep_draw_input_field(). What is the new way to do this?
This is an addon. Help for addons must be posted where you downloaded the addon.
That would be here:
app.php/addons/free_addon/maths_captcha
In fact, if you look there, your query has already been answered.


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