Title: error
Last modified: August 21, 2016

---

# error

 *  Resolved [kam1kaz3](https://wordpress.org/support/users/kam1kaz3/)
 * (@kam1kaz3)
 * [13 years ago](https://wordpress.org/support/topic/error-189/)
 * hello, I have installed your theme but I have error :
 *     ```
       Warning: Invalid argument supplied for foreach() in /mnt/133/sdb/e/6/mstuning/blog/wp-content/themes/easel/functions.php on line 49
   
       Warning: Invalid argument supplied for foreach() in /mnt/133/sdb/e/6/mstuning/blog/wp-content/themes/easel/functions.php on line 54
   
       Fatal error: Call to undefined function easel_display_blog_navigation() in /mnt/133/sdb/e/6/mstuning/blog/wp-content/themes/easel/content.php on line 2
       ```
   
 * adress [mstuning.free.fr/blog](http://mstuning.free.fr/blog)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years ago](https://wordpress.org/support/topic/error-189/#post-3795816)
 * [FTP](http://codex.wordpress.org/FTP_Clients) into your site (or whatever file
   management application your host provides) & delete the wp-content/themes/easel
   folder. Then upgrade WordPress before you try installing any more themes.
 *  Thread Starter [kam1kaz3](https://wordpress.org/support/users/kam1kaz3/)
 * (@kam1kaz3)
 * [13 years ago](https://wordpress.org/support/topic/error-189/#post-3795891)
 * I can’t upgrade my wordpress because the php version is
    5.1.3RC4-dev on my host
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years ago](https://wordpress.org/support/topic/error-189/#post-3795919)
 * In that case, you really only have 3 options:
 * 1. Persuade your hosts to upgrade the server
    2. Move to another hosting company
   3. Avoid downloading any themes created or updated in the last year or so.
 *  Thread Starter [kam1kaz3](https://wordpress.org/support/users/kam1kaz3/)
 * (@kam1kaz3)
 * [13 years ago](https://wordpress.org/support/topic/error-189/#post-3795939)
 * Ok thanks for reply.
 * 1 it’s not possible
    2 why not in futur but not now 3 how to know the date of
   creating theme?
 *  Theme Author [Frumph](https://wordpress.org/support/users/frumph/)
 * (@frumph)
 * [13 years ago](https://wordpress.org/support/topic/error-189/#post-3795988)
 * Actually I believe it had more to do with the theme not having access (permissions
   or doesn’t exist) to it’s own widgets and functions directories more then the
   php version, that particular php code doesn’t rely on a php higher then 5 from
   what I remember, could be wrong though.
 *  Theme Author [Frumph](https://wordpress.org/support/users/frumph/)
 * (@frumph)
 * [13 years ago](https://wordpress.org/support/topic/error-189/#post-3795989)
 *     ```
       // These autoload
       foreach (glob(easel_themeinfo('themepath') . "/functions/*.php") as $funcfile) {
       	@require_once($funcfile);
       }
       ```
   
 * is the same as writing out:
 *     ```
       @require_once(get_template_directory().'/functions/avatars.php');
       @require_once(get_template_directory().'/functions/breadcrumbs.php');
       @require_once(get_template_directory().'/functions/classes.php');
       @require_once(get_template_directory().'/functions/comment-functions.php');
       @require_once(get_template_directory().'/functions/custom-header.php');
       @require_once(get_template_directory().'/functions/displaypost.php');
       @require_once(get_template_directory().'/functions/facebook.php');
       @require_once(get_template_directory().'/functions/footer-text.php');
       @require_once(get_template_directory().'/functions/pagintaion.php');
       @require_once(get_template_directory().'/functions/protect.php');
       @require_once(get_template_directory().'/functions/syndication.php');
       @require_once(get_template_directory().'/functions/wp-pagenavi.php');
       ```
   
 * basically
 *  Thread Starter [kam1kaz3](https://wordpress.org/support/users/kam1kaz3/)
 * (@kam1kaz3)
 * [13 years ago](https://wordpress.org/support/topic/error-189/#post-3796001)
 * I found the problem, the function
 * `glob()` is not supported by my host.
 *  Thread Starter [kam1kaz3](https://wordpress.org/support/users/kam1kaz3/)
 * (@kam1kaz3)
 * [13 years ago](https://wordpress.org/support/topic/error-189/#post-3796020)
 * soluce here in french
 * [ici](http://schplurtz.free.fr/wiki/dokuwiki/php-chez-free#contournement_pour_glob)
 *     ```
       function myglob( $patt, $drp=0 ) {
               $dir=dirname( $patt );
               $pat=basename( $patt );
               $md=($drp & GLOB_MARK)==GLOB_MARK;
               $reponse=array();
               if (is_dir($dir) && ($d = @opendir($dir))) {
                       $gl = array( ',/,', '/\./', '/\*/', '/\?/', '/^/', '/$/', ',/\.\*,', ',^/\^\.\*,'  );
                       $re = array( '\\/', '\.',   '.*',   '.',    '/^',  '\$/', '/[^.].*',  '/^[^.].*' );
                       $newpat=preg_replace( $gl, $re, $pat );
                               while (($filename = @readdir($d)) !== false) {
                                       if( $filename == '.' || $filename == '..' )
                                               continue;
                                       if( preg_match( $newpat, $filename )) {
                                               $reponse[]= $dir . '/' . $filename . (($md && is_dir($dir.'/'.$filename)) ? '/' : '');
                                       }
                       }
               }
               if(($drp & GLOB_NOCHECK)&&count($reponse)==0)
                       return array($patt);
               if($drp & GLOB_NOSORT)
                       return $reponse;
               sort( $reponse );
               return $reponse;
       }
       ```
   
 * thanks for help and reply
 *  Theme Author [Frumph](https://wordpress.org/support/users/frumph/)
 * (@frumph)
 * [13 years ago](https://wordpress.org/support/topic/error-189/#post-3796068)
 * The ‘glob’ is used in the options pages as well, just a reminder to set that 
   myglob into those as well
 *  Thread Starter [kam1kaz3](https://wordpress.org/support/users/kam1kaz3/)
 * (@kam1kaz3)
 * [13 years ago](https://wordpress.org/support/topic/error-189/#post-3796070)
 * Ues I saw and modify, theme working correctly
 * Thanks

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘error’ is closed to new replies.

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

 * 10 replies
 * 3 participants
 * Last reply from: [kam1kaz3](https://wordpress.org/support/users/kam1kaz3/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/error-189/#post-3796070)
 * Status: resolved