您的位置:首页 > 其它

又一个错误" Fatal error: Call to undefined function myabp_print_screenshot_all() "

2015-06-05 13:02 941 查看
xxx

( ! ) Fatal error: Call to undefined function myabp_print_screenshot_all() in D:\wamp\www\wp-content\themes\arcadexls\games-play.php on line 135
Call Stack
# Time Memory Function Location
1 0.0000 242504 {main}( ) ..\index.php:0
2 0.0000 245544 require( 'D:\wamp\www\wp-blog-header.php' ) ..\index.php:17
3 0.5312 34037544 require_once( 'D:\wamp\www\wp-includes\template-loader.php' ) ..\wp-blog-header.php:16
4 0.5312 34037632 do_action( ) ..\template-loader.php:12
5 0.5371 34056304 call_user_func_array:{D:\wamp\www\wp-includes\plugin.php:496} ( ) ..\plugin.php:496
6 0.5371 34056384 arcadexls_play_template_redirect( ) ..\plugin.php:496
7 0.5371 34056576 get_template_part( ) ..\template_redirect.php:118
8 0.5371 34057440 locate_template( ) ..\general-template.php:171
9 0.5371 34057624 load_template( ) ..\template.php:477
10 0.5381 34074760 require( 'D:\wamp\www\wp-content\themes\arcadexls\single-play.php' ) ..\template.php:503
11 1.2841 35682784 get_template_part( ) ..\single-play.php:8
12 1.2841 35683488 locate_template( ) ..\general-template.php:171
13 1.2841 35683608 load_template( ) ..\template.php:477
14 1.2851 35752256 require( 'D:\wamp\www\wp-content\themes\arcadexls\games-play.php' ) ..\template.php:503

————————————————————————————————————————————————————————————————————

参考http://myarcadeplugin.com/documentation/developer-guide/

找到原因了

将<?php myabp_print_screenshot_all(130, 130, 'screen_thumb'); ?>替换为<?php myarcade_all_screenshots(130, 130, 'screen_thumb'); ?>

怀疑myabp_print_screenshot_all是之前版本的方法,毕竟官方给的例子都是错误的,见http://myarcadeplugin.com/documentation/developer-guide/

又single-pre-game.php用的是正确的<?php myarcade_all_screenshots(130, 130, 'screen_thumb'); ?>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: