A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Error showing after Install and can't see Forum
Sep 5, 2010
3:52 am
Member
Forum Posts: 13
Member Since:
Sep 5, 2010
Offline

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?

Sep 5, 2010
4:44 am

SP Master
Forum Posts: 22240
Member Since:
Nov 9, 2008
Offline

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
Sep 5, 2010
1:53 pm
Member
Forum Posts: 13
Member Since:
Sep 5, 2010
Offline

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;
            }
        }
    }
}

Sep 5, 2010
3:05 pm

SP Master
Forum Posts: 22240
Member Since:
Nov 9, 2008
Offline

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
Sep 5, 2010
3:11 pm
Member
Forum Posts: 13
Member Since:
Sep 5, 2010
Offline

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.

Sep 5, 2010
3:58 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

just upload the whole thing again to be sure…

Sep 5, 2010
6:19 pm
Member
Forum Posts: 13
Member Since:
Sep 5, 2010
Offline

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?

Sep 5, 2010
7:13 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

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?

Sep 5, 2010
7:47 pm
Member
Forum Posts: 13
Member Since:
Sep 5, 2010
Offline

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.

Sep 5, 2010
8:43 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

you could try creating us a temp wp admin account with spf admin capabilities and we can take a closer look…  please pm the credentials to yellowswordfish and myself…

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: Conrad_Farlow, SPQC, joelrob
64 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

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

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22240), Mr Papa (23688)