SobiPro issueshttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues2021-10-21T13:10:19Zhttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/214Saving entries with image field with PHP 82021-10-21T13:10:19ZSławek SikoraSaving entries with image field with PHP 8When trying to save a entry from the front-end where is uploaded image in the image field got following error:<br />
```
0 count(): Argument #1 ($value) must be of type Countable|array, bool given
Call stack
# Function Location
1 () JROOT/components/com_sobipro/opt/fields/image.php:427
2 SPField_Image->verify() JROOT/components/com_sobipro/opt/fields/image.php:1348
3 SPField_Image->storeData() JROOT/components/com_sobipro/opt/fields/image.php:791
4 SPField_Image->saveData() JROOT/components/com_sobipro/lib/models/field.php:892
5 SPField->__call() JROOT/components/com_sobipro/lib/models/entry.php:794
6 SPEntry->save() JROOT/components/com_sobipro/lib/ctrl/entry.php:510
7 SPEntryCtrl->save() JROOT/components/com_sobipro/lib/ctrl/controller.php:167
8 SPController->execute() JROOT/components/com_sobipro/lib/ctrl/entry.php:84
9 SPEntryCtrl->execute() JROOT/components/com_sobipro/lib/ctrl/sobipro.php:574
10 SobiProCtrl->execute() JROOT/components/com_sobipro/sobipro.php:55
11 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69
12 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
13 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
14 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:206
15 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:245
16 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
17 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:63
18 require_once() JROOT/index.php:32
```
<br />Back-end seems to be saving correctly
<br />Tested with SobiPro 2.0.0.15 and Joomla 4.0.3When trying to save a entry from the front-end where is uploaded image in the image field got following error:<br />
```
0 count(): Argument #1 ($value) must be of type Countable|array, bool given
Call stack
# Function Location
1 () JROOT/components/com_sobipro/opt/fields/image.php:427
2 SPField_Image->verify() JROOT/components/com_sobipro/opt/fields/image.php:1348
3 SPField_Image->storeData() JROOT/components/com_sobipro/opt/fields/image.php:791
4 SPField_Image->saveData() JROOT/components/com_sobipro/lib/models/field.php:892
5 SPField->__call() JROOT/components/com_sobipro/lib/models/entry.php:794
6 SPEntry->save() JROOT/components/com_sobipro/lib/ctrl/entry.php:510
7 SPEntryCtrl->save() JROOT/components/com_sobipro/lib/ctrl/controller.php:167
8 SPController->execute() JROOT/components/com_sobipro/lib/ctrl/entry.php:84
9 SPEntryCtrl->execute() JROOT/components/com_sobipro/lib/ctrl/sobipro.php:574
10 SobiProCtrl->execute() JROOT/components/com_sobipro/sobipro.php:55
11 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69
12 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
13 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
14 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:206
15 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:245
16 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
17 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:63
18 require_once() JROOT/index.php:32
```
<br />Back-end seems to be saving correctly
<br />Tested with SobiPro 2.0.0.15 and Joomla 4.0.32.0 Alpha 2Sigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/211Failed upgrade - SobiPro 2.0 - Joomla 4.02021-10-21T13:10:35ZGarry-PFailed upgrade - SobiPro 2.0 - Joomla 4.0Failed to create table #__sobipro_crawler
-----------------------------------------------------------------------------------------------------------------------------
Failed to convert table #__sobipro_category
-----------------------------------------------------------------------------------------------------------------------------
Failed to convert table #__sobipro_plugins
-----------------------------------------------------------------------------------------------------------------------------
Call to undefined method PDO::real_query()
-----------------------------------------------------------------------------------------------------------------------------
| PHP Built On | Linux server 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 |
|------------------------------------------------|---------------------------------------------------------------------------
| Database Type | mysql |
| Database Version | 5.7.27-30 |
| Database Collation | utf8mb4_general_ci |
| Database Connection Collation | utf8mb4_general_ci |
| Database Connection Encryption | None |
| Database Server Supports Connection Encryption | Yes |
| PHP Version | 7.4.23 |
| Web Server | nginx/1.18.0 |
| WebServer to PHP Interface | fpm-fcgi |
| Joomla! Version | Joomla! 4.0.3 Stable [ Furaha ] 12-September-2021 10:39 GMT |
| User Agent | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 |Failed to create table #__sobipro_crawler
-----------------------------------------------------------------------------------------------------------------------------
Failed to convert table #__sobipro_category
-----------------------------------------------------------------------------------------------------------------------------
Failed to convert table #__sobipro_plugins
-----------------------------------------------------------------------------------------------------------------------------
Call to undefined method PDO::real_query()
-----------------------------------------------------------------------------------------------------------------------------
| PHP Built On | Linux server 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 |
|------------------------------------------------|---------------------------------------------------------------------------
| Database Type | mysql |
| Database Version | 5.7.27-30 |
| Database Collation | utf8mb4_general_ci |
| Database Connection Collation | utf8mb4_general_ci |
| Database Connection Encryption | None |
| Database Server Supports Connection Encryption | Yes |
| PHP Version | 7.4.23 |
| Web Server | nginx/1.18.0 |
| WebServer to PHP Interface | fpm-fcgi |
| Joomla! Version | Joomla! 4.0.3 Stable [ Furaha ] 12-September-2021 10:39 GMT |
| User Agent | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 |2.0 Alpha 2Sigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/210saving entries with empty select fields - now with PHP 82021-10-21T13:10:50ZSławek Sikorasaving entries with empty select fields - now with PHP 8Looks like there is similar issue as before:<br />
https://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/204
However now it happens only with PHP 8 and generate following error:<br />
```
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.15Looks like there is similar issue as before:<br />
https://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/204
However now it happens only with PHP 8 and generate following error:<br />
```
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.152.0 Alpha 2Sigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/209Changing field state with enabled Data Accelerator and PHP 82021-11-04T09:57:23ZSławek SikoraChanging field state with enabled Data Accelerator and PHP 8Changing field state with enabled data accelerator generate following error:<br />
An error has occurred.
```
HY000 SQLSTATE[HY000]: General error: 10 disk I/O error
Call stack
# Function Location
1 () JROOT/components/com_sobipro/lib/base/cache.php:270
2 PDO->exec() JROOT/components/com_sobipro/lib/base/cache.php:270
3 SPCache->Exec() JROOT/components/com_sobipro/lib/base/cache.php:290
4 SPCache->cleanSection() JROOT/components/com_sobipro/lib/ctrl/adm/field.php:1066
5 SPFieldAdmCtrl->changeState() JROOT/components/com_sobipro/lib/ctrl/adm/field.php:1164
6 SPFieldAdmCtrl->execute() JROOT/components/com_sobipro/lib/ctrl/adm/sobipro.php:458
7 SobiProAdmCtrl->execute() JROOT/administrator/components/com_sobipro/sobipro.php:57
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/AdministratorApplication.php:143
12 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
13 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
14 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:63
15 require_once() JROOT/administrator/index.php:32
```
Tested with SobiPro 2.0.0.15 Alpha 1, Joomla 4.0.3 and PHP 8.0.11Changing field state with enabled data accelerator generate following error:<br />
An error has occurred.
```
HY000 SQLSTATE[HY000]: General error: 10 disk I/O error
Call stack
# Function Location
1 () JROOT/components/com_sobipro/lib/base/cache.php:270
2 PDO->exec() JROOT/components/com_sobipro/lib/base/cache.php:270
3 SPCache->Exec() JROOT/components/com_sobipro/lib/base/cache.php:290
4 SPCache->cleanSection() JROOT/components/com_sobipro/lib/ctrl/adm/field.php:1066
5 SPFieldAdmCtrl->changeState() JROOT/components/com_sobipro/lib/ctrl/adm/field.php:1164
6 SPFieldAdmCtrl->execute() JROOT/components/com_sobipro/lib/ctrl/adm/sobipro.php:458
7 SobiProAdmCtrl->execute() JROOT/administrator/components/com_sobipro/sobipro.php:57
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/AdministratorApplication.php:143
12 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
13 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
14 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:63
15 require_once() JROOT/administrator/index.php:32
```
Tested with SobiPro 2.0.0.15 Alpha 1, Joomla 4.0.3 and PHP 8.0.112.0 Alpha 2Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/208Browser title generation2021-10-21T13:11:45ZSławek SikoraBrowser title generationIt seems like there are problems with proper browser title generation. Looks like categories, entries and alpha listing pages do not pass it names to the browser meta title, always section name or menu item meta title is used.It seems like there are problems with proper browser title generation. Looks like categories, entries and alpha listing pages do not pass it names to the browser meta title, always section name or menu item meta title is used.2.0 Alpha 2Sigrid SuskiSigrid Suski