简体   繁体   English

Wordpress在更新主题后返回错误500

[英]Wordpress returns error 500 after update theme

I trying to upload a project in Wordpress, after I created in my local machine, I started to migration to the main host. 我试图在Wordpress上传一个项目,在我的本地机器上创建后,我开始迁移到主机。 So I follow the next steps: 1- Migrate the Database; 所以我按照以下步骤操作:1-迁移数据库; 2- Paste the code; 2-粘贴代码; 3 - Install Theme & Plugins. 3 - 安装主题和插件。 So when I tryed active the plugin: 所以当我尝试激活插件时:

在此输入图像描述

Returns this weird error, its like if some code writed again index.php from my "wp-admin" folder and let them like this: 返回这个奇怪的错误,就像一些代码从我的“wp-admin”文件夹中再次写入index.php并让它们像这样:

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );

After that, when I reload my page, returns 500 error. 之后,当我重新加载页面时,返回500错误。 I try to modified how my .htaccess get the pages in Admin Config but nothing works. 我尝试修改我的.htaccess如何获取Admin Config中的页面,但没有任何效果。

In left side is how Wordpress write the page and in the right side is how is the correct structure. 在左侧是Wordpress如何编写页面,在右侧是如何正确的结构。

在此输入图像描述

Someone with the same problem? 有人有同样的问题吗?

Thanks in advance! 提前致谢!

Possible Issue: Sometimes working environment settings can largely differ with that of your hosts unless you are using a provisioning environment. 可能的问题:除非您使用配置环境,否则有时工作环境设置可能与主机的环境设置有很大不同。 So issues may arise do to the platforms not being idempotent. 因此,对于不是幂等的平台可能会出现问题。

You can try: 你可以试试:

WP-Migrate. WP-迁移。 WP-Migrate helps you migrate your work and tries to keep all settings intact as much as possible including your database. WP-Migrate可帮助您迁移工作,并尽可能保持所有设置的完整性,包括数据库。 It's like the docker of WordPress - if I can say so. 这就像WordPress的码头工人 - 如果我可以这么说的话。

Go about it like this - Download and install WP-Migrate plugin on your local machine. 这样做 - 在本地计算机上下载并安装WP-Migrate插件。 Package and export your site. 打包并导出您的网站。

On you main host install a any default theme, then install WP-Migrate plugin, import your site and follow the instructions and hopefully you should be sorted. 在您的主要主机上安装任何默认主题,然后安装WP-Migrate插件,导入您的网站并按照说明操作,希望您应该排序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM