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
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.
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"}
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?
Did you actually install the module via the module admin interface? http://www.68classifieds.com/documentation/administration/settings/modules
sorry, actually the error message changed to: Warning: Smarty error: unable to read resource: "'/home/projedk3/public_html/'modules/rating/templates/rating.tpl"
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"}
Same error. Both ways respectively. Is there a specific place to put the code in the file that could change the result?
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.
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
The path now looks correct so you need to check the permissions on the files/folder for the mod itself.
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"}
That should still work, but you are now combining both of my recomended changes instead of using 1 or the other.
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?