• Resolved asauret

    (@asauret)


    I have this message in my web (angelasauret.com):
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘preview_theme’ not found or invalid function name in /home/s1328295/public_html/wp-includes/plugin.php on line 496

    I’m trying to solve it but I can’t. I had other messages that I could solve repairing config.php but not this one.

    Anyone can help me? If I go to plugin.php I don’t know what I have to change or delete.

    thanks!!
    Angela

Viewing 7 replies - 1 through 7 (of 7 total)
  • Try deactivating all plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the default theme for your version of WordPress to rule-out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter asauret

    (@asauret)

    Hi @mojowill,
    Thanks for your reply.
    I tried deactivating all plugins. No solution. The warning was still there.
    Then, I tried to add the default theme (I deleted it some time ago without problems). When I did it I couldn’t. There was a message saying that there was an error, maybe with WordPress.org or with the server configuration.

    I don’t know what to do…

    I think this does look like an issue with your theme, try manually installing TwentyFifteen via FTP (you can download it here https://wordpress.org/themes/twentyfifteen/) if it isn’t working via the admin dashboard.

    See if switching to that gets rid of the error. Or you could try reuploading the WordPress core files

    Try downloading WordPress again and delete then replace your copies of everything except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings. Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    Thread Starter asauret

    (@asauret)

    It worked! I reuploaded the WordPress core files!

    thank you very much!!!
    Angela

    Great really glad it worked for you. Remember to mark this thread as resolved!

    Thread Starter asauret

    (@asauret)

    Thanks!

    I added additional $8 in calculate_total_shipping function for handling charges and I got warning.
    So what I did basically I change code from $total = $this->calculate_base_shipping() to $total = $this->calculate_base_shipping() + 8.00.
    I found the above solution in one of the forum but I got the warning below when I updated the file

    call_user_func_array() expects parameter 1 to be a valid callback, function ‘dfcg_load_scripts_footer’ not found or invalid function name in /home2/waas7m0aald4/public_html/wp-includes/plugin.php on line 525

    Please can someone give solution to this error as soon as possible. I would really appreciate it. Thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Warning: call_user_func_array()’ is closed to new replies.