(2022-12-22, 20:48:02)Oleg06 Wrote: [ -> ]Plugin I18N Custom fields does not allow creating fields in the settings and when you click on the Create a new field link, it jumps up.
Try replacing
i18n_customfields/configure.php line 169.
PHP Code:
function i18n_customfields_confline($i, $def, $issearch, $class='') {
With this:
PHP Code:
function i18n_customfields_confline($i, $def, $class='', $issearch='') {
I tested php version 8.1.3. and it works.
(2022-12-23, 17:34:24)smdp-1971 Wrote: [ -> ] (2022-12-22, 20:48:02)Oleg06 Wrote: [ -> ]Plugin I18N Custom fields does not allow creating fields in the settings and when you click on the Create a new field link, it jumps up.
Try replacing i18n_customfields/configure.php line 169.
PHP Code:
function i18n_customfields_confline($i, $def, $issearch, $class='') {
With this:
PHP Code:
function i18n_customfields_confline($i, $def, $class='', $issearch='') {
I tested php version 8.1.3. and it works.
Yes, everything is working now. Could you find and fix the difference in the field settings of these plugins?
![[Image: 2.jpg]](https://getsimplecms.ru/2.jpg)
I was working on these and I think I forgot to push them to github, let me see where they are
(2022-12-30, 04:35:07)shawn_a Wrote: [ -> ]I need to fix a few, extragallery and newmanager seem to be unfixed and fatal
I recently uploaded News Manager 3.6.1 with some fixes for PHP 8.
I activated most and checked for fatal errors. Rector did not catch everything, not sure why. I will keep working it and someone will have to manually skim the diffs and see if the automated fixes are good, sometimes they are not the ideal fix and refactoring some stuff works better.
ofc we use rector too, and fixes what can't compiler this do.
Some new plugin added from Islander to repo download, soon CE downloader plugin for PHP 8 direct from Admin.
https://getsimplecms-ce-plugins.github.io/
I18N Search plugin stopped understanding Custom Permalink Structure settings %parents%/%slug%/
In the menu, the links look fine, but in the search they look like this
Code:
http://mydomen.com/%parents%/lorem-ipsum-2/
(2022-12-31, 10:43:19)Oleg06 Wrote: [ -> ]I18N Search plugin stopped understanding Custom Permalink Structure settings %parents%/%slug%/
In the menu, the links look fine, but in the search they look like this
Code:
http://mydomen.com/%parents%/lorem-ipsum-2/
added to check list.
some errors?
(2022-12-31, 23:11:15)multicolor Wrote: [ -> ] (2022-12-31, 10:43:19)Oleg06 Wrote: [ -> ]I18N Search plugin stopped understanding Custom Permalink Structure settings %parents%/%slug%/
In the menu, the links look fine, but in the search they look like this
Code:
http://mydomen.com/%parents%/lorem-ipsum-2/
added to check list.
some errors?
Didn't find any errors in the logs.
(2023-01-01, 00:13:58)Oleg06 Wrote: [ -> ] (2022-12-31, 23:11:15)multicolor Wrote: [ -> ] (2022-12-31, 10:43:19)Oleg06 Wrote: [ -> ]I18N Search plugin stopped understanding Custom Permalink Structure settings %parents%/%slug%/
In the menu, the links look fine, but in the search they look like this
Code:
http://mydomen.com/%parents%/lorem-ipsum-2/
added to check list.
some errors?
Didn't find any errors in the logs.
how you create custom structure? Default GS?
(2023-01-01, 00:24:46)multicolor Wrote: [ -> ] (2023-01-01, 00:13:58)Oleg06 Wrote: [ -> ] (2022-12-31, 23:11:15)multicolor Wrote: [ -> ] (2022-12-31, 10:43:19)Oleg06 Wrote: [ -> ]I18N Search plugin stopped understanding Custom Permalink Structure settings %parents%/%slug%/
In the menu, the links look fine, but in the search they look like this
Code:
http://mydomen.com/%parents%/lorem-ipsum-2/
added to check list.
some errors?
Didn't find any errors in the logs.
how you create custom structure? Default GS?
I only change this, as the I18N plugin allows. The menu gives the correct links for all levels, but the search for some reason does not generate them.
![[Image: 02.jpg]](https://getsimplecms.ru/02.jpg)
I am guessing that it is a change in this line from searchresults.php
was
PHP Code:
<div class="search-entry-date"><?php echo str_replace('%','',date('d-m-Y', $item->pubDate)); ?></div>
now
PHP Code:
<div class="search-entry-date"><?php echo strftime($dateFormat, $item->pubDate); ?></div>
missing
Try changing this to
PHP Code:
<div class="search-entry-date"><?php echo strftime('%','', $dateFormat, $item->pubDate); ?></div>
(2022-12-31, 10:43:19)Oleg06 Wrote: [ -> ]I18N Search plugin stopped understanding Custom Permalink Structure settings %parents%/%slug%/
In the menu, the links look fine, but in the search they look like this
In my installation the structure settings are "%parent%/%slug%" (parent without an s).
(2023-01-04, 01:43:39)Hypertexter Wrote: [ -> ] (2022-12-31, 10:43:19)Oleg06 Wrote: [ -> ]I18N Search plugin stopped understanding Custom Permalink Structure settings %parents%/%slug%/
In the menu, the links look fine, but in the search they look like this
In my installation the structure settings are "%parent%/%slug%" (parent without an s).
parents allows you to show all levels in links
I replaced this line in the searchresults.php file of the I18N Search plugin
Code:
<a href="<?php echo htmlspecialchars($link); ?>">
with this
Code:
<a href="<?php echo htmlspecialchars($item->link); ?>">
Now everything is working well.
This was an existing problem then, as that line had not been changed.
I'm loving all the activity on this thread to update to support PHP 8. My host is going to be forcing users to adopt PHP 8, so this will be very important for anyone in a situation similar to mine, where we can't stay on PHP 7 even if we want to.
(2023-01-06, 04:35:09)jlyon1515 Wrote: [ -> ]I'm loving all the activity on this thread to update to support PHP 8. My host is going to be forcing users to adopt PHP 8, so this will be very important for anyone in a situation similar to mine, where we can't stay on PHP 7 even if we want to.
Great we can help
