I am trying to figure out how to get rid of the deprecated warnings in the elgg 1.8. I have a bunch of plugins that probably have some API that is deprecated, and now warnings are displayed all over the place.
I've turned off all my debug settings, and it still continues to appear.
Screen shot here: http://ppl.ug/p6-jVVK0mDs/
The warning says:
Deprecated in 1.7: extend_view() was deprecated by elgg_extend_view()!
Please help !
Thanks in advance.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
because you are using some old elgg 1.7 plugin please disable other plugins
Thanks! I finally went through all the plugins and fixed that, I was hoping to avoid it.
is there some setting that stops warning notices from being shown in general ?
No, this cannot be turned off. Elgg will always show these warnings to your users because the functions that are being used will be removed in the next version of Elgg, so it's critical that the offending plugins be updated asap.
See https://github.com/Elgg/Elgg/blob/master/documentation/coding_standards/deprecation.txt
I understand it cannot be turned off, but I've always wondered the reasoning behind having it visible to regular/anonymous users? They don't benefit from the warning and can't do anything about it, really it just breaks the site for them.
I think these warnings should be visible to Admin only.
I agree with Matt, it is not allways that cut and dry to why or what is causing the depreacated error. That being said why would I want to show to the users that my site is broken (in maybe the next release). This could cause lost members or potential new members, because it is obvious to them the website is not professional with a big ol honking error.
Or maybe you could display the error when it is in developer mode as well as admin only when not in developer mode
@Elgg team please add Production Mode and Development mode
in Production mode the error messages must be hidden :) What about this idea?
ok, y'all that's called "software developers.." ;-)
..this is not called "rocket science" ;-)
it's about as easy as eating american pie....
just goto the elgg lib code for deprecated
and in the function, at the top add :=>
function ..... {
if (elgg_is_admin_logged_in()) { // no deprecated notice unless Admin is logged in ;-oP
return TRUE;
}
. . . etc
any volunteers for a pull request to "fix" ?
GRATE IDEA PETER :)
Guys, this is the same discussion thread here
http://community.elgg.org/pg/forum/topic/835550/problem-with-depreciated-in-17-get_entity-error--help-please/
@Peter did also see the notice from DhrupDeScoop ? :-)
if ( ! elgg_is_admin_logged_in()) instead of if (elgg_is_admin_logged_in())
y'all ;-) of course pete did see note from me ! i've known him since way back and keep in touch re: such code fixes.. -- still ;-oO -- but i reckon all people have so far missed the 'point'. he can do that code himself - but busy as he is always - he was axing for the real "software developers.." (i.e.not kids;) to see they might wanna volunteer their time to do a pull from git and go on to complete the core code-fix he proposed. not just programming idleness... ;-P
- Previous
- 1
- 2
- Next
You must log in to post replies.