1. We apologize for the slow support at the moment. Hugh (cheesegrits) is scheduled for some major back surgery this month to repair two ruptured discs which are severely hampering his ability to work, and one of our stalwart community support members is on vacation for the month. Please bear with us.

require_once() Failed opening required . . .

Discussion in 'Fabrik 2.0 Beta Testing' started by cleone, Jul 31, 2008.

Thread Status:
Not open for further replies.
  1. cleone New Member

    Level: Standard
    Hi,

    I have been getting a slew of these type of errors. Mostly in the form/view templates and plugins. The actual template or plug-in displaying these errors changes some times with subsequent SVN revisions. I am currently running SVN 329 and getting:

    =====================
    Warning: plgContentFabrik::require_once(components/com_fabrik/controller.php) [function.plgContentFabrik-require-once]: failed to open stream: No such file or directory in /vservers/petslistcom/htdocs/plugins/content/fabrik.php on line 148

    Fatal error: plgContentFabrik::require_once() [function.require]: Failed opening required 'components/com_fabrik/controller.php' (include_path='.;c:\php\includes') in /vservers/petslistcom/htdocs/plugins/content/fabrik.php on line 148
    ======================

    Appears to be a relative path issue.

    For the templates, I have been creating my own version of the templates based on the "default" template and hard coding the full path to the specified .php file.

    Is this a know issue or do I need to modify something on my PHP config?

    Chris Leone
  2. rob Administrator

    Level: Community
    Hi

    Try updating from the SVN now, to see if things work ok for you.
    What full paths are you hardcoding in the template?

    Cheers
    Rob
  3. cleone New Member

    Level: Standard
    Just did. Still fails.

    Reviewing the plugins/content/fabrik.php file, it appears that the line:

    require_once('components/com_fabrik/views/'.$view.'/view.html.php');

    is still relative pathed. The require_once()'s before it are all fully qualified. Example:

    require_once(COM_FABRIK_BASE.DS.'components'.DS.'com_fabrik'.DS.'controller.php');

    Chris
  4. rob Administrator

    Level: Community
    ahh missed that one.
    Try now?
  5. cleone New Member

    Level: Standard
    That's the ticket. Fixed.

    Thanks!
    Chris
Thread Status:
Not open for further replies.

Share This Page