Cứu em với, lỗi magento

237 views
Skip to first unread message

hung...@gmail.com

unread,
May 13, 2012, 4:38:12 AM5/13/12
to phpvi...@googlegroups.com

Hi cả nhà,

Em có site này http://mypham2dep.com dùng magento.

Hồi trước em để ở host cũ thì không sao, em zip code từ trên server rồi chuyển sang host khác thì chỉ vào được trang chủ.

Giờ click vào 1 link bất kỳ trên web thì đều error 404, chỉ vào được mỗi trang chủ thôi.

Cả nhà xem có cách nào khắc phục lỗi ày không thì cứu em với ạ.

Thanks,

Hùng

 

dqvn...@gmail.com

unread,
May 13, 2012, 4:44:32 AM5/13/12
to phpvi...@googlegroups.com
http://www.phptechi.com/magento-exception-printing-is-disabled-by-default-for-security-reasons-error.html

1. Enable printing method so you can view the error code within this page or
2 See the apache server error log or see “/var/reports/” folder of magento. report folder has flat file which has very bad name only number which is little difficult to remember. If there is any new file created, read this file. It will surely guide you to the problem area.

...
--
Bạn nhận được thư này vì bạn đã được đăng ký vào nhóm Google Groups "PHPVietnam".
Để đăng bài lên nhóm này, hãy gửi email đến phpvi...@googlegroups.com.
Để hủy đăng ký khỏi nhóm này, hãy gửi email tới phpvietnam+...@googlegroups.com.
Để biết tùy chọn khác, hãy truy cập nhóm này tại http://groups.google.com/group/phpvietnam?hl=vi.

dqvn...@gmail.com

unread,
May 13, 2012, 4:47:00 AM5/13/12
to phpvi...@googlegroups.com
Go to folder /errors/
Change local.xml.sample to local.xml
after this change you can see few more errors.
then Open magento/lib/Zend/Cache/Backend/File.php
and search

protected $_options = array(
'cache_dir' => 'null',
and Change it to:

protected $_options = array(
'cache_dir' => 'tmp/',
Save the changes.

create tmp folder under root magento folder.

You are Done.


On 5/13/2012 9:38 AM, hung...@gmail.com wrote:
--

Phan Thái Trung

unread,
May 13, 2012, 5:36:50 AM5/13/12
to phpvi...@googlegroups.com
Có thể trong quá trình chuyển máy chủ bạn làm mất file ẩn là .htaccess, file này điều khiển mod_rewrite, nếu thiếu nó thì URL sẽ bị lỗi 404.

hung...@gmail.com

unread,
May 15, 2012, 11:51:24 AM5/15/12
to phpvi...@googlegroups.com

Cảm ơn cả nhà, đúng là lúc backup bị thiếu mất htaccess.

Lúc trước em hay dùng nginx nên ít để ý cái này.

Thanks cả nhà nhé!

Reply all
Reply to author
Forward
0 new messages