4images Forum & Community

4images Help / Hilfe => News & Announcements => Topic started by: kai on November 05, 2021, 01:00:06 PM

Title: 4images 1.9
Post by: kai on November 05, 2021, 01:00:06 PM
:flag-en: The new version 4images 1.9 has been released. This release brings full PHP 8 compatibility.
We recommend all users to update to the current version. All changes and features are listed in "docs/Changelog.txt".

:flag-de: Die neue Version 4images 1.9 wurde veroeffentlicht. Das Release beinhaltet Anpassung fuer den Betrieb unter PHP 8.
Wir empfehlen allen Nutzern ein Update auf die aktuelle Version. Alle Aenderungen und Features sind in der Datei "docs/Changelog.txt" aufgelistet.

Download:
https://www.4homepages.de/download-4images

Demo:
https://www.4homepages.de/demo


Please use this thread (https://www.4homepages.de/forum/index.php?topic=33114.0) for feedback about the 4images 1.9 version.

Für Feedback zur 4images 1.9 Version bitte diesen Thread (https://www.4homepages.de/forum/index.php?topic=33114.0) nutzen.
Title: Re: 4images 1.9
Post by: kai on November 05, 2021, 01:00:34 PM
=========================================================
ChangeLog Version 1.9
=========================================================
- PHP8 compatibility
Title: Re: 4images 1.9
Post by: wflorian on August 11, 2022, 11:28:35 PM
Thank you for the update!
Title: Re: 4images 1.9
Post by: kp on September 01, 2022, 11:41:38 PM
Found a PHP8 bug in this version.
If I use the function "check for new images" (German: Neue Bilder checken) and there are new images in the chosen category (which I've uploaded upfront via FTP) you will see nothing (because there is a not displayed error).
The problem is in the file admin\checkimages.php at line 836.
Here you have to change
if (!@in_array($image_list_all[$key][$i], $image_list_sql[$key]))
to
if (($result->num_rows == 0) or (!@in_array($image_list_all[$key][$i], $image_list_sql[$key])))

If you aren't experienced enough to change this, you can load my attached fixed file and replace it at your webspace.
Would be cool if the 4images guys could add this fix to there 1.9(.1) package.

Title: Re: 4images 1.9
Post by: kp on November 01, 2022, 12:52:47 PM
Found another PHP8 bug in this version.
The admin-function "Edit images" (German: Bilder bearbeiten) the result is strange when there are no filters set. Sometimes I got 0 images, sometimes 5000 sometimes all of them. This comes from the new handling in misusing a compare of string with an integer.
The problem is in the file admin\images.php at line 664.
Here you have to change
if ($image_id != "") {
to
if ($image_id != 0) {

If you aren't experienced enough to change this, you can load my attached fixed file and replace it at your webspace.
Would be cool if the 4images guys could add this fix to there 1.9(.1) package.
Title: Re: 4images 1.9
Post by: kai on December 30, 2022, 02:20:04 PM
thanks for reporting!

We will review the issues and fix them in the next release.