Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S SobiPro
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Sigsiu.NET GmbH
  • SobiPro
  • Issues
  • #210

Closed
Open
Created Oct 05, 2021 by Sławek Sikora@SikorReporter

saving entries with empty select fields - now with PHP 8

Looks like there is similar issue as before:
https://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/204 However now it happens only with PHP 8 and generate following error:

     0 count(): Argument #1 ($value) must be of type Countable|array, null given 

Call stack
# 	Function 	Location
1 	() 	JROOT/components/com_sobipro/opt/fields/select.php:460
2 	SPField_Select->fetchData() 	JROOT/components/com_sobipro/opt/fields/select.php:507
3 	SPField_Select->submit() 	JROOT/components/com_sobipro/lib/models/field.php:892
4 	SPField->__call() 	JROOT/components/com_sobipro/lib/ctrl/entry.php:249
5 	SPEntryCtrl->submit() 	JROOT/components/com_sobipro/lib/ctrl/entry.php:73
6 	SPEntryCtrl->execute() 	JROOT/components/com_sobipro/lib/ctrl/sobipro.php:574
7 	SobiProCtrl->execute() 	JROOT/components/com_sobipro/sobipro.php:55
8 	require_once() 	JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69
9 	Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() 	JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
10 	Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() 	JROOT/libraries/src/Component/ComponentHelper.php:389
11 	Joomla\CMS\Component\ComponentHelper::renderComponent() 	JROOT/libraries/src/Application/SiteApplication.php:206
12 	Joomla\CMS\Application\SiteApplication->dispatch() 	JROOT/libraries/src/Application/SiteApplication.php:245
13 	Joomla\CMS\Application\SiteApplication->doExecute() 	JROOT/libraries/src/Application/CMSApplication.php:278
14 	Joomla\CMS\Application\CMSApplication->execute() 	JROOT/includes/app.php:63
15 	require_once() 	JROOT/index.php:32 

Tested with SobiPro 2.0.0.15

Assignee
Assign to
2.0 Alpha 2
Milestone
2.0 Alpha 2 (Past due)
Assign milestone
Time tracking

footer

Legal Notice / Impressum | Data Protection / Datenschutzinformation