Support Forum

Unified theme FATAL ERROR

TJ Toby Jacobs
Toby Jacobs
Member

HI,

 

I’ve just uploaded the Unified them and I’ve got this error:

 

Fatal error: Call to undefined function sp_MarkForumRead() in /home/content/08/11346408/html/wp-content/sp-resources/forum-themes/unified/templates/spHead.php on line 246

 

Line 246 reads:

sp_MarkForumRead(‘tagClass=spMarkForumRead spRight’, __sp(‘Mark forum read’), __sp(‘Mark all topics in this forum read’));

 

Please tell me what I have to do to fix the error.

 

Cheers

 

Toby

10 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Well – these functions do, of course, exist.

So first question. Where are you actually locating these SP plugins? Are you putting them in the WordPress plugin folder which is not the right place. Simple:Press defines it’s own plugins folder and the location for that is shown in various places in the admin but specifically at the top of the forum admin > Plugins list – or – forum admin > integration > storage locations.

There is also a codex article explaing this: https://simple-press.com/documentation/codex/plugins/plugin-basics/using-plugins/

So let’s check this first

YS Yellow Swordfish
Yellow Swordfish
Member

Sorry  just realised this is a theme not a plugin. But the same applies – different location for SP themes as well…

TJ Toby Jacobs
Toby Jacobs
Member

Everything is uploaded in the correct location:

wp-content/sp-resources/forum-themes/

YS Yellow Swordfish
Yellow Swordfish
Member

Then that truly is bizarre and quite, quite unique. And the same applies to the similar plugin issue. Clearly these functions do exist and are loaded – we are using them here along with all other users.

So… can I assume this is an up to date version of the SP core plugin?

An could you take a look n your php error log to see if there are any other issues? I would have thought the only reason not to find a function is if some code files are not being loaded when they should be and that might possibly show up in the error log.

TJ Toby Jacobs
Toby Jacobs
Member

Actually, it was not an up to date version of the plugin. I have just updated the plugin and wordpress to the latest versions. Unfortunately it did not fix anything.

YS Yellow Swordfish
Yellow Swordfish
Member

The theme you are currently using does not look to be up to date either. Unless your WP theme is having a bigger impact on the CSS styling that expected.
Do you have any other SP related updates awaiting in the WP Admin Update page?

TJ Toby Jacobs
Toby Jacobs
Member

As far as I can see everything else is up to date.

YS Yellow Swordfish
Yellow Swordfish
Member

So – anything in the error log? You can look in the forum admin > tools section. We are really just talking actual errors – i.e, the pink ones…

TJ Toby Jacobs
Toby Jacobs
Member

This is the only error in there:

 

August 17, 2016 8:35 am | spaErrError | 7 | database

file: /home/content/08/11346408/html/wp-content/sp-resources/forum-plugins/subscriptions/sp-subscriptions-plugin.php
line: 348
function: sp_subscriptions_do_upgrade_check
error: Unknown column ‘subscribe’ in ‘field list’

SELECT user_id, subscribe FROM wp_sfmembers WHERE subscribe != ”

YS Yellow Swordfish
Yellow Swordfish
Member

Yet another oddity as that should not generate an error – only a warning.