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

TOPIC:

Use of undefined constant __DIR__ - assumed '__DIR 19 May 2013 09:49 #7207

  • twev
  • twev's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 62
  • Thank you received: 15
I have been trying to test one of my components in 2.5. It works OK in the sandbox but when uploaded to my server I get the following error:

Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in
/httpdocs/j25/administrator/components/com_coursecalendar/helpers/loader.php on line 90

Warning: require_once(__DIR__/mvc.php) [function.require-once]: failed to open stream: No such file or directory in
/httpdocs/j25/administrator/components/com_coursecalendar/helpers/loader.php on line 90

The file mvc.php is there!

Trevor

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

Re: Use of undefined constant __DIR__ - assumed '__DIR 19 May 2013 21:32 #7210

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
This is a problem with your server I think.

Try __DIR__ outside of your component.

__DIR__ only exists with PHP >= 5.3
Coding is now a piece of cake

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

Re: Use of undefined constant __DIR__ - assumed '__DIR 20 May 2013 06:28 #7211

  • twev
  • twev's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 62
  • Thank you received: 15
Yes that will be it - thanks.
It is curently running 5,2.17 so I will upgrade it.

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

  • Page:
  • 1
Time to create page: 0.072 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