Author Topic: 4images 1.9 - Feedback  (Read 15510 times)

0 Members and 1 Guest are viewing this topic.

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.423
    • View Profile
    • 4images - Image Gallery Management System
4images 1.9 - Feedback
« on: November 05, 2021, 01:08:04 PM »
Please use this thread for feedback and comments about the 4images 1.9 release.
For general bug reporting and troubleshooting please use this forum.

Bitte nutzt diesen Thread für Feedback, Kommentare und Anregungen zum 4images 1.9 Release.
Für allgemeine Bug Reports und Troubleshooting bitte dieses Forum nutzen.
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline kitty999

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: 4images 1.9 - Feedback
« Reply #1 on: November 07, 2021, 02:36:45 AM »
Hello,
I've been using 4images for many years now and I currently run 4images version 1.7.13 with a lot of heavy modifications. I've been able to get it running on PHP 7.4.25, but I run into problems with PHP 8.

Because of all the modifications throughout the years I'm unable to update to version 1.9. I was wondering if there was possibly a changelog with a list of specific changes in code on specific php files that make it php 8 compatible that I could sort through to try to get my version PHP 8 compatible? I hope that makes sense.

Glad to see an update to 4images, I honestly thought it had seen it's end.

Thanks, Have a great day.
Kitty

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: 4images 1.9 - Feedback
« Reply #2 on: November 08, 2021, 01:58:47 PM »
Hello,

I can recommend "WinMerge" as an alternative.
With this programme you are able to examine individual PHPs for changes.

nobby

Offline kp

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • www.hell-is-open.de
Re: 4images 1.9 - Feedback
« Reply #3 on: December 16, 2021, 09:07:50 PM »
@kai:
Habt ihr ein Changelog oder zumindest eine Liste für die geänderten Files?
Ich wollte an den Security Problemen arbeiten. Zumindest die unsicheren Cookies und andere Dinge die mir gemeldet wurden.

Gruß KP

----------------

Hello,
I've been using 4images for many years now and I currently run 4images version 1.7.13 with a lot of heavy modifications. I've been able to get it running on PHP 7.4.25, but I run into problems with PHP 8.

Because of all the modifications throughout the years I'm unable to update to version 1.9. I was wondering if there was possibly a changelog with a list of specific changes in code on specific php files that make it php 8 compatible that I could sort through to try to get my version PHP 8 compatible? I hope that makes sense.

Glad to see an update to 4images, I honestly thought it had seen it's end.

Thanks, Have a great day.
Kitty

Hello kitty999,
you can have a look here:
https://www.4homepages.de/forum/index.php?topic=33111.new#new
there ist a version 1.8 which I've fixed for php8. I the attached zip file you can find the files which are fixed. May you can replace them or have a look into to change it to your customised files.
« Last Edit: December 16, 2021, 09:55:24 PM by kp »

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.808
  • I ♥ 4I
    • View Profile
Re: 4images 1.9 - Feedback
« Reply #4 on: December 28, 2021, 04:28:44 PM »
Die Installation läuft weiterhin nicht korrekt durch

Als erstes muss man folgendes in die install.php hinzufügen.
Das Scheint das System nicht zu erkennen.
function safe_htmlspecialchars($chars) {
  
// Translate all non-unicode entities
  
$chars preg_replace(
    
'/&(?!(#[0-9]+|[a-z]+);)/si',
    
'&',
    
$chars
  
);

  
$chars str_replace(">"">",   $chars);
  
$chars str_replace("<""&lt;",   $chars);
  
$chars str_replace('"'"&quot;"$chars);
  return 
$chars;
}


Außerdem kann es noch zu folgenden Fehler kommen
Quote
DB Error: Bad SQL Query: CREATE TABLE 4images_settings (setting_name varchar(255) NOT NULL default '',setting_value mediumtext NOT NULL,PRIMARY KEY (setting_name)) ENGINE=MyISAM
Specified key was too long; max key length is 1000 bytes

Das kann man beheben in dem man unter "data/database/default" die Dateien öffnet
Sucht:
Code: [Select]
ENGINE=MyISAM;Ersetzen mit
Code: [Select]
ENGINE=InnoDB;
Ich finde das sollte man als Update mal nachschieben.

LG

Offline kp

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • www.hell-is-open.de
Re: 4images 1.9 - Feedback
« Reply #5 on: September 01, 2022, 11:44:32 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).

A fix you can find here: https://www.4homepages.de/forum/index.php?topic=33113.new#new