WordPress.org

Ready to get started?Download WordPress

Forums

Easel
[resolved] error (11 posts)

  1. kam1kaz3
    Member
    Posted 10 months ago #

    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

  2. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    FTP 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.

  3. kam1kaz3
    Member
    Posted 10 months ago #

    I can't upgrade my wordpress because the php version is
    5.1.3RC4-dev on my host

  4. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    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.

  5. kam1kaz3
    Member
    Posted 10 months ago #

    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?

  6. Frumph
    Member
    Theme Author

    Posted 10 months ago #

    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.

  7. Frumph
    Member
    Theme Author

    Posted 10 months ago #

    // 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

  8. kam1kaz3
    Member
    Posted 10 months ago #

    I found the problem, the function

    glob() is not supported by my host.

  9. kam1kaz3
    Member
    Posted 10 months ago #

    soluce here in french

    ici

    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

  10. Frumph
    Member
    Theme Author

    Posted 10 months ago #

    The 'glob' is used in the options pages as well, just a reminder to set that myglob into those as well

  11. kam1kaz3
    Member
    Posted 10 months ago #

    Ues I saw and modify, theme working correctly

    Thanks

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.