简体   繁体   English

Wordpress管理页面未加载

[英]Wordpress Admin pages are not loading

I'm a complete newbie on WordPress development. 我是WordPress开发的全新手。 I recently developed a WordPress website on my local machine and hosted to a live server. 我最近在我的本地机器上开发了一个WordPress网站并托管到一个实时服务器。 The website works totally fine, but ever since I hosted, the admin panel is not loading up beyond the progress bar as shown in the pic. 该网站工作得很好,但自从我托管以来,管理面板没有超出进度条,如图所示。

I tried using the duplicator plugin for hosting to the live server and since it doesn't work as mentioned above I tried transferring all the files using FTP but the result was same. 我尝试使用duplicator插件托管到实时服务器,因为它不能像上面提到的那样工作,我尝试使用FTP传输所有文件,但结果是相同的。 Can someone help me on this, please? 有人可以帮帮我吗?

The website URL is www.manalodyfamily.com 网站网址为www.manalodyfamily.com

enter image description here 在此输入图像描述

The problem is in charset of db. 问题出在db的charset中。 Open wp-config.php file and just change charset to utf8 & comment the old one. 打开wp-config.php文件,只需将charset更改为utf8并注释旧文件。

define('DB_CHARSET', 'utf8');

Thanks 谢谢

After digging deep found the issue on the Theme used (TESSERACT Theme). 深挖后发现了主题使用的问题(TESSERACT主题)。 There were this line of code which was trying to open up a file, 这行代码试图打开一个文件,

$file_handle = fopen($csvFile, 'r');
        while (!feof($file_handle) ) {
            $line_of_text[] = fgetcsv($file_handle, 1024);
        }

Since the fopen() returned False, the loop went infinite, stopping all further loading of the page. 由于fopen()返回False,循环变为无限,停止所有进一步加载页面。 I could solve it making a minor change 我可以解决它做一个小改动

$file_handle = fopen($csvFile, 'r');
        if($file_handle)
            {
            while (!feof($file_handle) ) {
                $line_of_text[] = fgetcsv($file_handle, 1024);
            }
        fclose($file_handle);
        }

PS: The hosting provider notified me about the size of website getting larger and larger day by day, where It had eaten up 16GB of space in place of 120MB actual required. PS:托管服务提供商通知我网站的规模越来越大,日复一日,它占用了16GB的空间,而不是实际需要的120MB。 This leads me tracking the error log and found the bug inside the theme. 这导致我跟踪错误日志并发现主题中的错误。

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

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