Page 1 of 1
Deprecated errors in forms coming from html_output.php
Posted: Wed Sep 13, 2023 7:26 pm
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?
Re: Deprecated errors in forms coming from html_output.php
Posted: Wed Sep 13, 2023 8:21 pm
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.
Re: Deprecated errors in forms coming from html_output.php
Posted: Thu Sep 14, 2023 8:17 am
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.
Re: Deprecated errors in forms coming from html_output.php
Posted: Fri Sep 15, 2023 2:49 pm
by cut-n-paste
You were right, the addMaths hook is doing tep_draw_input_field(). What is the new way to do this?
Re: Deprecated errors in forms coming from html_output.php
Posted: Fri Sep 15, 2023 3:35 pm
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.
Re: Deprecated errors in forms coming from html_output.php
Posted: Fri Sep 15, 2023 4:16 pm
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.