GetSimple Support Forum
Get simple 3.3.16 support for php 8.0 - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5)
+--- Thread: Get simple 3.3.16 support for php 8.0 (/showthread.php?tid=16548)

Pages: 1 2 3 4 5 6 7


RE: Get simple 3.3.16 support for php 8.0 - multicolor - 2022-12-22

Try now, and english lang please. Maybe somehow problem with lang file.

https://github.com/multicolor-rgb/GetSimple-CMS-repo-php-8.0-support

https://discord.gg/tat6YADD go to my discord, we can talk - i am here now.


RE: Get simple 3.3.16 support for php 8.0 - smdp-1971 - 2022-12-23

(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.


RE: Get simple 3.3.16 support for php 8.0 - Oleg06 - 2022-12-23

(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]


RE: Get simple 3.3.16 support for php 8.0 - multicolor - 2022-12-23

i do it what you want on custom fieldSmile
and on special pages i find little error shows when custom field turned on.

https://github.com/multicolor-rgb/GetSimple-CMS-repo-php-8.0-support


RE: Get simple 3.3.16 support for php 8.0 - Oleg06 - 2022-12-23

(2022-12-23, 21:30:17)multicolor Wrote: i do it what you want on custom fieldSmile
and on special pages i find little error shows when custom field turned on.

https://github.com/multicolor-rgb/GetSimple-CMS-repo-php-8.0-support

I checked your update, everything is working well now.


RE: Get simple 3.3.16 support for php 8.0 - shawn_a - 2022-12-24

I was working on these and I think I forgot to push them to github, let me see where they are


RE: Get simple 3.3.16 support for php 8.0 - multicolor - 2022-12-29

Next chapter with PHP 8.x and GS CE , we created with Islander. Easy download repo pluginsSmile Feel free. Soon more.
https://getsimplecms-ce-plugins.github.io/


RE: Get simple 3.3.16 support for php 8.0 - shawn_a - 2022-12-30

Round 1 of rector processed plugins

https://github.com/GetSimpleCMS/GetSimpleCMS/commit/31b2b6d9a7595f5af4c24bdc988fb1dd889de1dc

I need to fix a few, extragallery and newmanager seem to be unfixed and fatal


RE: Get simple 3.3.16 support for php 8.0 - Carlos - 2022-12-30

(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.


RE: Get simple 3.3.16 support for php 8.0 - multicolor - 2022-12-30

(2022-12-30, 04:35:07)shawn_a Wrote: Round 1 of rector processed plugins

https://github.com/GetSimpleCMS/GetSimpleCMS/commit/31b2b6d9a7595f5af4c24bdc988fb1dd889de1dc

I need to fix a few, extragallery and newmanager seem to be unfixed and fatal

you tested this on on gs after this edit?


RE: Get simple 3.3.16 support for php 8.0 - shawn_a - 2022-12-31

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.


RE: Get simple 3.3.16 support for php 8.0 - multicolor - 2022-12-31

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/


RE: Get simple 3.3.16 support for php 8.0 - multicolor - 2022-12-31

https://getsimplecms-ce.github.io now GetSimple CMS CE has own website on github - old https://multicolor-rgb.github.io/ redirected to newSmile Today we added new plugins to repo and still will working with this. Islander Created autoinstaller ready to download Smile Soon more!


RE: Get simple 3.3.16 support for php 8.0 - Oleg06 - 2022-12-31

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/



RE: Get simple 3.3.16 support for php 8.0 - multicolor - 2022-12-31

(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?


RE: Get simple 3.3.16 support for php 8.0 - Oleg06 - 2023-01-01

(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.


RE: Get simple 3.3.16 support for php 8.0 - multicolor - 2023-01-01

(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?


RE: Get simple 3.3.16 support for php 8.0 - Oleg06 - 2023-01-01

(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]


RE: Get simple 3.3.16 support for php 8.0 - islander - 2023-01-03

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
Code:
'%','',


Try changing this to
PHP Code:
    <div class="search-entry-date"><?php echo strftime('%',''$dateFormat$item->pubDate); ?></div> 



RE: Get simple 3.3.16 support for php 8.0 - Hypertexter - 2023-01-04

(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).


RE: Get simple 3.3.16 support for php 8.0 - Oleg06 - 2023-01-04

(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


RE: Get simple 3.3.16 support for php 8.0 - Oleg06 - 2023-01-04

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.


RE: Get simple 3.3.16 support for php 8.0 - islander - 2023-01-04

This was an existing problem then, as that line had not been changed.


RE: Get simple 3.3.16 support for php 8.0 - jlyon1515 - 2023-01-06

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.


RE: Get simple 3.3.16 support for php 8.0 - multicolor - 2023-01-06

(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 helpSmile