• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

AMS and DailyStatistics Conflict

Itworx4me

New Member
AMS Premium
CAS Premium
EMS Early Adopter
LD Premium
RMS Premium
SC Premium
TS Premium
Pick'em
Sportsbook
AMS Version
2.3.11
XenForo Version
2.3.6
PHP Version
8.4.5
Database & Version
10.6.22
Are there any errors being throw?
Yes
Both Ams and DailyStatistics coexisted before I upgraded to AMS 2.3.11.
After upgrading I get this error:
Code:
Server error log
ErrorException: Template error: [E_USER_WARNING] Method canViewAmsArticles is not callable on the given object (SV\DailyStatistics\XF\Entity\User) src/XF/Template/Templater.php:1277
Generated by: Unknown account Jun 30, 2025 at 5:21 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/nginx/dom...', 1277)
#1 src/XF/Template/Templater.php(1277): trigger_error('Method canViewA...', 512)
#2 internal_data/code_cache/navigation_cache.php(309): XF\Template\Templater->method(Object(SV\DailyStatistics\XF\Entity\User), 'canViewAmsArtic...', Array)
#3 src/XF/Template/Templater.php(8150): XF\Pub\App->{closure:internal_data/code_cache/navigation_cache.php:3}(Object(SV\StandardLib\XF\Template\Templater), 'forums', Array)
#4 src/XF/Pub/App.php(634): XF\Template\Templater->renderNavigationClosure(Object(Closure), 'forums', Array)
#5 src/XF/Pub/App.php(585): XF\Pub\App->getNavigation(Array, 'forums')
#6 src/XF/App.php(2573): XF\Pub\App->renderPageHtml('





 




 
    ...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#7 src/XF/Mvc/Dispatcher.php(414): XF\App->renderPage('





 




 
    ...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#8 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#9 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#10 src/XF.php(806): XF\App->run()
#11 index.php(23): XF::runApp('XF\\Pub\\App')
#12 {main}
Request state
array(4) {
  ["url"] => string(1) "/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Not sure which addon is at fault for the error
 
This could easily have been due to a race condition during upgrade (since it involves the XF Navigation System and Cached Templates.

Was this a one off error or is it constantly being thrown? And by one off, I mean there could be multiple instances of the error, but only thrown during the upgrade and has since stopped.
 
Looks to be a one off error. Thanks for clarifying
 
  • Like
Reactions: Bob
Back
Top