Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

Fatal error: require_once()
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Fatal error: require_once()

Fatal error: require_once() 12 years, 1 month ago #8663

Xin chào!

Hiện nay tôi đang gặp trở ngại khi up website lên hosting thì bị lổi như sau:

kehoachkinhdoanh.biz/vn/

Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /home/kehoachkinhdoanh/kehoachkinhdoanh.biz/vn/modules/mod_carousel/mod_carousel.php on line 13

Warning: require_once(__DIR__/helper.php) [function.require-once]: failed to open stream: No such file or directory in /home/kehoachkinhdoanh/kehoachkinhdoanh.biz/vn/modules/mod_carousel/mod_carousel.php on line 13

Fatal error: require_once() [function.require]: Failed opening required '__DIR__/helper.php' (include_path='.:/usr/share/pear/') in /home/kehoachkinhdoanh/kehoachkinhdoanh.biz/vn/modules/mod_carousel/mod_carousel.php on line 13


Ở local vẫn chạy tốt, và sử dụng PHP 5.2

Tôi có đọc bài trước thấy SAsuppor hướng dẫn thay __DIR__ thành __FILE__
Nhưng vẫn bị lổi, mong các anh giúp đở tôi.

Trân trọng
The topic has been locked.

Re: Fatal error: require_once() 12 years, 1 month ago #8669

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Chào bạn,

Lỗi này xảy ra chủ yếu là do host của bạn.

Host bạn không hỗ trợ __DIR__ được sử dụng trong hệ thống. Một số module mặc định của joomla như finder, breadcrumb,...cũng sử dụng __DIR__ trong đó.

Có hai cách bạn có thể khắc phục ở đây.

1. Bạn có thể nâng cấp host

2. Bạn có thể vào các module có sử dụng __DIR__ thay thế bằng dirname(__FILE__)

Thanks
Ticket System | Join our Clubs to download our extensions and templates
The topic has been locked.

Re: Fatal error: require_once() 12 years, 1 month ago #8670

Anh vui lòng trả lời rõ ràng giúp chúng tôi
1. Host ko hỗ trợ lả ko hỗ trợ phần nào? và cần nâng cấp cái gì? Chứ hosting đủ thứ hết, anh nói nâng cấp thì biết nâng cấp cái gì bây giờ?

2. Tôi đã thử thay __DIR__ thay thế bằng dirname(__FILE__) nhưng vẫn báo module đó lỗi. Nếu thay mà báo module khác lỗi tương tự thì mới d9uc chứ.

Warning: require_once(/home/kehoachkinhdoanh/kehoachkinhdoanh.biz/vn/modules/mod_carousel/mod_carousel.php/helper.php) [function.require-once]: failed to open stream: Not a directory in /home/kehoachkinhdoanh/kehoachkinhdoanh.biz/vn/modules/mod_carousel/mod_carousel.php on line 13

Fatal error: require_once() [function.require]: Failed opening required '/home/kehoachkinhdoanh/kehoachkinhdoanh.biz/vn/modules/mod_carousel/mod_carousel.php/helper.php' (include_path='.:/usr/share/pear/') in /home/kehoachkinhdoanh/kehoachkinhdoanh.biz/vn/modules/mod_carousel/mod_carousel.php on line 13
The topic has been locked.

Re: Fatal error: require_once() 12 years, 1 month ago #8686

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Chào bạn,

1. Host hỗ trợ đầy đủ nhất từ 5.3 trở lên

2. Bên mình đã hỗ trợ rất nhiều khách hàng thay thế __DIR__ thành dirname(__FILE__) và đều khắc phục được lỗi này. Bạn có thể nói rõ vẫn báo lỗi module đó là lỗi khác hay vẫn lỗi này?

Thanks
Ticket System | Join our Clubs to download our extensions and templates
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.25 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes