Title: Error
Last modified: August 30, 2016

---

# Error

 *  [catarina18](https://wordpress.org/support/users/catarina18/)
 * (@catarina18)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-672/)
 * 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)

 *  [threeels](https://wordpress.org/support/users/threeels/)
 * (@threeels)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-672/#post-6695813)
 * 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.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/treeson/0.1.16/screenshot.png)
 * Treeson
 * [Support Threads](https://wordpress.org/support/theme/treeson/)
 * [Active Topics](https://wordpress.org/support/theme/treeson/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/treeson/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/treeson/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [threeels](https://wordpress.org/support/users/threeels/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/error-672/#post-6695813)
 * Status: not resolved