#16 2024-10-31 08:19:30

deemon
Member
2021-05-03
58

Re: Piwigo 15

erAck wrote:

Are you still using PHP 7?

yes. as it's still written on minimum requirements page.

Last edited by deemon (2024-10-31 08:25:32)

Offline

#17 2024-10-31 09:23:44

Linty
Piwigo Team
2023-11-03
19

Re: Piwigo 15

deemon wrote:

erAck wrote:

Are you still using PHP 7?

yes. as it's still written on minimum requirements page.

Hello,

It's a problem we no longer have in PHP8+, and as you said, the minimum version for Piwigo is PHP 7.4, so the problem will be solved for Piwigo 15.1.0

To add a little context, this way of adding a comma like this is because for commits on github it's much cleaner, you can see an example here : https://spatie.be/courses/front-line-ph … efinitions


“An adventure between passion and logic.”

Offline

#18 2024-11-01 15:06:18

deemon
Member
2021-05-03
58

Re: Piwigo 15

Linty wrote:

It's a problem we no longer have in PHP8+, and as you said, the minimum version for Piwigo is PHP 7.4, so the problem will be solved for Piwigo 15.1.0

Thank you.

Linty wrote:

To add a little context, this way of adding a comma like this is because for commits on github it's much cleaner, you can see an example here : https://spatie.be/courses/front-line-ph … efinitions

Just because you can (in PHP 8+), doesn't mean you should, while it breaks backwards compatibility.
Just for aesthetics (and not even the code itself, which looks now more ugly IMHO and longer (with extra unnecessary commas)... just git commits are slimmer) and zero functional benefit. Right? ;-)

Offline

#19 2024-11-02 16:47:07

Tiger07
Guest

Re: Piwigo 15

Thank you for the great improvements. I am very pleased that Piwigo is constantly being developed further. I am sure that Piwigo will remain the best photo forum in the future :-)

#20 2024-11-02 22:53:26

erAck
Only trying to help
2015-09-06
2222

Re: Piwigo 15

deemon wrote:

Just because you can (in PHP 8+), doesn't mean you should

Just because you can use PHP 7.4 it doesn't mean you should.


Running Piwigo at https://erack.net/gallery/

Offline

#21 2024-11-06 16:25:07

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13936

Re: Piwigo 15

For your information, for Piwigo 15, the minimum technical version of PHP is 7.1 (and we just discovered a bug with PHP 7.2, that we're going to fix) but the minimum version we ask users to have is 7.4. We will certainly increase it to 8 for Piwigo 16.

Offline

#22 2024-11-08 15:46:07

deemon
Member
2021-05-03
58

Re: Piwigo 15

plg wrote:

For your information, for Piwigo 15, the minimum technical version of PHP is 7.1 (and we just discovered a bug with PHP 7.2, that we're going to fix) but the minimum version we ask users to have is 7.4. We will certainly increase it to 8 for Piwigo 16.

Thank you for the heads up. In fact using 7.1 right now.


Is this a new feature in P15 that opening any gallery I get some new button "Search in this set" which ends up with error message:

Code:

Fatal error: Uncaught Error: Call to undefined function array_key_first() in /var/www/html/galerii/include/functions_search.inc.php:717 Stack trace: #0 /var/www/html/galerii/include/functions_search.inc.php(2016): get_regular_search_results(Array, '') #1 /var/www/html/galerii/include/section_init.inc.php(364): get_search_results('psk-20241108-rq...', NULL) #2 /var/www/html/galerii/index.php(12): include('/var/www/html/g...') #3 {main} thrown in /var/www/html/galerii/include/functions_search.inc.php on line 717

Luckily I can disable it in Configuration > Options > Display > Main Page >  [  ] Activate button "Search in this set";
[  ] Activate icon "Search in this set".

Seems to be function added to PHP 7.3+, which I don't have. If I wanted to add given function at https://www.php.net/manual/en/function. … -first.php "Notes" part as temporary workaround, where would be the best place to put it? ( I don't think just before line 717 in functions_search.inc.php would be best place, as this function might be used elsewhere in the code also ) Or better yet could you please add it to Piwigo 15.1 or something? :-)

Last edited by deemon (2024-11-08 16:17:03)

Offline

#23 2024-11-08 17:05:36

Chris CJB
Member
Portsmouth UK
2016-11-11
15

Re: Piwigo 15

Any news on this, please? My site is heavily reliant on OSM.

plg wrote:

OHappyDay wrote:

Should I wait for a compatible version?

We're working on it. You'd better wait a few days for a compatible version if you need these plugins.

Offline

#24 2024-11-08 17:24:11

OHappyDay
Member
2023-02-08
126

Re: Piwigo 15

The plugins have been updated. Please go to

  Tools --> Update --> Tab "Plugins"

You should see available updates for plugins. Updating the plugins before upgrading to 15.0.0 is recommended.

This worked for me.

Offline

#25 2024-11-08 17:45:48

Chris CJB
Member
Portsmouth UK
2016-11-11
15

Re: Piwigo 15

Happy Days! I'll give it a go, thanks

OHappyDay wrote:

The plugins have been updated. Please go to

  Tools --> Update --> Tab "Plugins"

You should see available updates for plugins. Updating the plugins before upgrading to 15.0.0 is recommended.

This worked for me.

Offline

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact