{"action":"opened","issue":{"url":"https://api.github.com/repos/typecho/typecho/issues/523","repository_url":"https://api.github.com/repos/typecho/typecho","labels_url":"https://api.github.com/repos/typecho/typecho/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/typecho/typecho/issues/523/comments","events_url":"https://api.github.com/repos/typecho/typecho/issues/523/events","html_url":"https://github.com/typecho/typecho/issues/523","id":198277228,"number":523,"title":"/var/Typecho/Common.php:235","user":{"login":"sing","id":23738539,"avatar_url":"https://avatars.githubusercontent.com/u/23738539?v=3","gravatar_id":"","url":"https://api.github.com/users/sing","html_url":"https://github.com/sing","followers_url":"https://api.github.com/users/sing/followers","following_url":"https://api.github.com/users/sing/following{/other_user}","gists_url":"https://api.github.com/users/sing/gists{/gist_id}","starred_url":"https://api.github.com/users/sing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sing/subscriptions","organizations_url":"https://api.github.com/users/sing/orgs","repos_url":"https://api.github.com/users/sing/repos","events_url":"https://api.github.com/users/sing/events{/privacy}","received_events_url":"https://api.github.com/users/sing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-01T18:45:57Z","updated_at":"2017-01-01T18:45:57Z","closed_at":null,"body":"`\r\nFatal error: Uncaught TypeError: Argument 1 passed to Typecho_Common::exceptionHandle() must be an instance of Exception, instance of ParseError given in /var/Typecho/Common.php:235 Stack trace: #0 [internal function]: Typecho_Common::exceptionHandle(Object(ParseError)) #1 {main} thrown in /var/Typecho/Common.php on line 235\r\n`\r\n一切运行正常,但是一但访问分类页面就会报错。\r\nphp版本是7.0.14\r\n\r\n下面是我的archive.php源代码。不知道哪里出错了。但是在低版本的PHP中可以运行。\r\n\r\n`\r\n<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>\r\n<?php $this->need('header.php'); ?>\r\n      \r\n\r\n<div class=\"archive-header\">\r\n\r\n<div class=\"archive-meta clearfix\">\r\n<h3 class=\"archive-title\">\r\n<?php $this->archiveTitle(array(\r\n            'category'  =>  _t('%s'),\r\n            'search'    =>  _t('包含关键字 %s 的文章'),\r\n            'tag'       =>  _t('%s'),\r\n            'author'    =>  _t('%s 发布的文章')\r\n        ), '', ''); ?>\r\n</h3>\r\n<?php if ($this->have()): ?>\r\n\r\n\r\n<span>\r\n<?php if ($this->is('tag')) : ?>\r\n<?php $this->archiveTitle(array('tag' =>  _t('The following articles contain tags:%s')), '', ''); ?>\r\n<?php endif; ?>\r\n\r\n<?php if ($this->is('category')) : ?>\r\n<?php echo $this->getDescription(); ?>\r\n<?php endif; ?>\r\n\r\n</span>\r\n</div><!-- End .archive-meta .clearfix -->\r\n</div><!-- End .archive-meta -->\r\n\r\n\r\n\r\n\r\n\t<div class=\"wrapper\">\r\n        <div class=\"container\">\r\n\r\n    \t<?php while($this->next()): ?>\r\n            <article class=\"post-list\">\r\n    \t\t\t<h2 class=\"post-title\"><a href=\"<?php $this->permalink() ?>\"><?php $this->title() ?></a></h2>\r\n                <div class=\"post-meta\"><?php $this->date('F j, Y'); ?></div>\r\n                <div class=\"post-content\"><?php $this->excerpt('120','...'); ?></div>\r\n    \t\t</article>\r\n    \t<?php endwhile; ?>\r\n\t\t\t\r\n\t\t    <div class=\"page-number\">\r\n\t<?php $this->pageLink('<span>上一页</span>'); ?>\r\n\t<?php $this->pageLink('<span>下一页</span>','next'); ?>\r\n\t</div>\r\n\r\n\r\n\t</div><!-- end .container -->\r\n\r\n\t<?php else: ?>\r\n\t\t</div> <!-- 404 archive-meta clearfix -->\r\n\t\t</div> <!-- 404 archive-header-->\r\n   <div class=\"wrapper\">\r\n        <div class=\"container\">\r\n\t\t\r\n            <article class=\"post\" style=\"text-align: center;\">\r\n               <?xml version=\"1.0\" standalone=\"no\"?><!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"><svg t=\"1483108857854\" class=\"icon\" style=\"\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"1575\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"140\" height=\"140\"><defs><style type=\"text/css\"></style></defs><path d=\"M480.219 126.79c-155.846 117.936-58.031 213.954-133.824 481.518-29.104 102.74-86.032 168.71-132.82 217.13-75.063 77.678-149.732 97.379-149.732 97.379 703.44-15.249 804.9-350.044 816.133-571.06C891.281 129.352 636.064 8.856 480.22 126.791z m53.66 237.563c-16.807 0-30.432-16.845-30.432-37.628 0-20.781 13.625-37.627 30.433-37.627 16.809 0 30.434 16.846 30.434 37.627 0 20.783-13.626 37.628-30.434 37.628z m78.575 175.964c-25.975 0-47.034-26.756-47.034-59.761s21.059-59.761 47.034-59.761c25.977 0 47.035 26.756 47.035 59.76 0 33.006-21.058 59.762-47.035 59.762z m99.603-175.964c-16.808 0-30.434-16.845-30.434-37.628 0-20.781 13.626-37.627 30.434-37.627s30.433 16.846 30.433 37.627c0 20.783-13.625 37.628-30.433 37.628z\" p-id=\"1576\"></path></svg>\r\n\t\t\t   <p>暂时木有任何发现</p>\r\n            </article>\r\n\t\t\t\r\n      </div>\r\n      \r\n    <?php endif; ?>\r\n\r\n\r\n\r\n\t<?php $this->need('sidebar.php'); ?>\r\n\t<?php $this->need('footer.php'); ?> \t\r\n\t\t\r\n\t\t\r\n\r\n \r\n \r\n`"}}
{"actor":{"display_login":"sing"}}