Support Forum

The function sp_find_icon() has been deprecated

CK Charles Kirkland
Charles Kirkland
Member

The entire from is down and this is the message I’m getting in the admin area:

Warning – The default user group for guests is undefined! Please visit the SP usergroups admin page, map users to usergroups tab and set the default user group

 

This is what I’m getting inside the forum

Warning: The function sp_find_icon() has been deprecated and will be removed in a future update. Use the new function sp_paint_file_icon() instead. in – See more at: http://mediabuyerassociation.com/members/forum/ad-copy/#sthash.FHs8aSiS.dpuf

 

I just did the forum update what did I do wrong?

Thanks,

Charles 

14 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Sorry but edited that rather overlong title…

Sounds to me like you probably have updated the core SP but not updated all the SP plugins you are using…

KV kvr28
kvr28
Member

I am getting the same warning in sp error log, everything is up to date

file: /simple-press/sp-startup/site/sp-site-deprecated.php
line: 105
function: trigger_error
User Warning | The function sp_find_icon() has been deprecated and will be removed in a future update. Use the new function sp_paint_file_icon() instead.

YS Yellow Swordfish
Yellow Swordfish
Member

I can guarantee that the function is no longer being used in any SP supplied code. As of the last round of updates.

However – if you get the deprecated warning then perhaps you have used the function in some custom code somewhere. Is that possible?

KV kvr28
kvr28
Member

I don’t believe so, I just looked through my child theme and can’t locate it anywhere

YS Yellow Swordfish
Yellow Swordfish
Member

What is the date on the error log entry? And indeed the number of times it has been called?

YS Yellow Swordfish
Yellow Swordfish
Member

Might that be the day you upgraded some of the SP components? If so that might explain one or two slipping through.before the fully updated components were all in place. I would clear the log and see if it returns…

BS BSABantam
BSABantam
Member

I had the same error appear in the log and also on the Forum page, but only when I clicked on ‘See all Online activity’.

De-activated the ‘Online’ plugin and tried to delete it but couldn’t. Eventually I un-installed the plugin but still couldn’t delete it so I removed the folder.

Re-installed the latest version (had already updated after Simple:Press update along with all the other plugins) and all now appears to be OK.

MP Mr Papa
Mr Papa
Member

To get the error, you would have to have outdated sw, either a theme or plugin… Updating should take car if it as it appears it did…

BS BSABantam
BSABantam
Member

WordPress and all Themes & Plugins, Simple:Press and Theme and all Plugins were reported as all up to date.

I can only think that something went wrong with the update of the Online Plugin because not only did it cause the error but I couldn’t un-install it or delete it through the interface. The error only went away when I de-activated it and manually removed the containing folder, downloaded a fresh copy and re-installed and activated.

MP Mr Papa
Mr Papa
Member

so all is good now?  

was the online plugin particularly old?  a long time ago, we had to change the name since it an apostrophe in the plugin name and wp didnt catch updates… but that was some time ago..

BS BSABantam
BSABantam
Member

Yes, all is fine now. All the plugins get updated whenever new updates appear, usually after a SP update, so they all should have been recent.

It may have had something to do with this error we have been getting lately

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 30720 bytes) in /problem-with-post-edit-buttonome/********/******_html/**-********/template-loader.php on line 48

Not always the same reference or line but very similar.

Usually, if you wait a few seconds and refresh, all continues as normal but I suppose the server could have run out of memory just when the plugin was being updated?

YS Yellow Swordfish
Yellow Swordfish
Member

If you are getting a memory error often then you should consider trying to get it lifted. Your host may do this for you properly but you can also try this FAQ workaround:

https://simple-press.com/documentation/codex/faq/troubleshooting/i-have-a-fatal-error-that-says-i-have-run-out-of-memory/

Note though that that FAQ need changing. 64MB will be no good now. WP needs more than that. The trick is to make the number bigger than the memory limit you do have now. And that will be shown in the forum admin > toolbox > environment.