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

Undefined array key "operation" when creating series #326

Closed
mic-men opened this issue Jul 17, 2024 · 3 comments
Closed

Undefined array key "operation" when creating series #326

mic-men opened this issue Jul 17, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@mic-men
Copy link
Contributor

mic-men commented Jul 17, 2024

Describe the bug
When a new series is created, an error is thrown: Undefined array key "operation".
The error is thrown every time the series is selected. Old series are not affected.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new series via the ILIAS GUI.
  2. Only a title is given, everything else is left with default settings.
  3. Save
  4. Error message is shown. The series is created at the OC side.
  5. The series is shown as ILIAS object. When clicking on it the error pops up again.

Expected behavior
The series should be created without error.

Log

Whoops\Exception\ErrorException thrown with message "Undefined array key "operation""

Stacktrace:
#22 Whoops\Exception\ErrorException in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/class.ilObjOpenCastAccess.php:389
#21 ilErrorHandling:handlePreWhoops in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/class.ilObjOpenCastAccess.php:389
#20 ilObjOpenCastAccess:isActionAllowedForRole in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Event/class.xoctEventTableGUI.php:285
#19 xoctEventTableGUI:getOwnerColDefault in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Event/class.xoctEventTableGUI.php:254
#18 xoctEventTableGUI:getAllColumns in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Event/class.xoctEventTableGUI.php:442
#17 xoctEventTableGUI:getSelectableColumns in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Services/Table/classes/class.ilTable2GUI.php:287
#16 ilTable2GUI:determineSelectedColumns in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Services/Table/classes/class.ilTable2GUI.php:173
#15 ilTable2GUI:__construct in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Event/class.xoctEventTableGUI.php:107
#14 xoctEventTableGUI:__construct in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/src/UI/EventTableBuilder.php:84
#13 srag\Plugins\Opencast\UI\EventTableBuilder:table in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Event/class.xoctEventGUI.php:523
#12 xoctEventGUI:getTableGUI in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Event/class.xoctEventGUI.php:518
#11 xoctEventGUI:asyncGetTableGUI in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Event/class.xoctEventGUI.php:401
#10 xoctEventGUI:indexList in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Event/class.xoctEventGUI.php:360
#9 xoctEventGUI:index in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/class.xoctGUI.php:74
#8 xoctGUI:performCommand in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Event/class.xoctEventGUI.php:279
#7 xoctEventGUI:performCommand in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Event/class.xoctEventGUI.php:239
#6 xoctEventGUI:executeCommand in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Services/UICore/classes/class.ilCtrl.php:203
#5 ilCtrl:forwardCommand in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/class.ilObjOpenCastGUI.php:169
#4 ilObjOpenCastGUI:executeCommand in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Services/UICore/classes/class.ilCtrl.php:203
#3 ilCtrl:forwardCommand in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Services/Repository/PluginSlot/class.ilObjPluginDispatchGUI.php:61
#2 ilObjPluginDispatchGUI:executeCommand in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Services/UICore/classes/class.ilCtrl.php:203
#1 ilCtrl:forwardCommand in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Services/UICore/classes/class.ilCtrl.php:178
#0 ilCtrl:callBaseClass in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/ilias.php:24

-- GET Data --

^@ilias\HTTP\Wrapper\SuperGlobalDropInReplacement^@throwOnValueAssignment:
^@ilias\Refinery\KeyValueAccess^@raw_values: Array
(
[baseClass] => ilobjplugindispatchgui
[cmdNode] => pu:pm:18w
[cmdClass] => xoctEventGUI
[ref_id] => 13344
[async] => true
[limit] => 100
)

^@ilias\Refinery\KeyValueAccess^@Trafo: ILIAS\Refinery\KindlyTo\Transformation\StringTransformation Object
(
)

-- POST Data --

^@ilias\HTTP\Wrapper\SuperGlobalDropInReplacement^@throwOnValueAssignment:
^@ilias\Refinery\KeyValueAccess^@raw_values: Array
(
)

^@ilias\Refinery\KeyValueAccess^@Trafo: ILIAS\Refinery\KindlyTo\Transformation\StringTransformation Object
(
)

Environment (please complete the following information):

  • ILIAS version: v8.13
  • PHP version: PHP 8.0.30
  • Plugin version: v8.1.1
  • Opencast version 14.6
  • Browser: Firefox

Additional context
Maybe there is a relation to issue #311 ?

@mic-men mic-men added the bug Something isn't working label Jul 17, 2024
@rfcmaXi
Copy link
Contributor

rfcmaXi commented Jul 18, 2024

Confirmed with Plugin version: v8.1.1 / PHP version: PHP 8.0.30

@rfcmaXi
Copy link
Contributor

rfcmaXi commented Jul 26, 2024

In our test installation, I no longer receive the error after the plugin-update has been executed via CLI Command (without mentioned pr)

@mic-men
Copy link
Contributor Author

mic-men commented Jul 26, 2024

The proposed fix #329 solves the problem in our environment.

okaufman added a commit to ilub-unibe-ch/OpenCast that referenced this issue Aug 5, 2024
* release_8:
  [RELEASE] Version v8.1.3
  [FIX] Undefined array key "operation" when creating series opencast-ilias#326
  Update readme to add CLI update info
  [RELEASE] new Version v8.1.2
  [FIX] cli installation and update
  first try
  text adjustment
  [FIX] unused syntax
  changes according to request
  update index.js
  avoid unchanged acl update by series metadata update, refs opencast-ilias#297
  Issue preventing opening publications -> usage groups and export
  Fix inputs as null in scheduling
  Fix for 311
  prevent start workflow on running events, fixes opencast-ilias#148
  update title with uploaded file name when empty, fixes opencast-ilias#171
  add comment
  linked series listing, fixes opencast-ilias#270 fiexs opencast-ilias#268
@mic-men mic-men closed this as completed Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants