Content Ratings

Content Ratings [Paid] 2.7.6

No permission to buy ($35.00)
We are running PHP Version 5.6.34. We're not running any code protection or restrictions on reflection so far as I know.
Can you open a ticket on https://atelieraphelion.com/ ? I will need to inspect the other add-on's extending the Like handler and see what is happening. This could likely be an add-on conflict.

Is there an equivalent of...
PHP:
$post.sv_categorized_ratings.1
...that applies to a specific rating and not a category?

Something like...
PHP:
$post.sv_rating.1
Yes; $post.sv_ratings.1

Injected variables into the Post entity;
PHP:
* @property array sv_ratings
* @property int visitor_rating_count
* @property int sv_total_ratings
* @property array sv_categorized_ratings
* @property array sv_sent_ratings
* @property int sv_total_sent_ratings
* @property array sv_categorized_sent_ratings
 
Hi Xon, i have been getting errors for a few weeks now, like heaps a day, i have been updating your each release up to 1.1.10. But errors are still coming, around 200 today. Can i confirm that this error is even Content Ratings related please?
Code:
ErrorException: Template error: Cannot call method isOnline on a non-object (NULL) src/XF/Template/Templater.php:926 
Generated by: Unknown account Sep 7, 2018 at 8:25 PM 

Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/home/site2...', 926, Array)
#1 src/XF/Template/Templater.php(926): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l1/s33/public/message_macros.php(255): XF\Template\Templater->method(NULL, 'isOnline', Array)
#3 src/XF/Template/Templater.php(662): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l1/s33/public/post_macros.php(54): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#5 src/XF/Template/Templater.php(662): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array, Array)
#6 internal_data/code_cache/templates/l1/s33/public/thread_view.php(742): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#7 src/XF/Template/Templater.php(1249): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array)
#8 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('public:thread_v...', Array)
#9 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#10 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#11 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#13 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#14 src/XF.php(328): XF\App->run()
#15 index.php(13): XF::runApp('XF\\Pub\\App')
#16 {main}

Request state
array(4) {
  ["url"] => string(21) "/threads/riddle.2704/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Hi Xon, i have been getting errors for a few weeks now, like heaps a day, i have been updating your each release up to 1.1.10. But errors are still coming, around 200 today. Can i confirm that this error is even Content Ratings related please?
Code:
ErrorException: Template error: Cannot call method isOnline on a non-object (NULL) src/XF/Template/Templater.php:926 
Generated by: Unknown account Sep 7, 2018 at 8:25 PM
This is not a Content Rating function. This is a template modification which is blindly calling isOnline on an invalid user object.

While XF does call it inside the message_macros file, it is fairly early. Not towards the end of the file.

@Xon
Any guidelines for settling???
???
 
This is not a Content Rating function. This is a template modification which is blindly calling isOnline on an invalid user object.

While XF does call it inside the message_macros file, it is fairly early. Not towards the end of the file.


???
Any guidelines? Like How can I create new rating types??? How can I set up???
 
Any guidelines? Like How can I create new rating types??? How can I set up???
In the AdminCP; Expand the Content category, in the Content Rating select click Rating Types.

On the Rating Types page, there should be an initial "Add Default Rating Types" button as well as an "add rating type" button.

I've got an update which allows Emoji to be entered for a new rating type, but it is still undergoing testing.
 
This is not a Content Rating function. This is a template modification which is blindly calling isOnline on an invalid user object.

While XF does call it inside the message_macros file, it is fairly early. Not towards the end of the file.


???
Thanks heaps man, it was 1 of 3 things but thanks to you i finally found the issue. Every time a thread is loaded, the server throws the error if a user is a guest within the thread. Cheers mate.
 
Top Bottom