Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Announcement feed plugin fatal error opening RSS 2.0 #10783

Closed
kaitlinnewson opened this issue Jan 8, 2025 · 0 comments
Closed

Announcement feed plugin fatal error opening RSS 2.0 #10783

kaitlinnewson opened this issue Jan 8, 2025 · 0 comments
Assignees
Labels
Bug:1:Low A bug that does not have a severe consequence or affects a small number of users.
Milestone

Comments

@kaitlinnewson
Copy link
Member

kaitlinnewson commented Jan 8, 2025

Describe the bug
When the announcement feed plugin has been enabled, opening the "RSS 2.0" feed returns a fatal error and doesn't load.

To Reproduce
Steps to reproduce the behavior:

  1. Enable Announcements and create a sample announcement
  2. Enable the Announcement Feed Plugin, update the plugin settings to show on the homepage, and enable the block to appear
  3. Open the "RSS 2.0" link on the journal homepage block
  4. See error

What application are you using?
OJS, OMP or OPS version main

Additional information

[Wed Jan  8 10:00:08 2025] PHP Fatal error:  Uncaught BadMethodCallException: Call to undefined method PKP\announcement\Announcement::getLocalizedTitleFull() in /Users/kaitlinnewson/Code/ojs-main/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php:67
Stack trace:
#0 /Users/kaitlinnewson/Code/ojs-main/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(36): Illuminate\Database\Eloquent\Model::throwBadMethodCallException('getLocalizedTit...')
#1 /Users/kaitlinnewson/Code/ojs-main/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2367): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(PKP\core\SettingsBuilder), 'getLocalizedTit...', Array)
#2 /Users/kaitlinnewson/Code/ojs-main/cache/t_compile/6c4e26be611bb25006764b33ba54abbe6ecd347f^dffa4b086f41c3262529a6eff66e2318ab1a3044_0.plugins-1-plugins-generic-announcementFeed-generic-announcementFeed.rss2.tpl.php(65): Illuminate\Database\Eloquent\Model->__call('getLocalizedTit...', Array)
#3 /Users/kaitlinnewson/Code/ojs-main/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_677e84b4eb2428_46587151(Object(Smarty_Internal_Template))
#4 /Users/kaitlinnewson/Code/ojs-main/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#5 /Users/kaitlinnewson/Code/ojs-main/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#6 /Users/kaitlinnewson/Code/ojs-main/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
#7 /Users/kaitlinnewson/Code/ojs-main/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, '6c4e26be611bb25...', NULL, 1)
#8 /Users/kaitlinnewson/Code/ojs-main/lib/pkp/classes/template/PKPTemplateManager.php(1415): Smarty_Internal_TemplateBase->display('plugins-1-plugi...', NULL, '6c4e26be611bb25...', NULL)
#9 /Users/kaitlinnewson/Code/ojs-main/plugins/generic/announcementFeed/AnnouncementFeedGatewayPlugin.php(167): PKP\template\PKPTemplateManager->display('plugins-1-plugi...')
#10 /Users/kaitlinnewson/Code/ojs-main/pages/gateway/GatewayHandler.php(215): APP\plugins\generic\announcementFeed\AnnouncementFeedGatewayPlugin->fetch(Array, Object(APP\core\Request))
#11 [internal function]: APP\pages\gateway\GatewayHandler->plugin(Array, Object(APP\core\Request))
#12 /Users/kaitlinnewson/Code/ojs-main/lib/pkp/classes/core/PKPRouter.php(329): call_user_func(Array, Array, Object(APP\core\Request))
#13 /Users/kaitlinnewson/Code/ojs-main/lib/pkp/classes/core/PKPPageRouter.php(251): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array, false)
#14 /Users/kaitlinnewson/Code/ojs-main/lib/pkp/classes/core/Dispatcher.php(157): PKP\core\PKPPageRouter->route(Object(APP\core\Request))
#15 /Users/kaitlinnewson/Code/ojs-main/lib/pkp/classes/core/PKPApplication.php(416): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
#16 /Users/kaitlinnewson/Code/ojs-main/index.php(30): PKP\core\PKPApplication->execute()
#17 {main}
  thrown in /Users/kaitlinnewson/Code/ojs-main/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php on line 67

Pull requests

@kaitlinnewson kaitlinnewson added the Bug:1:Low A bug that does not have a severe consequence or affects a small number of users. label Jan 8, 2025
@kaitlinnewson kaitlinnewson added this to the 3.5 Internal milestone Jan 8, 2025
@kaitlinnewson kaitlinnewson self-assigned this Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug:1:Low A bug that does not have a severe consequence or affects a small number of users.
Projects
None yet
Development

No branches or pull requests

1 participant