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.
I can’t upgrade my wordpress because the php version is
5.1.3RC4-dev on my host
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.
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?
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.
// 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
I found the problem, the function
glob() is not supported by my host.
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
The ‘glob’ is used in the options pages as well, just a reminder to set that myglob into those as well
Ues I saw and modify, theme working correctly
Thanks