92 Posts
Seb
2 years ago
4
Topic

Hi,

When I use PHP 8, an error appears when validating the form:

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

Call stack 

# FunctionLocation 1()JROOT/components/com_cck/controller.php:883 

2 CCKController->_getReturnPage()JROOT/components/com_cck/controller.php:665 

3 CCKController->save()JROOT/libraries/src/MVC/Controller/BaseController.php:702 

4 Joomla\CMS\MVC\Controller\BaseController->execute()JROOT/components/com_cck/cck.php:16

5 require_once()JROOT/libraries/src/Component/ComponentHelper.php:402

6 Joomla\CMS\Component\ComponentHelper::executeComponent()JROOT/libraries/src/Component/ComponentHelper.php:377

7 Joomla\CMS\Component\ComponentHelper::renderComponent()JROOT/libraries/src/Application/SiteApplication.php:194

8 Joomla\CMS\Application\SiteApplication->dispatch()JROOT/libraries/src/Application/SiteApplication.php:233 

9 Joomla\CMS\Application\SiteApplication->doExecute()JROOT/libraries/src/Application/CMSApplication.php:225 

10 Joomla\CMS\Application\CMSApplication->execute()JROOT/index.php:49

My configuration : Joomla 3.10.11, Seblod 3.22.1

Thanks for your help !

Get a Book for SEBLOD
57 Posts
KKAAZZOO
2 years ago
1
Level 1

Hi! At a minimum, you need to downgrade your php version to version 7

92 Posts
Seb
2 years ago
0
Level 2

Hi, thanks but I know.

The system requirements for Seblod 3 is :

  • Joomla! 2.5 or 3.0.
  • Seblod shares all of the same system requirements as Joomla, however Php 5.3 or above is required.

PHP 8 should work.

7 Posts
kennilee8
1 year ago
0
Level 1

i also hv similiar problem while saving Seblod Options-> Integration ON /administrator/components/com_cck controller.php in saveIntegrationAjax() function

did anyone can help?

59 Posts
SemaphoreOxalis
6 months ago
0
Level 1

We have make a quick fix on editing the controller.php L.812 (we know it's a bad thing). The forum prevent us to post here the code so : we have just define the variable $check as an array.

Get a VIP membership