Covid-19 Infectiously Continue. We Support with 35% Off All Products
0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

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

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__" 7 years, 4 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: 7 years, 4 months ago by thuygtn.
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.36 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.

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