SobiPro issueshttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues2019-01-16T16:02:06Zhttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/125Warning at the section configuration page2019-01-16T16:02:06ZSławek SikoraWarning at the section configuration pageFollowing warning appear at the section configuration page with PHP 7.2
Warning: get_class() expects parameter 1 to be object, null given in /home/sikorasobipro/test2.sikora.sobipro.eu/components/com_sobipro/lib/models/field.php on line 926Following warning appear at the section configuration page with PHP 7.2
Warning: get_class() expects parameter 1 to be object, null given in /home/sikorasobipro/test2.sikora.sobipro.eu/components/com_sobipro/lib/models/field.php on line 926Sigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/123Warning on the front-end view when alpha index don't have assigned additional...2019-01-16T16:01:59ZSławek SikoraWarning on the front-end view when alpha index don't have assigned additional fields.On the PHP 7.2 servers appear warning:<br />
Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/25/d252744405/htdocs/test/20160409/components/com_sobipro/lib/views/view.php on line 743
<br />at the front end views, when in the Alpha Index configuration isn't specified at lest one additional fieldOn the PHP 7.2 servers appear warning:<br />
Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/25/d252744405/htdocs/test/20160409/components/com_sobipro/lib/views/view.php on line 743
<br />at the front end views, when in the Alpha Index configuration isn't specified at lest one additional field1.4.9Sigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/121no error message when field is used as category field and uploaded file is to...2018-09-14T12:11:48ZSigrid Suskino error message when field is used as category field and uploaded file is too bigThe image field show an 'too big' message directly after uploading the image file. The download field checks this first on save. It is better to change the behaviour to show the error message also directly after upload; it will work then also in the category as the error message is shown inline and not as a popover.The image field show an 'too big' message directly after uploading the image file. The download field checks this first on save. It is better to change the behaviour to show the error message also directly after upload; it will work then also in the category as the error message is shown inline and not as a popover.Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/119HTML does not longer work in field's description area2018-09-14T12:11:55ZSigrid SuskiHTML does not longer work in field's description areasee https://www.sigsiu.net/showcase/entry/addsee https://www.sigsiu.net/showcase/entry/add1.4.8Sigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/118Button field notices in the edit form2018-09-14T12:12:26ZSławek SikoraButton field notices in the edit formButton field generate following notice in the add/edit form view (front and back end):<br />
> Notice: Undefined offset: 0 in /home/sikorasobipro/test1.sikora.sobipro.eu/components/com_sobipro/opt/fields/button.php on line 136Button field generate following notice in the add/edit form view (front and back end):<br />
> Notice: Undefined offset: 0 in /home/sikorasobipro/test1.sikora.sobipro.eu/components/com_sobipro/opt/fields/button.php on line 136https://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/115Editing entry in multi-lingual mode always change main language2018-09-14T12:12:01ZSławek SikoraEditing entry in multi-lingual mode always change main languageWhen we are using multi-language mode and we are editing entry in 2nd language, it always modify data for main language. So for example we are using English and Polish, we are created entry 'some name' in English, then switch language to Polish and change name to 'jakas nazwa' then after save will be changed English version and Polish will be left unchangedWhen we are using multi-language mode and we are editing entry in 2nd language, it always modify data for main language. So for example we are using English and Polish, we are created entry 'some name' in English, then switch language to Polish and change name to 'jakas nazwa' then after save will be changed English version and Polish will be left unchanged1.4.8Sigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/113Links are generated with itemid=0 parameter2018-09-14T12:13:40ZSławek SikoraLinks are generated with itemid=0 parameterLike in the title, from some reason all links to details view are generated with itemid=0Like in the title, from some reason all links to details view are generated with itemid=01.4.8Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/112Fetch Updates does not longer fetch the applications list2018-09-14T12:13:47ZSigrid SuskiFetch Updates does not longer fetch the applications list1.4.8Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/111Schema errors in template.xsd2018-09-14T12:13:23ZSławek SikoraSchema errors in template.xsdDOMDocument::schemaValidate(): Element 'showIcon': This element is not expected. Expected is ( name ).
although it is specified
and
DOMDocument::schemaValidate(): Element 'specific': Missing child element(s). Expected is ( data ).
if the node is empty
DOMDocument::schemaValidate(): Element 'showIcon': This element is not expected. Expected is ( name ).
although it is specified
and
DOMDocument::schemaValidate(): Element 'specific': Missing child element(s). Expected is ( data ).
if the node is empty
1.4.8Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/110Entry can't be saved when Download field is set as required2018-06-20T15:25:55ZSławek SikoraEntry can't be saved when Download field is set as requiredWhen in the form there is download field set as required field, when we try to submit form from the front-end appear following error:<br />
500 Cannot save fields data. Please enter data in the field 'download'. This is a required field!.
It doesn't happens from the back-end and seems to appear in SobiPro 1.4.6When in the form there is download field set as required field, when we try to submit form from the front-end appear following error:<br />
500 Cannot save fields data. Please enter data in the field 'download'. This is a required field!.
It doesn't happens from the back-end and seems to appear in SobiPro 1.4.6https://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/109Placeholder output for category field is the category ID not the name2018-09-14T12:13:12ZSławek SikoraPlaceholder output for category field is the category ID not the name1.4.8Sigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/104Guest user group2018-09-14T12:13:17ZSławek SikoraGuest user groupIt looks like guest user group isn't correctly recognized by SobiPro. Technically using Guest group should allow to set different permissions for visitors than registered, but if we move access from Public to Guest then not logged in user lost access to the component.<br />
Here is code change suggestion of one of the user, I'm not sure if this is correct solution, but will paste it here in case of:<br />
```
components/com_sobipro/lib/cms/joomla3/base/user.php, line 178
// PATCH Guest User
if ((count($this->gid) === 1) && ($this->gid[0] === 0)) {
$gids = 9;
} else {
$gids = implode( ', ', $this->gid );
}
// PATCH Guest User
```It looks like guest user group isn't correctly recognized by SobiPro. Technically using Guest group should allow to set different permissions for visitors than registered, but if we move access from Public to Guest then not logged in user lost access to the component.<br />
Here is code change suggestion of one of the user, I'm not sure if this is correct solution, but will paste it here in case of:<br />
```
components/com_sobipro/lib/cms/joomla3/base/user.php, line 178
// PATCH Guest User
if ((count($this->gid) === 1) && ($this->gid[0] === 0)) {
$gids = 9;
} else {
$gids = implode( ', ', $this->gid );
}
// PATCH Guest User
```1.4.8Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/103PHP function count() reports error on PHP7.2.x2018-09-14T12:12:53ZSławek SikoraPHP function count() reports error on PHP7.2.xWhen server have installed PHP 7.2.x, there appear errors like this:<br />
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///some_path_here/libraries/sobi/Sobi-1.0.6.phar.tar.gz/Database/MySQLi.php on line 359<br />
Warning: count(): Parameter must be an array or an object that implements Countable in /some_path_here/web/content/components/com_sobipro/lib/views/section.php on line 195When server have installed PHP 7.2.x, there appear errors like this:<br />
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///some_path_here/libraries/sobi/Sobi-1.0.6.phar.tar.gz/Database/MySQLi.php on line 359<br />
Warning: count(): Parameter must be an array or an object that implements Countable in /some_path_here/web/content/components/com_sobipro/lib/views/section.php on line 1951.4.8Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/102all permissions2018-08-30T09:45:11ZSławek Sikoraall permissionsLooks like 'all permissions' permission for entry don't work. It is necessary to select all permissions separately instead of selecting only this one.Looks like 'all permissions' permission for entry don't work. It is necessary to select all permissions separately instead of selecting only this one.1.4.8Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/101another 403 instead 404 error on fake SEF url2018-09-14T12:13:03ZSławek Sikoraanother 403 instead 404 error on fake SEF urlFound another wrong error code page on specific very long fake url. To get this reproduced, we need to add some fake sub-page to the existing SobiPro existing + after slash very long name. Will try to explain on example, we have a section page like this:<br />
http://test1.sikora.sobipro.eu/test.html
<br />now we need to add some fake sub-page:<br />
http://test1.sikora.sobipro.eu/test/fake
<br />it return correct error 404, now we can add another sub-page:<br />
http://test1.sikora.sobipro.eu/test/fake/this-is-a-bit-long-address
<br />this also return correct 404 code, but if we exceed this address to much longer:<br />
http://test1.sikora.sobipro.eu/test/fake/this-is-a-fracking-very-very-very-very-long-fake-address
<br />it return 403 error.<br /> From my observation count overall size of the url, so we can shorten last part and add in the middle, but at some number of letters it will brings 403 errorFound another wrong error code page on specific very long fake url. To get this reproduced, we need to add some fake sub-page to the existing SobiPro existing + after slash very long name. Will try to explain on example, we have a section page like this:<br />
http://test1.sikora.sobipro.eu/test.html
<br />now we need to add some fake sub-page:<br />
http://test1.sikora.sobipro.eu/test/fake
<br />it return correct error 404, now we can add another sub-page:<br />
http://test1.sikora.sobipro.eu/test/fake/this-is-a-bit-long-address
<br />this also return correct 404 code, but if we exceed this address to much longer:<br />
http://test1.sikora.sobipro.eu/test/fake/this-is-a-fracking-very-very-very-very-long-fake-address
<br />it return 403 error.<br /> From my observation count overall size of the url, so we can shorten last part and add in the middle, but at some number of letters it will brings 403 error1.4.8Sigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/100PayPal plugin cause fatal erro on entry save2018-06-21T13:38:17ZSławek SikoraPayPal plugin cause fatal erro on entry saveWhen Paypal plugin is enabled saving entry (free or paid) cause following error:<br />
Recoverable fatal error: Object of class SPEntry could not be converted to string in /home/sikorasobipro/test1.sikora.sobipro.eu/components/com_sobipro/lib/cms/joomla_common/base/lang.php on line 346
seems to appear in 1.4.6When Paypal plugin is enabled saving entry (free or paid) cause following error:<br />
Recoverable fatal error: Object of class SPEntry could not be converted to string in /home/sikorasobipro/test1.sikora.sobipro.eu/components/com_sobipro/lib/cms/joomla_common/base/lang.php on line 346
seems to appear in 1.4.6https://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/99Disabling name field2018-09-14T12:12:33ZSławek SikoraDisabling name fieldWhen we disable field which is set as entry name field, whole section at the front end stop working and generate error:<br />
0 Call to a member function get() on nullWhen we disable field which is set as entry name field, whole section at the front end stop working and generate error:<br />
0 Call to a member function get() on null1.4.8Sigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/98Aborted entry form not refilled although within 48 hours2018-05-11T08:14:34ZSigrid SuskiAborted entry form not refilled although within 48 hours1.4.7.3Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/97500 error instead 4042018-05-11T11:05:10ZSławek Sikora500 error instead 404This error happens when called is no existed page which is 2 levels (no idea how to name it correctly) after existing link. Let me try to explain.<br />
We can take for example restara section link from the demo site:<br />
https://demo.sobi.pro/restaurant-guide<br />
Now if we add some not existing sub page to this link it will return 404 error:<br />
https://demo.sobi.pro/restaurant-guide/something<br />
but if we add another level sub-page to this link:<br />
https://demo.sobi.pro/restaurant-guide/something/somethingelse<br />
there appear 500 error instead of 404.This error happens when called is no existed page which is 2 levels (no idea how to name it correctly) after existing link. Let me try to explain.<br />
We can take for example restara section link from the demo site:<br />
https://demo.sobi.pro/restaurant-guide<br />
Now if we add some not existing sub page to this link it will return 404 error:<br />
https://demo.sobi.pro/restaurant-guide/something<br />
but if we add another level sub-page to this link:<br />
https://demo.sobi.pro/restaurant-guide/something/somethingelse<br />
there appear 500 error instead of 404.1.4.7.3Sigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/96'Specified key was too long; max key length is 767 bytes' on SobiPro installa...2018-05-11T11:05:10ZSigrid Suski'Specified key was too long; max key length is 767 bytes' on SobiPro installation (some servers only)https://stackoverflow.com/questions/1814532/1071-specified-key-was-too-long-max-key-length-is-767-bytes
767 bytes is the stated prefix limitation for InnoDB tables in MySQL version 5.6 (and prior versions). It's 1,000 bytes long for MyISAM tables. In MySQL version 5.7 and upwards this limit has been increased to 3072 bytes.
The index limit is 767 bytes, not characters. And since Mysql's utf8mb4 character set (which the rest of the world calls utf8) needs (at most) 4 bytes per character you can only index up to VARCHAR(191)https://stackoverflow.com/questions/1814532/1071-specified-key-was-too-long-max-key-length-is-767-bytes
767 bytes is the stated prefix limitation for InnoDB tables in MySQL version 5.6 (and prior versions). It's 1,000 bytes long for MyISAM tables. In MySQL version 5.7 and upwards this limit has been increased to 3072 bytes.
The index limit is 767 bytes, not characters. And since Mysql's utf8mb4 character set (which the rest of the world calls utf8) needs (at most) 4 bytes per character you can only index up to VARCHAR(191)1.4.7.2Sigrid SuskiSigrid Suski