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

How to fix error: the host don't support "__DIR__"
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How to fix error: the host don't support "__DIR__"

How to fix error: the host don't support "__DIR__" 10 years, 11 months ago #9527

  • SA Thuy
I see many customers when they install our templates or modules, they get the error :
"Warning: require_once(__DIR__/...) [function.require-once]: failed to open stream: No such file or directory in file php"
"Fatal error: require_once() [function.require]: Failed opening required '__DIR__/...'"

Because their host don't support "__DIR__". When you see this error, you can fix in 2 ways:
1. Upgrade your host

2. Find your php file that occur this error, edit:

__DIR__

=>
dirname(__FILE__)


Thanks
Last Edit: 10 years, 11 months ago by .
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.20 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