Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2009
    Posts
    2

    Default Failed to open stream: no such file or directory

    At the bottom of the "stieground-j15-76" template I get a message on the website,

    Warning: main(templates.php): failed to open stream: No such file or directory in /home/allround/public_html/Joomla/templates/siteground-j15-76/index.php on line 61.

    The offending line in index.php is

    <p class="copyright"><? $sg = ''; include "templates.php"; ?></p>.

    The installer put 'templates.php' in ../includes/templates.php. Where should the file be located? How can I fix this?

  2. #2

    Default

    According to the code, it should be in the same directory where the script is executing from, which means:

    /home/allround/public_html/Joomla/templates/siteground-j15-76/index.php

  3. #3
    Join Date
    Feb 2009
    Posts
    2

    Default templates.php is in the same directory

    Thank you for the reply. 'Templates.php' is in /home/allround/public_html/Joomla/templates/siteground-j15-76. In that directory are:

    css < directory>
    images < directory>
    params.ini
    template_thumbnail.png
    templateDetails.xml
    templates.php


    Do you have any other possible ideas I might try?

  4. #4

    Default

    Could you please post a ticket to our support team (and refer to this forum post in the body) so we can further check the issue on place. At this moment, I cannot say for sure, why this is happening as I do not have access to the actual files and cannot conduct any tests to investigate the problem and eventually find a solution.

  5. #5
    Join Date
    Nov 2010
    Posts
    1

    Default Same problem with other template

    Hi
    I have the same problem - in the bottom of the page this is displayed:

    Warning: main(templates.php): failed to open stream: No such file or directory in /home/sv_michaelnorredk/Joomla1521/templates/123wd-j15-1/index.php on line 94

    How can I fix this?

  6. #6
    Anatoli Guest

    Default

    The easiest way to fix it is by changing line 94 in index.php

    from:
    <?php $sg = 'banner'; include "templates.php"; ?>
    to:
    <?php $sg = 'banner'; include "xxx/templates.php"; ?>

    xxx should be the absolute path to the template directory, for example:

    /home/user/public_html/joomla/templates/123wd-j15-2

    I will ask our designers to fix this bug in next release.

Similar Threads

  1. VTiger 5.0.4 setup failed - Help desk Ticket required
    By c.barca in forum Other Software and Applications
    Replies: 1
    Last Post: 05-14-2009, 03:13 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •