Hi,
I tried to include this nice script in one of my templates: http://boedesign.com/lab/ajax-star-rating/
In the template I inserted all commands for the script but I only get a crashed site and an error message like this:
Warning: include(<a href="http://mysite.com/ajax/star_rating/includes/rating_functions.php">http://mysite.com/ajax/star_rating/includes/rating_functions.php</a>) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in /var/www/vhosts/mysite/httpdocs/cms/system/core/core.functions.php(637) : eval()'d code on line 1
Warning: include() [function.include]: Failed opening 'http://mysite.com/ajax/star_rating/includes/rating_functions.php' for inclusion (include_path='.:') in /var/www/vhosts/mysite/httpdocs/cms/system/core/core.functions.php(637) : eval()'d code on line 1
Warning: include(<a href="http://mysite.com/ajax/star_rating/includes/rating_functions.php)">http://mysite.com/ajax/star_rating/includes/rating_functions.php)</a>; [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in /var/www/vhosts/mysite/httpdocs/cms/system/core/core.functions.php(637) : eval()'d code on line 10
Warning: include() [function.include]: Failed opening 'http://mysite.com/ajax/star_rating/includes/rating_functions.php' for inclusion (include_path='.:') in /var/www/vhosts/mysite/httpdocs/cms/system/core/core.functions.php(637) : eval()'d code on line 10
{embed="mysite/header"}
Fatal error: Call to undefined function pullRating() in /var/www/vhosts/mysite/httpdocs/cms/system/core/core.functions.php(637) : eval()'d code on line 48In template preferences I allowed PHP for this template with the output option.
Has anyone an idea?
Thanks and regards…
Moderator’s note: Edited out the name of the system directory. Moved to Tech Support.