Content Ratings for XF2.1+ Media Gallery

Content Ratings for XF2.1+ Media Gallery 2.1.0

No permission to download
oh no, that other add-on isn't free, looks like i can't make my own dislike button after all, :(

oh well
 
Please post a full stack trace from the admincp, the simple error message isn't helpful on debugging this.
 
Yes, this add-on adds an importer which can migrate XF1 Post Rating contents to this add-on's format
 
I know you haven't upgraded this to support xenforo 2.1 but I upgraded and getting an error. Would love if you update add as well.

Code:
Error: Call to undefined method XFMG\Entity\MediaItem::canLike() src/addons/SV/ContentRatings/Entity/Ratable.php:301
Generated by: Unknown account Jan 31, 2019 at 5:10 AM
Stack trace
#0 src/addons/SV/ContentRatings/Entity/Ratable.php(284): SV\ContentRatingsXFMG\XFMG\Entity\MediaItem->canLike(NULL)
#1 [internal function]: SV\ContentRatingsXFMG\XFMG\Entity\MediaItem->canRate()
#2 src/XF/Template/Templater.php(978): call_user_func_array(Array, Array)
#3 internal_data/code_cache/templates/l1/s16/public/xfmg_media_view.php(312): XF\Template\Templater->method(Object(SV\ContentRatingsXFMG\XFMG\Entity\MediaItem), 'canRate', Array)
#4 src/XF/Template/Templater.php(1294): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array)
#5 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfmg_media_view', Array)
#6 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#7 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XFMG:Media\\View', 'public:xfmg_med...', Array)
#8 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#11 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#12 src/XF.php(390): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
  ["url"] => string(39) "/forum/media/i-adore-this-picture.2158/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Hey Xon-

Here to report similar issue to what I reported on for resource manager. There are a few template modification bugs. Fixes shown below (- is current + is fixed)

svContentRatingsXFMG_xfmg_album_view_a
Code:
-<xf:macro template="sv_contentratings_macros" name="rating_bar"        arg-entity="{$2}" arg-reactRoute="$3/react" arg-reactionsListRoute="$3/$4"  />
+<xf:macro template="sv_contentratings_macros" name="rating_bar"        arg-entity="{$2}" arg-reactRoute="$3/albums/react" arg-reactionsListRoute="$3/$4"  />

svContentRatingsXFMG_xfmg_album_view_b
Code:
-<xf:macro template="sv_contentratings_macros" name="rating_bar"        arg-entity="{$4}" arg-reactRoute="$5/$6" arg-reactionsListRoute="$5/reactions" />
+<xf:macro template="sv_contentratings_macros" name="rating_bar"        arg-entity="{$4}" arg-reactRoute="$5/$6" arg-reactionsListRoute="$5/albums/reactions" />

svContentRatingsXFMG_xfmg_comment_macros_a
Code:
-<xf:macro template="sv_contentratings_macros" name="rating_bar"        arg-entity="{$2}" arg-reactRoute="$3/react" arg-reactionsListRoute="$3/$4"  />
+<xf:macro template="sv_contentratings_macros" name="rating_bar"        arg-entity="{$2}" arg-reactRoute="$3/comments/react" arg-reactionsListRoute="$3/$4"  />

svContentRatingsXFMG_xfmg_comment_macros_b
Code:
-<xf:macro template="sv_contentratings_macros" name="rating_bar"        arg-entity="{$4}" arg-reactRoute="$5/$6" arg-reactionsListRoute="$5/reactions" />
+<xf:macro template="sv_contentratings_macros" name="rating_bar"        arg-entity="{$4}" arg-reactRoute="$5/$6" arg-reactionsListRoute="$5/comments/reactions" />

Thanks for the update on the resource manager addon.
 
Back
Top Bottom