我试图将一个实时网站移动到本地主机上进行测试,但无法加载该网站。当我转到localhost:8888/example时,我的浏览器无限期地加载页面,并且只显示一个空白的白色页面。
我从live迁移到local的步骤来自本教程
>
配置wp-config.php
定义('DB_NAME','myDatabase');定义('DB_USER','myUserName');定义('DB_PASSWORD','myPassword');定义('DB_HOST','localhost:8888');
导航到localhost:8888/example
然后,什么都没有发生。
以下是apache_error.log结果
[Wed Jul 25 08:08:14 2018] [notice] Digest: generating secret for digest authentication ...
[Wed Jul 25 08:08:14 2018] [notice] Digest: done
[Wed Jul 25 08:08:14 2018] [notice] FastCGI: process manager initialized (pid 14761)
[Wed Jul 25 08:08:14 2018] [notice] Apache/2.2.34 (Unix) mod_wsgi/3.5 Python/2.7.13 PHP/7.2.1 mod_ssl/2.2.34 OpenSSL/1.0.2j DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.24.0 configured -- resuming normal operations
[Wed Jul 25 08:13:48 2018] [notice] caught SIGTERM, shutting down
[Wed Jul 25 08:13:56 2018] [notice] Digest: generating secret for digest authentication ...
[Wed Jul 25 08:13:56 2018] [notice] Digest: done
[Wed Jul 25 08:13:56 2018] [notice] FastCGI: process manager initialized (pid 15305)
[Wed Jul 25 08:13:56 2018] [notice] Apache/2.2.34 (Unix) mod_wsgi/3.5 Python/2.7.13 PHP/7.2.1 mod_ssl/2.2.34 OpenSSL/1.0.2j DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.24.0 configured -- resuming normal operations
... 以及php_错误的结果。日志
[25-Jul-2018 15:10:59 Europe/London] PHP Notice: icit_srdb::recursive_unserialize_replace(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Requests_Utility_CaseInsensitiveDictionary" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /Applications/MAMP/htdocs/far/srdb.class.php on line 755
[25-Jul-2018 15:10:59 Europe/London] PHP Notice: icit_srdb::recursive_unserialize_replace(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Requests_Utility_CaseInsensitiveDictionary" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /Applications/MAMP/htdocs/far/srdb.class.php on line 755
[25-Jul-2018 15:10:59 Europe/London] PHP Notice: icit_srdb::recursive_unserialize_replace(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Requests_Utility_CaseInsensitiveDictionary" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /Applications/MAMP/htdocs/far/srdb.class.php on line 755
[25-Jul-2018 15:10:59 Europe/London] PHP Notice: icit_srdb::recursive_unserialize_replace(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Requests_Utility_CaseInsensitiveDictionary" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /Applications/MAMP/htdocs/far/srdb.class.php on line 755
[25-Jul-2018 15:10:59 Europe/London] PHP Notice: icit_srdb::recursive_unserialize_replace(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Requests_Utility_CaseInsensitiveDictionary" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /Applications/MAMP/htdocs/far/srdb.class.php on line 755
[25-Jul-2018 14:12:35 UTC] PHP Warning: require_once(/Applications/MAMP/htdocs/example/gd-config.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/example/wp-config.php on line 84
[25-Jul-2018 14:12:35 UTC] PHP Fatal error: require_once(): Failed opening required '/Applications/MAMP/htdocs/example/gd-config.php' (include_path='.:/Applications/MAMP/bin/php/php7.2.1/lib/php') in /Applications/MAMP/htdocs/example/wp-config.php on line 84
我按照janmyszkier的指示解决了这个问题。首先,我添加了gd配置。php到正确的目录。其次,我按照以下说明更正了浏览器错误SSL\u error\u RX\u RECORD\u过长。
更新:这使我的站点在本地启动并运行,但SSL错误的解决方案仅限于没有JavaScript功能,因为它创建了一个不安全的SHA-1证书。
你也可以使用“复制插件”。这很容易,也很快。
请查看以下链接。。。https://wordpress.org/plugins/duplicator/
从localhost迁移WP到生活的最简单方法,反之亦然
https://wordpress.org/plugins/all-in-one-wp-migration/
你导出所有内容,创建本地版本的WP,安装插件,然后用这个插件从live page导入以前导出的wpress文件,完成后,确认永久链接两次,应该就是这样了
它将迁移您的代码以及您的数据库
两个月来,我一直在修改wordpress网站的本地版本。 所有的更改都是在我的本地主机版本上的自定义主题目录中进行的,例如custom-template-page-functions.php和style.css。 当我在localhost网站上工作时,live网站得到了更多的文章和内容。 现在我想知道什么是最有感情的方式将这些变化添加到现场。
我正试着在一个熊猫数据目录中加载一个SQLAlchemy。 当我尝试: 我得到一个属性错误: 和 上一个问题SQLAlchemy ORM到pandas DataFrame的转换解决了我的问题,但是解决方案:使用不是我的解决方案。我使用db.session.add()和db.session.commit()打开/关闭会话,但是当我使用时,就会得到一个属性错误:
目前,我们正在使用负载均衡器类型的srecice将外部请求路由到我们的一个pod。 我们希望将其移动到入口类型服务(已经有一个外部负载均衡器设置以及一个入口控制器-并且我们确实有其他Pod配置为通过此入口控制器接收外部请求) 我们现在拥有的是客户端用于外部连接的以下url: 我们想把它移到 这样,我们可以释放负载均衡器IP并且不需要特定的端口。我们确实想在一段时间内同时支持两个url-因为客户端已
我需要避免在Post操作中将注释作为请求参数发送。为此,我需要将其从url移动到正文,但我不知道如何操作。 代码如下:
我定制了这个摄影网站的家庭模板,包括4个div,以突出摄影师的投资组合的4个主要部分。在浏览器或移动设备上调整大小时,它们没有响应。我必须包括什么才能让他们做出反应?(媒体查询最小最大,不一定) 地点:http://jeremy.insctest1.com 其中一个部门: div onhtml="window.location='/投资组合/架构/架构/';"id="item1"style="宽:
图像工作正常localhostsrc="/lr/Public/bootstrap/图像/photo.jpg",但不工作在实时服务器 live server上的错误消息失败404找不到www.mysite。com/lr/public/bootstrap/images/photo。通用域名格式 注意:当我删除/lr/public映像时,它可以在live server上工作 in/home/ad 在pu