• I have this error, someone can help me? Installed the theme treeson and always gives me this:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘mythemes_gallery’ not found in /htdocs/public/www/wp-includes/plugin.php on line 503

Viewing 1 replies (of 1 total)
  • Getting this error, too. Happening with Treeson version 0.1.13 using WP 4.4.1. Not getting error with other themes. Tried disabling plug-ins and it’s not creating issue. I tried this fix in functions.php.

    1) move this line
    add_action( 'admin_init', array( 'mythemes_gallery', 'admin_init' ) );

    2) here to make it conditional.

    if( get_theme_mod( 'mythemes-gallery-style' , true ) ){
    		add_action( 'admin_init', 	array( 'mythemes_gallery', 	'admin_init' ) );
            add_filter( 'post_gallery', array( 'mythemes_gallery', 'shortcode' ), null, 2 );
        }
Viewing 1 replies (of 1 total)
  • The topic ‘Error’ is closed to new replies.