Support Forum
Noticing a simplepress forum sitemap error in Google webmaster tools. Trying to view the sitemap shows the following.
XML Parsing Error: junk after document element
Location: https://www.docsplace.org/foru.....itemap.xml
Line Number 2, Column 1:<b>Warning</b>: The function sp_forum_api_support() has been deprecated and will be removed in a future update. Use the new function sp_forum_ajax_support() instead. in <b>/home/docsplace/public_html/wp-content/plugins/simple-press/sp-startup/site/sp-site-deprecated.php</b> on line <b>54</b><br />
^
Any suggestions?
- Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Well the message in question is a triggered warning that will be used if the old function is called. it is now used nowhere in any of the code of plugins or core. It is also used in our sp-importer although that too was upgraded and released at the same time. Bit that wouldn't be a part of the sitemap anyway.
The only other two things I can think of is if you yourself have added any custom code that might have used that function and now it needs to be changed. Or - the sitemap was generated when half was updated and half was not.
Maybe @mr-papa can shed some light on it or have any idea that I have missed,...
YELLOW
SWORDFISH
|
Dunno, I'm lost in code. No mods to simplepress. Tried dumping CloudFlare cache several times, ran sp databases repair. Since the sp sitemap plugin depends on Yoast SEO plugin, maybe it's triggering something? Joost has pushed out many updates recently.
- Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Just discovered the sucks site is doing the same thing. Tried removing line 58 from sp-site-depreciated.php but that didn't work either. File date is:
Simple:Press
Deprecated - global code
$LastChangedDate: 2016-07-11 18:16:45 -0700 (Mon, 11 Jul 2016) $
$Rev: 14429 $
- Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
its not going to be anything in deprecated file.. something is still calling the sp_forum_api_support() function... just need to figure out what...
do a search (or grep) on the sp plugins and themes directory... maybe also check the wp plugins directory (perhaps the our importer plugin or other wp plugin we provide is still active with that)...
if all that fails, then need to dump the call stack (debug_backtrace()) and see where its coming from...
Visit Cruise Talk Central and Mr Papa's World
Steve is basically saying that he believes it means something on your site is still calling the old, deprecated function which needs to be found. I can say that the codebase of our core, plugins and themes plus extra WP plugins like Importer are no longer making this call.
As to how you search your server folders then I have to say I do not know either although I am sure I can google it and find out. But we may need him to expand on it!
YELLOW
SWORDFISH
|
I can browse the directories with a file manager, but there are so many files to view / search through and I'm really not sure what to look for. Obviously that old api call, It's a nightmare for me to tweak my sites main theme css file. Getting somewhat better as time goes by, but still lost in code. One little edit error and I'm in big trouble..
- Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
1 Guest(s)