Page 1 of 1
Deprecated: tep_ errors
Posted: Thu May 09, 2024 9:23 am
by Xpajun
Is there a way to stop the Deprecated: tep_ errors and only the Deprecated: tep_ errors from showing in the error files
they are becoming a pain to wade through and have no real function simply because they don't point the file that the tep_ is being used on to cause the error to be listed
Re: Deprecated: tep_ errors
Posted: Thu May 09, 2024 9:40 am
by ecartz
On your test site, simply delete the hook (from the database) that loads the file in which the deprecation notice appears. That will convert the deprecation notice to a fatal error on the caller. Those hooks use the function_surface class.
On your live site change your error reporting to E_ALL^E_USER_DEPRECATION -- since the tep_ deprecation notices are the only kind of deprecation notices we produce, that's all that it will shut off. PHP doesn't produce E_USER_DEPRECATION messages; its messages are E_DEPRECATION. Or go through and delete all the trigger_error lines. That's a legacy file now. It's not like we'll be changing it after deleting it.
Re: Deprecated: tep_ errors
Posted: Thu May 09, 2024 3:03 pm
by 14Steve14
We have gone through all of our older code and removed what ever is causing those types of warnings and errors. Its not that hard to do as Rainer has a link to a file which lists most of them in his signature, and what to replace them with. If that doesn't find them then ask on the forums as no doubt others have had the same problem.
Re: Deprecated: tep_ errors
Posted: Thu May 09, 2024 4:35 pm
by Xpajun
14Steve14 wrote: ↑Thu May 09, 2024 3:03 pm
We have gone through all of our older code and removed what ever is causing those types of warnings and errors. Its not that hard to do as Rainer has a link to a file which lists most of them in his signature, and what to replace them with. If that doesn't find them then ask on the forums as no doubt others have had the same problem.
That is my ultimate intention
@14Steve14 - I'm just trying to ge a stable 1.0.8.21/9 live at the moment getting 5000 errors with only 28 of which are non tep_ errors really is a pain
Re: Deprecated: tep_ errors
Posted: Thu May 09, 2024 7:08 pm
by Xpajun
ecartz wrote: ↑Thu May 09, 2024 9:40 am
On your test site, simply delete the hook (from the database) that loads the file in which the deprecation notice appears. That will convert the deprecation notice to a fatal error on the caller. Those hooks use the function_surface class.
This will be handy for when I start updating the files with tep_s in them
Meanwhile the following is what I need at the moment:
ecartz wrote: ↑Thu May 09, 2024 9:40 am
On your live site change your error reporting to E_ALL^E_USER_DEPRECATION -- since the tep_ deprecation notices are the only kind of deprecation notices we produce, that's all that it will shut off. PHP doesn't produce E_USER_DEPRECATION messages; its messages are E_DEPRECATION. Or go through and delete all the trigger_error lines. That's a legacy file now. It's not like we'll be changing it after deleting it.
I deleted all the trigger_error lines - now I can see the real errors to be addressed
Thank you Matt