Error installing Rating mod?

Discussion in 'Modules / Plugins / Modifications' started by island1, Dec 18, 2008.

  1. island1 Customer

    I'm having a problem installing the Rating mod. I get this error on the view member page:
    Warning: Smarty error: unable to read resource: "/home/projedk3/public_html//modules/rating/templates/rating.tpl" in /home/projedk3/public_html/includes/classes/smarty/Smarty.class.php on line 1095

    Notice the double slash? Is that the problem? Anyone know how to fix? Thanks
  2. Lhotch curmudgeon

    Modules use different files depending on the version of 68C you are running so just like with any other request for help PLEASE tell us what version o the software you are using.
  3. island1 Customer

    need to change my signature...
    4.0.9
  4. Lhotch curmudgeon

    try replacing these lines you added to your templates......

    {include file="$rating/modules/rating/templates/rating.tpl"}
    {include file="$rating/modules/rating/templates/listing_rating.tpl"}

    with these two.....

    {include file="`$rating`modules/rating/templates/rating.tpl"}
    {include file="`$rating`modules/rating/templates/listing_rating.tpl"}
  5. island1 Customer

    That didn't work.

    Just to review,
    1. I uploaded the contents of zip file to the modules folder.

    2. I enter the appropriate code in my default/member.tpl. Right?

    any thoughts?
  6. Lhotch curmudgeon

    did the error change or is it the same as your original post???
  7. island1 Customer

    same error message
  8. Lhotch curmudgeon

  9. island1 Customer

    oh, yes. I "activated" the module
  10. island1 Customer

    sorry, actually the error message changed to:
    Warning: Smarty error: unable to read resource: "'/home/projedk3/public_html/'modules/rating/templates/rating.tpl"
  11. Lhotch curmudgeon

    Try deleting the contents ot the folder /templates_c
  12. Lhotch curmudgeon

    ok, try these lines insteadis....

    {assign var="rating" value=`$smarty.const.FILESYSTEM_PATH`modules/rating/templates/rating.tpl}<br />{include file="$rating"}

    {assign var="rating" value=`$smarty.const.FILESYSTEM_PATH`modules/rating/templates/listing_rating.tpl}<br />{include file="$rating"}
  13. island1 Customer

    Same error. Both ways respectively.

    Is there a specific place to put the code in the file that could change the result?
  14. Lhotch curmudgeon

    Did you cut and past my code or hand type it in?

    those are "back tics" not single quotes.

    `$smarty.const.FILESYSTEM_PATH`


    Module works fine for me with my added changes.
  15. island1 Customer

    You know what? I just thought that, but alas I changed it and the error remains. Here is the new message:

    Warning: Smarty error: unable to read resource: "/home/projedk3/public_html/modules/rating/templates/rating.tpl"
    in /home/projedk3/public_html/includes/classes/smarty/Smarty.class.php on line 1095
  16. Lhotch curmudgeon

    The path now looks correct so you need to check the permissions on the files/folder for the mod itself.
  17. island1 Customer

    here is copy & paste of what I have entered:

    {assign var="rating" value=`$smarty.const.FILESYSTEM_PATH`}
    {include file="`$rating`modules/rating/templates/rating.tpl"}
  18. Lhotch curmudgeon

    That should still work, but you are now combining both of my recomended changes instead of using 1 or the other.
  19. island1 Customer

    No. I tried all three combinations. Same error.
  20. Lhotch curmudgeon

    The path in the error was incorrect at first, my changes, once you used back tics solved that issue and the path is now correct yet the files still can not be read.......


    have you checked the file permission on the templates like I mentioned? And have you made sure the file is even on the server?

Share This Page