Fatal error: Uncaught ParseError: syntax error, unexpected end of file, expecting "elseif" or "else" or "endif" in /www/wwwroot/yxx.rantiyu.com/cache/templates/c51370b34a149e30c2ef0fed2dfe214c.php:98
Stack trace:
#0 /www/wwwroot/yxx.rantiyu.com/includes/core/Template.php(115): include()
#1 /www/wwwroot/yxx.rantiyu.com/includes/core/Template.php(148): App\Core\Template->render()
#2 /www/wwwroot/yxx.rantiyu.com/public/index.php(1091): App\Core\Template->display()
#3 {main}
Next RuntimeException: 模板渲染错误(line 98): syntax error, unexpected end of file, expecting "elseif" or "else" or "endif"
编译文件: /www/wwwroot/yxx.rantiyu.com/cache/templates/a9c4f59dda4acf6b7673414846913d0d.php
附近代码:
94: <?php $_tmpl_loop_stack[] = ['item' => 'tag', 'total' => is_countable($tags) ? count($tags) : 0];foreach ($tags as $_tmpl_loop_key => $tag): $_tmpl_loop_data = &$_tmpl_loop_stack[count($_tmpl_loop_stack) - 1]; ?>
95: <a href="<!-- Template Error: function getTagUrl() is not allowed -->" class="gp-tag size-<?php if ($tag['count'] > 50): ?>4<?php elseif ($tag['count'] > 20): ?>3<?php elseif ($tag['count'] > 5): ?>2<?php else: ?>1<?php endif; ?>"><?php echo htmlspecialchars((string)($tag['name'] ?? ''), ENT_QUOTES, 'UTF-8'); ?> (<?php echo htmlspecialchars((string)($tag['count'] ?? ''), ENT_QUOTES, 'UTF-8'); ?>)</a>
96: <?php endforeach; array_pop($_tmpl_loop_stack); ?>
97: </div>
>>> 98: <?php else: ?>
99: <div style="text-align:center;padding:60px 20px;color:var(--gp-text-secondary);">
100: <i class="fas fa-tags" style="font-size:3rem;opacity:0.2;display:block;margin-bottom:16px;"></i>
101: 暂无标签
102: </div>
103: <?php endif; ?>
in /www/wwwroot/yxx.rantiyu.com/includes/core/Template.php:128
Stack trace:
#0 /www/wwwroot/yxx.rantiyu.com/includes/core/Template.php(148): App\Core\Template->render()
#1 /www/wwwroot/yxx.rantiyu.com/public/index.php(1091): App\Core\Template->display()
#2 {main}
thrown in /www/wwwroot/yxx.rantiyu.com/includes/core/Template.php on line 128