简体   繁体   English

网站未选择样式。从活动服务器移至localhost后,Joomla网站变形

[英]Site not picking styles.Joomla Site deformed after moving to localhost from live server

I have moved my joomla website from my live server where I had hosted it to localhost.What I did is I just moved the files to directory C:\\\\xampp\\htdocs\\mysite_folder_here . 我已经将我的joomla网站从托管它的实时服务器移到了本地主机。我所做的只是将文件移到目录C:\\\\xampp\\htdocs\\mysite_folder_here Thereafter I edited the configuration.php file to match the details for the localhost for example database name,server username and password. 之后,我编辑了configuration.php文件以匹配本地主机的详细信息,例如数据库名称,服务器用户名和密码。 From here I navigated to the website 127.0.0.1/mysite_folder_here but the site I get is very deformed.It is like css for the template is not being picked. 从这里我导航到127.0.0.1/mysite_folder_here网站,但我得到的网站非常变形,就像没有选择模板的css。 How can I resolve this? 我该如何解决?

part my configuration.php code is : 我的configuration.php代码的一部分是:

public $offline = '0';
public $offline_message = 'This site is down for maintenance.<br /> Please check back again soon.';
public $display_offline_message = '1';
public $offline_image = '';
public $sitename = 'Micro Portal';
public $captcha = '0';
public $list_limit = '20';
public $access = '1';
public $debug = '0';
public $debug_lang = '0';
public $dbtype = 'mysql';
public $host = 'localhost';
public $user = 'Colo_Coder';
public $password = '*@#CoLo?/\2016||~!CODER_100%__-#';
public $db = 'wwwyut_myportal_db';

When you change the server you need to change the tmp and logs file location in configuration.php too. 更改服务器时,您还需要更改tmp并在configuration.php中记录文件位置。

Also you could simply have used Akeeba Backup . 您也可以只使用Akeeba Backup That would have made your work more easier. 那会使您的工作更加轻松。

  1. Check the max_execution time in your php.ini file. 检查您的php.ini文件中的max_execution时间。 I keep it around 300. 我保持在300左右。
  2. Check if output_buffering is off. 检查output_buffering是否关闭。
  3. Short open tags is off etc in php.ini file. 短打开标记在php.ini文件中关闭等。

Basically during Joomla installation whatever requirements are there all should be fulfilled. 基本上,在安装Joomla期间,应该满足所有要求。

It is like css for the template is not being picked. 就像没有选择模板的css。 How can I resolve this? 我该如何解决?

Maybe there's a path in your template settings or CSS file, or hard-coded into your template itself which needs updating as well. 模板设置或CSS文件中可能存在路径,或者硬编码到模板本身中也需要更新。

To help pinpoint this you could go to your live site, then use web inspector and look for warnings for missing files. 为了帮助查明这一点,您可以访问您的实时站点,然后使用Web检查器查找丢失文件的警告。

If this doesn't help you could temporarily change your template to Beez3 or Protostar. 如果这样做没有帮助,您可以暂时将模板更改为Beez3或Protostar。 You can be confident that those templates are good so if you see any issues with them it's likely migration or server related. 您可以确信这些模板很好,因此,如果您发现它们有任何问题,则可能与迁移或服务器相关。

Good luck! 祝好运!

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

相关问题 移动Joomla后出现错误! 网站从本地主机到实时服务器 - Errors after moving Joomla! website to live server from localhost 将站点从本地主机移动到实时服务器时出现 Wordpress 错误 - Wordpress error while moving site from localhost to live server 将我的Codeigniter站点从实时服务器移动到本地主机时出现问题 - Problem in moving my Codeigniter site from live server to localhost 使用GoDaddy cPanel将Wordpress网站从本地主机移动到实时服务器 - Moving wordpress site from localhost to live server using GoDaddy cPanel 将WordPress网站从实时移动到本地主机后出现404错误和重定向 - 404 error and redirect after moving wordpress site from live to localhost Joomla 站点组件在将站点从 Server 2003 移动到 Server 2008 后无法正常工作 - Joomla site components are not working after moving site from Server 2003 to Server 2008 Magento网站从实时服务器重定向到localhost - Magento site redirected to localhost from live server 将WordPress网站的更新版本从QA Server移到Live Server的实时站点 - Moving updated version of WordPress site into live site from QA Server to Live Server 在本地服务器上运行Joomla实时站点 - Run Joomla live site on local server 将 wordpress 站点从本地主机迁移到实时服务器的最简单方法是什么 - what is the easiest way to migrate wordpress site from localhost to live server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM