[英]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.
那会使您的工作更加轻松。
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.