Lunar New Year 2020 Sale: 35% Off Storewide & Get 50% Off Coupon on 2nd Order!
0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
× IMPORTANT! Vietnam Lunar New Year is all around here! We will have a long vacation (23rd - 30th Jan, 2020), therefore there will be some delays in our response. We'll try to answer you as soon as possible, especially in urgent cases. We will resume to normal on Jan 31st, 2020. Thank you!

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

We do not work from 2020-01-23 to 2020-01-30.

Your time: 00:00:00
Our time: 00:00:00

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__" 6 years, 8 months ago #9527

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: 6 years, 8 months ago by thuygtn.
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.38 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.
Lunar New Year 2020 Sale: 35% Off Storewide & Get 50% Off Coupon on Second Order

Suggested Posts

(/)
Result not found!

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
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes