Content Ratings

Content Ratings [Paid] 2.7.6

No permission to buy ($35.00)
I'll see if there is anything I can do to improve compatibility with Themehouse styles, was this a UI.X style? Otherwise is it is a bespoke solution it will be hard for me to develop a fix.

Given the time of year, it might take some time before I can look at it.
Thank you! Yes it was, IO style to be more specific!
 
After removing the addon and installing XF2.1:

Server error log
Code:
ErrorException: Template error: Template public:news_feed_item_post_rating is unknown src/XF/Template/Templater.php:610
Generated by: Unknown account Jan 1, 2019 at 8:04 AM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Template public...', '/var/www/vhosts...', 610, Array)
#1 src/XF/Template/Templater.php(610): trigger_error('Template public...', 512)
#2 src/XF/Template/Templater.php(561): XF\Template\Templater->getTemplateData('public', 'news_feed_item_...')
#3 src/XF/Template/Templater.php(1292): XF\Template\Templater->getTemplateCode('public', 'news_feed_item_...')
#4 src/XF/NewsFeed/AbstractHandler.php(102): XF\Template\Templater->renderTemplate('news_feed_item_...', Array)
#5 src/XF/Entity/NewsFeed.php(79): XF\NewsFeed\AbstractHandler->render(Object(XF\Entity\NewsFeed))
#6 [internal function]: XF\Entity\NewsFeed->render()
#7 src/XF/Template/Templater.php(977): call_user_func_array(Array, Array)
#8 internal_data/code_cache/templates/l2/s2/public/news_feed_macros.php(34): XF\Template\Templater->method(Object(XF\Entity\NewsFeed), 'render', Array)
#9 src/XF/Template/Templater.php(693): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Array)
#10 internal_data/code_cache/templates/l2/s2/public/news_feed_macros.php(14): XF\Template\Templater->callMacro('news_feed_macro...', 'feed_item', Array, Array)
#11 src/XF/Template/Templater.php(693): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Array)
#12 internal_data/code_cache/templates/l2/s2/public/member_latest_activity.php(34): XF\Template\Templater->callMacro('news_feed_macro...', 'feed_row', Array, Array)
#13 src/XF/Template/Templater.php(1293): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#14 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('member_latest_a...', Array)
#15 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#16 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XF:Member\\Lates...', 'public:member_l...', Array)
#17 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#18 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#19 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#20 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#21 src/XF.php(392): XF\App->run()
#22 index.php(20): XF::runApp('XF\\Pub\\App')
#23 {main}

Request state
array(4) {
  ["url"] => string(42) "/members/world-news.18/latest-activity"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

how do I fix this issue?
 
The latest activity bits will age out after a few days or so, alternatively you can manually prune to news feed with some SQL (which I don't have off the top of my head).
 
On XF v 2.0.12 I've tried to upgrade from Content Ratings 1.2.5 to 1.3.12. Initially this was done through the browser but I've also tried the CLI - error shown below

Code:
[]# php cmd.php xf-addon:upgrade SV/ContentRatings

An exception occurred: [ErrorException] [E_WARNING] array_key_exists() expects parameter 2 to be array, boolean given in src/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php on line 98
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] arr...', '/var/www/sypath...', 98, Array)
#1 src/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php(98): array_key_exists('xf[data_codeEve...', false)
#2 src/XF/DataRegistry.php(113): Doctrine\Common\Cache\CacheProvider->fetchMultiple(Array)
#3 src/XF/DataRegistry.php(81): XF\DataRegistry->readFromCache(Array, Array)
#4 src/XF/DataRegistry.php(225): XF\DataRegistry->get(Array)
#5 src/XF/App.php(1442): XF\DataRegistry->offsetGet('codeEventListen...')
#6 src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container))
#7 src/XF/App.php(1256): XF\Container->offsetGet('extension.liste...')
#8 src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container))
#9 src/XF/App.php(2381): XF\Container->offsetGet('extension')
#10 src/XF/App.php(2395): XF\App->extension()
#11 src/XF/App.php(1541): XF\App->fire('app_setup', Array)
#12 src/XF/Cli/App.php(25): XF\App->setup()
#13 src/XF.php(317): XF\Cli\App->setup(Array)
#14 src/XF/Cli/Runner.php(50): XF::setupApp('XF\\Cli\\App')
#15 cmd.php(15): XF\Cli\Runner->run()
#16 {main}

Any advice gratefully received.
 
@hqarrse this looks like an issue with XF, & caching. I'ld recommend posting in the XF support selection about it.

Try disabling your cache solution for now, and it should work.
 
I got this error on new install 1.3.12
Code:
Error: Call to undefined method SV\ContentRatings\Setup::alterTable() src/addons/SV/ContentRatings/Setup.php:644
Code:
#0 src/addons/SV/ContentRatings/Setup.php(52): SV\ContentRatings\Setup->getAlterTables()
#1 src/XF/AddOn/StepRunnerInstallTrait.php(60): SV\ContentRatings\Setup->installStep2(Array)
#2 src/XF/AddOn/StepRunnerInstallTrait.php(27): SV\ContentRatings\Setup->installStepRunner(2, Array)
#3 src/XF/Admin/Controller/AddOn.php(393): SV\ContentRatings\Setup->install(Array)
#4 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\AddOn->actionInstall(Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:AddOn', 'Install', 'html', Object(XF\Mvc\ParameterBag), 'listAddOns', Object(xenMade\ACPE\XF\Admin\Controller\AddOn), NULL)
#6 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(1934): XF\Mvc\Dispatcher->run()
#8 src/XF.php(333): XF\App->run()
#9 admin.php(13): XF::runApp('XF\\Admin\\App')
#10 {main}
 
hi, my addon expired a few weeks ago (i have 1.2.5, but after upgrading to 2.1 b6 I get this error when trying to uninstall the addon:

Code:
InvalidArgumentException: Table 'xf_liked_content' does not exist so cannot be altered in src/XF/Db/Schema/Alter.php at line 38

    XF\Db\Schema\Alter->__construct() in src/XF/Db/SchemaManager.php at line 223
    XF\Db\SchemaManager->newAlter() in src/XF/Db/SchemaManager.php at line 144
    XF\Db\SchemaManager->alterTable() in src/addons/SV/ContentRatings/Setup.php at line 436
    SV\ContentRatings\Setup->uninstallStep5() in src/XF/AddOn/StepRunnerUninstallTrait.php at line 59
    SV\ContentRatings\Setup->uninstallStepRunner() in src/XF/AddOn/StepRunnerUninstallTrait.php at line 26
    SV\ContentRatings\Setup->uninstall() in src/XF/Admin/Controller/AddOn.php at line 635
    XF\Admin\Controller\AddOn->actionUninstall() in src/XF/Mvc/Dispatcher.php at line 321
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
    XF\App->run() in src/XF.php at line 392
    XF::runApp() in admin.php at line 13
 
That version of the add-on does not support XF2.1, which includes uninstalling once XF has been updated. Updating the add-on should fix that.

You need to either uninstall before upgrading or manually edit the uninstaller code to remove the contents of uninstallStep5
 
That version of the add-on does not support XF2.1, which includes uninstalling once XF has been updated. Updating the add-on should fix that.

You need to either uninstall before upgrading or manually edit the uninstaller code to remove the contents of uninstallStep5

It doesn't really make sense for me to upgrade the addon, since I'll have to repurchase it just to uninstall it :\ The latest I can upgrade to is 1.3.11, would that be sufficient to delete it?
 
It doesn't really make sense for me to upgrade the addon, since I'll have to repurchase it just to uninstall it :\ The latest I can upgrade to is 1.3.11, would that be sufficient to delete it?
Yes, that should be sufficient.
 
Is it possible to disable this for XFMG? I didn't install the XFMG extension of content rating, and just realized I can't like any comment in the media section (can like the media itself, though).

(Using Content rating 1.2.4, waiting for XF 2.1 version before upgrade)

Code:
Error: Call to undefined method XFMG\Entity\MediaItem::deltaRatingFixup() src/addons/SV/ContentRatings/Service/Rating/DeltaCounter.php:589


Stack trace
#0 src/addons/SV/ContentRatings/Service/Rating/DeltaCounter.php(507): SV\ContentRatings\Service\Rating\DeltaCounter->processEntityFixups()
#1 src/addons/SV/ContentRatings/Service/Rating/DeltaCounter.php(362): SV\ContentRatings\Service\Rating\DeltaCounter->applyItemChanges(8, Array, Array)
#2 src/addons/SV/ContentRatings/Service/Rating/DeltaCounter.php(340): SV\ContentRatings\Service\Rating\DeltaCounter->processItems(Array, Array)
#3 src/addons/SV/ContentRatings/Service/Rating/DeltaCounter.php(260): SV\ContentRatings\Service\Rating\DeltaCounter->updateContent()
#4 src/addons/SV/ContentRatings/XF/Entity/LikedContent.php(278): SV\ContentRatings\Service\Rating\DeltaCounter->process()
#5 src/XF/Entity/LikedContent.php(105): SV\ContentRatings\XF\Entity\LikedContent->rebuildContentLikeCache()
#6 src/addons/SV/ContentRatings/XF/Entity/LikedContent.php(184): XF\Entity\LikedContent->_postSave()
#7 src/XF/Mvc/Entity/Entity.php(1159): SV\ContentRatings\XF\Entity\LikedContent->_postSave()
#8 src/XF/Repository/LikedContent.php(94): XF\Mvc\Entity\Entity->save()
#9 src/addons/SV/ContentRatings/XF/Repository/LikedContent.php(30): XF\Repository\LikedContent->insertLike('xfmg_comment', 8, Object(Siropu\Chat\XF\Entity\User), true)
#10 src/XF/Repository/LikedContent.php(63): SV\ContentRatings\XF\Repository\LikedContent->insertLike('xfmg_comment', 8, Object(Siropu\Chat\XF\Entity\User), true)
#11 src/XF/ControllerPlugin/Like.php(28): XF\Repository\LikedContent->toggleLike('xfmg_comment', 8, Object(Siropu\Chat\XF\Entity\User))
#12 src/addons/SV/ContentRatings/XF/ControllerPlugin/Like.php(67): XF\ControllerPlugin\Like->actionToggleLike(Object(XFMG\Entity\Comment), '/media/comments...', '/media/comments...', '/media/comments...', NULL)
#13 src/addons/XFMG/Pub/Controller/Comment.php(247): SV\ContentRatings\XF\ControllerPlugin\Like->actionToggleLike(Object(XFMG\Entity\Comment), '/media/comments...', '/media/comments...', '/media/comments...')
#14 src/XF/Mvc/Dispatcher.php(249): XFMG\Pub\Controller\Comment->actionLike(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XFMG:Comment', 'Like', 'json', Object(XF\Mvc\ParameterBag), 'media', Object(XFMG\Pub\Controller\Comment), NULL)
#16 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#17 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#18 src/XF.php(329): XF\App->run()
#19 index.php(13): XF::runApp('XF\\Pub\\App')
#20 {main}
 
Top Bottom