【发布时间】:2020-05-24 21:29:59
【问题描述】:
大家好!
我将 Elementor 和 Envato Elements 插件下载到我的 localhost linux mint wordpress 中。 我像往常一样在 wordpress 上设置了永久链接和其他所有内容,然后我开始从 Elements 检查模板工具包,该插件在我决定模板工具包时工作了大约 3 分钟,然后它弯下腰并开始给出以下消息:
**意外错误 抱歉,API 调用出现意外错误:* SyntaxError: JSON.parse: JSON 数据的第 1 行第 1 列出现意外字符。*
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="
刷新页面、清除缓存、停用和重新激活插件、重新删除和安装、重新启动、卸载和重新安装Xampp,等待几个小时,甚至打开和关闭笔记本电脑(所有步骤)几次都没有有所作为。
调试详细信息显示如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Object not found!</title>
<link rev="made" href="mailto:you@example.com" />
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
body { color: #000000; background-color: #FFFFFF; }
a:link { color: #0000CC; }
p, address {margin-left: 3em;}
span {font-size: smaller;}
/*]]>*/--></style>
</head>
<body>
<h1>Object not found!</h1>
<p>
The requested URL was not found on this server.
The link on the
<a href="http://localhost/wordpress/wp-admin/admin.php%3fpage=envato-elements">referring
page</a> seems to be wrong or outdated. Please inform the author of
<a href="http://localhost/wordpress/wp-admin/admin.php%3fpage=envato-elements">that page</a>
about the error.
</p>
<p>
If you think this is a server error, please contact
the <a href="mailto:you@example.com">webmaster</a>.
</p>
<h2>Error 404</h2>
<address>
<a href="/">localhost</a><br />
<span>Apache/2.4.43 (Unix) OpenSSL/1.1.1g PHP/7.4.6 mod_perl/2.0.8-dev Perl/v5.16.3</span>
</address>
</body>
</html>
所以我一直在阅读您的所有文档并在线检查所有可用信息,但不幸的是,我在编码方面没有太多经验并且我无法找到问题的原因(即使它是在我眼皮子底下),所以我想请人帮助我找到解决此错误的方法。
我期待您的帮助,从现在开始,我感谢你们的关注。 最好的祝福 佩德罗·戈多伊
【问题讨论】:
标签: javascript json wordpress api elementor