Smarty Error

Discussion in 'Installation' started by imagen, Jun 22, 2003.

  1. imagen

    imagen Guest

    I've installed the free version of amember. I got through the setup okay without any errors whatsoever. However, when I go to my admin/index.php page, I get the following message:

    Warning: Smarty error: unable to read template resource: "admin/login.html" in /home/creative/public_html/dwc/member/smarty/Smarty.class.php on line 546

    I've made sure to chmod those directories and files to be read, and I made sure my config.inc.php file didn't have any extra spaces after the ?> tag.

    Any help on fixing this would be greatly appreciated.

    Thanks.

    M.
  2. alex-adm

    alex-adm Guest

    Make sure you have uploaded this file correctly:
    amember/templates/login.html
    Filename case does matter!
  3. Dicky

    Dicky Guest

    where do i find that file, in the downloaded files it isnt included in the package

    where do i find "login.html"?
  4. Dicky

    Dicky Guest

    as further info, i get a page with fill of errors

    is it possible that can't use smarty?
  5. alex-adm

    alex-adm Guest

    edit config.inc.php and
    $config['tpl_cache_level'] = 0;
  6. Ric Oms

    Ric Oms Guest

    :ph34r: anywho just CHMOD (change permission of the tmeplates folder to 777 and it works.
    whew
  7. Guest_Steve

    Guest_Steve Guest

    To be more specific to cover this situation, I changed the templates folder from 755 to 777 with no change.

    Then, without switching the templates folder back to 755, I switched the templates_c folder from 606 - a suggested in the manual - to 777 and I got the proper login page and was able to log in using my username and password.

    Right now - I'm concerned about site security. Should I change the templates folder back to 755?

    Steve
  8. alex-adm

    alex-adm Guest

    Steve, please edit config.inc.php and
    $config['tpl_cache_level'] = 0;

    It is better solution for everyone
  9. I was getting the same, originally mentioned by Dicky, error.

    I did the chmod thing. I found my login.html file, but it is in amember/templates/cookie_login/login.html

    Should I do something about this? Please help me! LOL.
  10. alex-adm

    alex-adm Guest

    Please edit config.inc.php and
    $config['tpl_cache_level'] = 0;

    It is better solution for everyone ;)
  11. Kelsthemes

    Kelsthemes Guest

    :D :p :D B) hey it worked.......cool beans....now to make this thing look like my site.......for the 5th time in 3 weeks.....sure hope this thing works or I want my money back......rofl.....joke....I am using the freebee.....giggles.

    but if I ever get rich I will be sure to get the pro version.

    Kel
  12. blue_pen

    blue_pen Guest

    hi! im just new in PHP..

    it may sound dumb but i couldn't find this file you mentioned to edit..

    *Please edit config.inc.php and
    *$config['tpl_cache_level'] = 0;

    my problem is this:
    Warning: Smarty error: problem creating directory "/home/www/site/var/tmp/templates_c/%%149/%%1496431464" in /home/www/lib/smarty/Smarty.class.php on line 1042

    Warning: Smarty error: problem writing temporary file '/home/www/site/var/tmp/templates_c/%%149/%%1496431464/40da2dc83d968' in /home/www/lib/smarty/Smarty.class.php on line 1042

    Warning: touch(): Unable to create file /home/www/site/var/tmp/templates_c/%%149/%%1496431464/index_free.tpl.php because No such file or directory in /home/www/lib/smarty/Smarty.class.php on line 1575

    Warning: fetch(/home/www/site/var/tmp/templates_c/%%149/%%1496431464/index_free.tpl.php): failed to open stream: No such file or directory in /home/www/lib/smarty/Smarty.class.php on line 1158

    Warning: fetch(): Failed opening '/home/www/site/var/tmp/templates_c/%%149/%%1496431464/index_free.tpl.php' for inclusion (include_path='.:/home/www/lib:/home/www/lib/smarty:/home/www/lib/pear:/home/www/site/htdocs/lib') in /home/www/lib/smarty/Smarty.class.php on line 1158

    May I ask what causes these errors?

    I am using linux server..

    Thanks..
  13. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Sorry, but aMember Free is not supported anymore.
  14. iantresman

    iantresman Guest


    I received a similar error message after installing the Pro version. The file Smarty.class.php was present, but the case of the initial letter was incorrect.

    The problem was caused by my FTP transfer of the files using WS_FTP with the session option "Force lowercase remote filenames" set. After disabling this option, and re-copying and re-installing the files, the problem disappeared.

    Regards,
    Ian
  15. seniorrs

    seniorrs Guest

    fixed

    This problem was fixed

Share This Page