WordPress.org

Ready to get started?Download WordPress

Forums

raindrops
[resolved] Most Resent upgrade (5 posts)

  1. fixmybrokepc
    Member
    Posted 1 year ago #

    The most resent upgrade of Raindrops now produces a PHP error on the titlepage of WordPress. The error is

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'raindrops_mobile_meta' not found or invalid function name in /usr/home/chris/www/xaerolimit.net/wp-includes/plugin.php on line 403

    The error can be seen here as well, https://www.xaerolimit.net / http://www.xaerolimit.net

  2. nobita
    Member
    Theme Author

    Posted 1 year ago #

    Hi fixmybrokepc

    Sorry

    Please see quick fix

    http://www.tenman.info/wp3/raindrops/

  3. fixmybrokepc
    Member
    Posted 1 year ago #

    What exactly am I downloading here. Most of the page is in an Asian script, I can't read it :/

  4. nobita
    Member
    Theme Author

    Posted 1 year ago #

    Sorry

    Quick Fix
    functions.php line: 4111

    if( ! function_exists( 'raindrops_mobile_meta' ) ){
        function obandes_mobile_meta(){
            if( wp_is_mobile() and raindrops_warehouse('raindrops_page_width') == 'doc3' ){
        ?>
            <meta name="viewport" content="width=device-width" />
            <meta name="apple-mobile-web-app-capable" content="yes" />
            <meta name="apple-mobile-web-app-status-bar-style"      content="default">
        <?php
            }
        }
    }

    Please change below

    if( ! function_exists( 'raindrops_mobile_meta' ) ){
        function raindrops_mobile_meta(){
            if( wp_is_mobile() and raindrops_warehouse('raindrops_page_width') == 'doc3' ){
        ?>
            <meta name="viewport" content="width=device-width" />
            <meta name="apple-mobile-web-app-capable" content="yes" />
            <meta name="apple-mobile-web-app-status-bar-style"      content="default">
        <?php
            }
        }
    }

    function name change from obandes_mobile_meta() to raindrops_mobile_meta().

  5. fixmybrokepc
    Member
    Posted 1 year ago #

    Awesome, fixed. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.