This topic has 8 replies, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #101522
     tubbytat
    Participant

    Hi there, i am getting the following errors in my error log. can you assist. attached is the plugin.php

    [01-Feb-2016 10:57:40 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, function ‘kleo_social_share’ not found or invalid function name in /home/topofthe/public_html/wp-includes/plugin.php on line 525

    Also i have come across a strange issue on my site that only occurs in firefox browser

    when you try to go to a page from FireFox, it shows you the page then redirects you back to the previous one… this only happens with FireFox. I tried to disable all plugins I have installed, didn’t work. Checked htaccess, seems fine… Checkev for malware – none. Don’t know what else to do… any help is highly appreciated…

    you can view the problem in firefox, if you go to tvmum.co.uk then select from the top menu tab and choose a bbc channel to view, you will see the redirection

    thanks in advance

    Attachments:
    You must be logged in to view attached files.
    #101617
     Radu
    Moderator

    Hi,

    Do you have made some changes to the theme files ? parent/child ?

    The kleo_social_share function works only in post pages.

    I’ve accessed your website in chrome and firefox and i don’t was redirected anywhere it opens pages normally.

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #101629
     tubbytat
    Participant

    OK the firefox redirect has been fixed, it was a cloudflare issue.
    Still no solution to the PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘kleo_social_share’ not found or invalid function name in /home/topofthe/public_html/wp-includes/plugin.php on line 52

    #101630
     tubbytat
    Participant

    here is the php file as a text file

    Attachments:
    You must be logged in to view attached files.
    #101709
     Radu
    Moderator

    Hi,

    The problem is not caused by plugin.php, this file is part of wordpress core.

    Do you have something in your child theme functions.php ?

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #101711
     tubbytat
    Participant

    this is my functions file:
    <?php
    /**
    * @package WordPress
    * @subpackage Kleo
    * @author SeventhQueen <themesupport@seventhqueen.com>
    * @since Kleo 1.0
    */

    /**
    * Kleo Child Theme Functions
    * Add custom code below
    */
    add_action( ‘bbp_theme_after_reply_content’, ‘kleo_social_share’ );

    #101716
     Radu
    Moderator

    Hi,

    If you remove this line

    COPY CODE
    
    add_action( ‘bbp_theme_after_reply_content’, ‘kleo_social_share’ );
    

    The error shouldn’t appear again in error.log

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #101717
     tubbytat
    Participant

    seems to have sorted the issue out, many thanks Radu

    #101750
     Radu
    Moderator

    You’re welcome

    Have a nice day

    Cheer

    RAdu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 9 posts - 1 through 9 (of 9 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?