DIYgod / Amativeness

:cake: Wow, such a beautiful WordPress theme
http://www.anotherhome.net/
192 stars 48 forks source link

gulp, gulp release 报错. #9

Open dmoosocool opened 7 years ago

dmoosocool commented 7 years ago

前来膜拜大神的, 结果发现clone下来自己玩不动.

node -v v8.1.3

npm -v 5.3.0

image 分析到是task lib.

没必要的就不用打到lib下了吧.可能是一些没有后缀的文件在移动的时候报错了. 我稍微改了下..

gulp.task('lib', function() {
    gulp.src(['node_modules/typed.js/dist/**/*.js'])
        .pipe(gulp.dest('lib/typed.js'));
    gulp.src(['node_modules/jquery-lazyload/dist/**/*.js'])
        .pipe(gulp.dest('lib/jquery-lazyload'));
    gulp.src(['node_modules/snapsvg/*.js'])
        .pipe(gulp.dest('lib/snapsvg'));
});
XYZ0901 commented 7 years ago

安装在wordpress上显示Fatal error: Maximum function nesting level of '100' reached, aborting! in D:\wamp\www\wordpress\wp-content\themes\Amativeness-master\functions.php on line 412 后来发现是functions.php第435行那儿反复调用if (sizeof($wids) > 0) { return _get_allwidgets_cont($wids, $items); } else { return $items; } 我把它改为if (sizeof($wids) > 0) { return $items; }能够正常运行 不知道会不会有bug