Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

[SOLVED] __DIR__ undefined constant 15 Jul 2013 22:32 #10469

Hi, i try to install the component downloaded from the builder but displayed this error:

Warning: require_once(__DIR__/mvc.php) [function.require-once]: failed to open stream: No such file or directory in /home/mygroup/public_html/BCI/administrator/components/com_inversiones/helpers/loader.php on line 117

Fatal error: require_once() [function.require]: Failed opening required '__DIR__/mvc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mygroup/public_html/BCI/administrator/components/com_inversiones/helpers/loader.php on line 117

I have Joomla 2.5.

Please Log in or Create an account to join the conversation.

[SOLVED] __DIR__ undefined constant 15 Jul 2013 22:48 #10471

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Your php does not interpret __DIR__

stackoverflow.com/questions/14653947/php...tant-dir-assumed-dir
if (!defined('__DIR__')) {
    define('__DIR__', dirname(__FILE__));
}
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

[SOLVED] __DIR__ undefined constant 15 Jul 2013 22:57 #10472

Yes, I tried it on another server with an updated version of php and it worked.
Sorry.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.105 seconds

I jumped and started to work on a demo component... but 2 days later this demo component became the real component. I just showed today the end result to my customer and he turned to me and said... "this is more than I expected"... All of this is because Cook did cut about 70% of my work and provided me more ways to improve the usability of the component. The end result was 17 tables all related between than to generate a full dashboard for the travel agents. Thanks for Cook developers for such great tool. This component would not be possible to be done at short time with all the features in it
Griiettner (Forum)  

Get Started