Topic RSS
Hello and thank you for a great forum plugin!…
So, I successfully installed the forum plugin and created a group and forum, but when I went to click to view what I just created I just get a blank area where the forum should be next to my sidebar. I'm gettting this error in the bottom of my admin area…
Warning: call_user_func_array()[function.call-user-func-array]: First argument is expected to be a valid callback, 'sf_setup_footer' was given in /home/droidos/public_html/wp-includes/plugin.php on line 395
When I click on the link it goes to a 404 page.
Any ideas?
That sounds more like there is a missing file or an incomplete one. The call to sf_setup_footer() is in the file sf-header-forum.php. Can you take a look to see if it is there?
And – how did you upload the plugin to your site?
Yellow Swordfish said:
That sounds more like there is a missing file or an incomplete one. The call to sf_setup_footer() is in the file sf-header-forum.php. Can you take a look to see if it is there?
And – how did you upload the plugin to your site?
I used Filezilla to upload. It seemed it went ok.
Is this it?…
# ——————————————————————
# sf_setup_footer()
#
# Constructs the footer for the forum – Javascript
# ——————————————————————
function sf_setup_footer()
{
global $sfvars, $sfglobals, $current_user, $SFMOBILE;
# wait for page load and run JS inits
?>
<script type="text/javascript">
var jspf = jQuery.noConflict();
jspf(document).ready(function() {
<?php
# Checkboxes/radio buttons
if(SF_USE_PRETTY_CBOX) { ?>
jspf("input[type=checkbox],input[type=radio]").prettyCheckboxes();
<?php } ?>
<?php
# syntax Highlighting – optional maybe and may need loading outside of SP
$sfsyntax = sf_get_option('sfsyntax');
if($sfsyntax['sfsyntaxforum'] == true) { ?>
Syntax.root = "<?php echo SFJSCRIPT.'syntax/'; ?>";
jspf.syntax({layout: 'table', replace: true});
<?php } ?>
<?php
# Sets cookies with content and paragraph widths
$docookie = true;
$sfpostwrap = array();
$sfpostwrap = sf_get_option('sfpostwrap');
if($sfpostwrap['postwrap'] == false) $docookie = false;
if($sfvars['postwidth'] > 0) $docookie = false;
if($sfvars['displaymode'] == 'edit') $docookie = false;
if($sfvars['pageview'] != 'topic') $docookie = false;
if($current_user->forumadmin == false) $docookie = false;
// if($docookie) {
// setcookie ("c_width", "", time() – 3600, "/");
// setcookie ("p_width", "", time() – 3600, "/");
// }
if($docookie) { ?>
var c = jspf(".sfpostcontent").width();
var p = jspf(".sfpostcontent p").width();
if(c && p) {
jspf.cookie('c_width', c, { path: '/' });
jspf.cookie('p_width', p, { path: '/' });
}
<?php } ?>
<?php
# set up Highslide…
?>
hs.graphicsDir = "<?php echo(SFJSCRIPT); ?>highslide/support/";
hs.outlineType = "rounded-white";
hs.outlineWhileAnimating = true;
hs.cacheAjax = false;
hs.showCredits = false;
hs.lang = {
cssDirection : '<?php bloginfo('text_direction'); ?>',
closeText : '',
closeTitle : '<?php echo esc_js(__("Close", "sforum")); ?>',
moveText : '',
moveTitle : '<?php echo esc_js(__("Move", "sforum")); ?>',
loadingText : '<?php echo esc_js(__("Loading", "sforum")); ?>'
};
/* pre-load wait image */
waitImage = new Image(27,27);
waitImage.src = '<?php echo(SFRESOURCES."wait.png"); ?>';
<?php
# turn on auto update of required
$sfauto=array();
$sfauto=sf_get_option('sfauto');
if($sfauto['sfautoupdate']) {
$timer = ($sfauto['sfautotime'] * 1000);
$url = SFHOMEURL."index.php?sf_ahah=autoupdate";
?>
sfjAutoUpdate("<?php echo($url); ?>", "<?php echo($timer); ?>");
<?php } ?>
});
</script>
<?php
# load editor if required
if(strpos("forum topic pm profileedit", $sfvars['pageview']) !== false)
{
if ($SFMOBILE)
{
$sfglobals['editor']['sfeditor'] == PLAIN;
} else {
switch($sfglobals['editor']['sfeditor'])
{
case RICHTEXT:
include_once(SFEDITORDIR."tinymce/sf-tinyinit.php");
break;
}
}
}
}
That is it but…. the error was that the code couldn't find and run it.
A very, very large proportion of problems reported have come down to using FileZilla and we do warn against this. I think you have some pieces missing or corrupted and would recommend you upload the files again using a decent client FTP program.
Yellow Swordfish said:
That is it but…. the error was that the code couldn't find and run it.
A very, very large proportion of problems reported have come down to using FileZilla and we do warn against this. I think you have some pieces missing or corrupted and would recommend you upload the files again using a decent client FTP program.
Should I just upload the whole folder again overwriting what is already there? Or do I need to delete anything first? I can upload it in Cpanel if that is better?
Thanks for your help.
Mr Papa said:
just upload the whole thing again to be sure…
Just deleted the simple-forum folder and uploaded it again to the plugin directory and still getting the same error. Any other thoughts?
I wonder if you have a theme doing non standard things… go to forum – wp integration – page and permalink and have a play with the multiple display and in the loop settings…
are you using any sp template tags?
Mr Papa said:
I wonder if you have a theme doing non standard things… go to forum – wp integration – page and permalink and have a play with the multiple display and in the loop settings…
are you using any sp template tags?
The theme I have is by RocketTheme and uses the gantry framework. The theme is called Reaction and is fairly new, if that helps. I'm not familiar with the term sp template tags, sorry. I'd be willing to give you access if you wanted to see from within what is going on.
Just to let you know, I did a fresh install without using Filezilla this time and still getting the same error. I even tried every possible combination in the integration options.
Most Users Ever Online: 444
Currently Online: Conrad_Farlow, SPQC, joelrob
64 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
-Radio-: 1251
Lee H: 606
Luffer: 535
Conrad_Farlow: 502
jim: 478
neon: 263
ovizii: 240
Tal: 240
Member Stats:
Guest Posters: 2626
Members: 7363
Moderators: 1
Admins: 2
Forum Stats:
Groups: 5
Forums: 16
Topics: 10897
Posts: 79582
Newest Members: Rick Thomas, joelrob, ndc, MacBravO, irlandes1, triphop, betokan, Jonathan Yovani Muñoz, somosguatemala, ahcreate
Moderators: Brandon C (162)
Administrators: Yellow Swordfish (22240), Mr Papa (23688)
Log In
Register
Home
Add Reply
Add Topic
Offline

Quote



Visit 
Privacy Policy



