Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

require_once(HTML/Template/ITX.php)

Discussion in 'General Discussion' started by orbwebs, Oct 5, 2008.

  1. orbwebs

    orbwebs Member

    Joined:
    Dec 21, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    I am trying to use PEAR's integrated templates and I am getting this error:

    Warning: require_once(HTML/Template/ITX.php) [function.require-once]: failed to open stream: No such file or directory in /home/island/public_html/xxxx/examples/wda/ch10/example.10-1.php on line 2

    Fatal error: require_once() [function.require]: Failed opening required 'HTML/Template/ITX.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/island/public_html/xxxx/examples/wda/ch10/example.10-1.php on line 2

    I have installed the package HTML_Template_IT and it should be working. How do I fix the problem? Can someone help me ASAP?
    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. rejected

    rejected Well-Known Member

    Joined:
    Sep 19, 2006
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    156
    You need to add /usr/share/pear to the php.ini's include_path. You can find the ini file by looking at phpinfo()
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. orbwebs

    orbwebs Member

    Joined:
    Dec 21, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    i dont have access to php.ini. is there another way to fix it?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,561
    Likes Received:
    42
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    If you have use of the ini_set function, you can use that to modify the include path.

    However, you also state I have installed the package HTML_Template_IT and it should be working. If you performed the install via the PEAR installer in cPanel, then the package is installed in ~/php. Thus you need to add ~/php to your include path.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice