Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Sunny C.

Pages: [1] 2 3 4 5 ... 116
2
Feedback & Suggestions / 4images 2
« on: March 22, 2024, 06:43:35 AM »
Huhu,

es wurde oft angekündigt, aber die Jahre verstreichen.
Wird das noch was? Wäre schön wenn man jetzt mal ein klares Ja oder Nein aussprechen könnte.

Ich pers. würde es begrüßen.

mfg

4
The error message indicates that there is an issue with sending emails on your website. Let's go through the message step by step:

1. **Warning: fsockopen(): Unable to connect to localhost:25 (Connection refused) in /customers/.../4images/includes/email.php on line 184**: This part of the message indicates that a connection to "localhost" on port 25 (SMTP port) could not be established. The "Connection refused" error typically means that the server on the specified port is not reachable. In this case, the script is attempting to connect to the local email server to send emails, but the connection is being refused.

2. **Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool given in /customers/.../4images/includes/email.php:185**: Here, a fatal error is reported. The script is trying to call the `fgets` function, but the first parameter (`$stream`) should be of resource type (usually a file or network stream), but it's receiving `false` instead. This indicates that the connection to the email server was not successfully established, resulting in `false` being returned.

3. **Stack trace**: These lines show the call stack, which means which functions or parts of the code led to the error.

In summary:

- Your script is attempting to send an email via the local email server (SMTP) but is unable to establish a connection to the server on port 25.
- This results in a `false` value being returned when the script tries to call `fgets` to read data from the email server.
- Ultimately, this leads to a fatal error and the termination of the script.

Possible reasons for this issue could include:

- The local email server is not properly configured or running.
- Firewall or security settings may be blocking the connection on port 25.
- The SMTP server might require authentication or other configurations that are not set correctly.

To resolve the problem, you should:

1. Check the configuration of the email server that the script is trying to access.
2. Ensure that the email server is running correctly and listening on port 25.
3. Review firewall settings and network restrictions that could be blocking the connection.
4. Verify that the email libraries or classes you are using are properly configured and can handle the connection appropriately.

Please note that the exact solution will depend on the technologies you are using and the configuration of your environment.

5
Ich glaube du wirst dabei nicht drumherumkommen, auf das Flash zu verzichten.

Das hier ist out-of-the-box und habe es nicht testen können.
Hier ist ein Beispiel für eine mögliche Implementierung mit der HTML5 File API und XMLHttpRequest.
Ich habe es selbst nicht testen können, vielleicht bekommst du es ja zum laufen:

Code: [Select]
<input type="file" id="fileInput" multiple>
<button id="uploadButton">Durchsuchen &amp; Hochladen</button>
<div id="progressContainer"></div>

<script>
  document.getElementById('uploadButton').addEventListener('click', function() {
    var files = document.getElementById('fileInput').files;
    var formData = new FormData();
   
    for (var i = 0; i < files.length; i++) {
      formData.append('file[]', files[i]);
    }
   
    formData.append('PHPSESSID', '<?php echo session_id(); ?>');
    formData.append('user_id', '{user_id_upload_multi}');
    formData.append('max_thumb_height', '{max_thumb2_height}');
    formData.append('max_thumb_width', '{max_thumb2_width}');
    formData.append('auto_thumbnail_quality', '{auto_thumbnail2_quality}');
    formData.append('thumbnail_proportions', '{thumbnail_proportions}');
    formData.append('direct_upload', '{direct_upload}');
    formData.append('cat_id', '<?php echo $cat_id?>');
   
    var xhr = new XMLHttpRequest();
   
    xhr.open('POST', 'multiupload_2.php', true);
   
    xhr.upload.onprogress = function(e) {
      if (e.lengthComputable) {
        var percent = (e.loaded / e.total) * 100;
        document.getElementById('progressContainer').innerHTML = percent + '% hochgeladen';
      }
    };
   
    xhr.onload = function() {
      if (xhr.status === 200) {
        // Upload erfolgreich
        alert('Upload abgeschlossen');
      } else {
        // Upload fehlgeschlagen
        alert('Fehler beim Hochladen');
      }
    };
   
    xhr.send(formData);
  });
</script>

6
Feedback & Suggestions / Re: 4images 1.10 - Feedback
« on: May 02, 2023, 08:57:11 AM »
Wie ist denn euer Stand dazu aktuell?

7
Feedback & Suggestions / Re: 4images 1.10 - Feedback
« on: February 10, 2023, 08:07:51 PM »
Die Installation unter PHP 8.1 läuft nicht sauber.
Nach der Eingabe der Daten und starten der Installation...

Die Installation läuft weiterhin nicht korrekt durch

....


Das fehlt ebenso wieder

Code: [Select]
ENGINE=MyISAM;Ersetzen mit
Code: [Select]
ENGINE=InnoDB;
Ich finde das sollte man als Update mal nachschieben.

LG



8
Feedback & Suggestions / Re: 4images 1.10 - Feedback
« on: February 03, 2023, 10:15:07 AM »
Klasse, es erfreut immer wieder, wenn wenigstens noch ein bisschen dran gearbeitet wird.

Aber das hier ist falsch :)

News: [2021-11-05] 4images 1.10 released

9
Replace to

Code: [Select]
<script language="javascript" type="text/javascript">
<!--

  var captcha_reload_count = 0;
   var captcha_image_url = "{url_captcha_image}";
  function new_captcha_image() {
    if (captcha_image_url.indexOf('?') == -1) {
        document.getElementById('captcha_image').src= captcha_image_url+'?c='+captcha_reload_count;
      } else {
        document.getElementById('captcha_image').src= captcha_image_url+'&c='+captcha_reload_count;
      }

    document.getElementById('captcha_input').value="";
    document.getElementById('captcha_input').focus();
    captcha_reload_count++;
  }

   function opendetailwindow() {
    window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
  }

// -->
</script>

10
Feedback & Suggestions / Re: 4images 1.9 - Feedback
« 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',
    
'&amp;',
    
$chars
  
);

  
$chars str_replace(">""&gt;",   $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

11
Mods & Plugins (Releases & Support) / Re: [Mod] CSV Export Of Images
« on: October 10, 2021, 02:38:52 PM »
Example: data/media/1/name.csv

12
Aus der install.php müssen folgende Dinge entfernt werden:

function addslashes_array($array) {
  foreach (
$array as $key => $val) {
    
$array[$key] = (is_array($val)) ? addslashes_array($val) : addslashes($val);
  }
  return 
$array;
}


und

if (get_magic_quotes_gpc() == 0) {
  
$HTTP_GET_VARS addslashes_array($HTTP_GET_VARS);
  
$HTTP_POST_VARS addslashes_array($HTTP_POST_VARS);
  
$HTTP_COOKIE_VARS addslashes_array($HTTP_COOKIE_VARS);
}


So klappt auch die Installation.
Nach dem Aufruf ist das ACP als auch das Frontend erreichbar.
Ich nutze zum Test die aktuelle PHP 8.0.11.0

Bisher SUPER!

13
WOW!
Ich werde das in den nächsten Wochen mal durchtesten und ggf. dazu eine manuelle Umsetzung schreiben.
Danke im Voraus!

LG

14
Bug Fixes & Patches / Re: PHP 8 Fix für Liebhaber
« on: August 13, 2021, 01:31:57 PM »
Grüße,

danke für die Mühe, dass ist sehr spannend. Und es ist schön zu sehen, dass es noch ein gewisses Interesse besteht.

Ich liebe dieses System nach wie vor.

Ich denke die Entwickler werden diesen Beitrag berücksichtigen.

Ich werde auch weitermachen, sobald ein offizieller Patch erscheinen wird und mich weiter dem neuen Layout des Backend sowie Frontend widmen.

LG

15
Bug Fixes & Patches / PHP 8 Fix für Liebhaber
« on: August 05, 2021, 09:36:12 PM »
Grüßt euch,

wäre es eventuell möglich in Form einer Kulanz und auch liebe zum System, 4images wenigsten noch einmal vom Code ausgesehen, PHP 8 Ready zu machen?

Unter PHP 7.4 läuft es ohne Probleme, schaltet man auf PHP 8.0.* um, erhält man grundsätzlich nur eine weiße Seite. Keine Fehlermeldung, nichts steht in der php_error oder error Log.
Ich bin sehr gerne bereit einen Obolus dafür zu bezahlen, sodass auch andere den Fix nutzen können.
Ich wäre unfassbar dankbar.

Sowohl in der php.ini habe ich das versucht:
display_errors = on
display_startup_errors = on
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED

In der index.php des Scripts beispielsweise:
error_reporting(E_ALL | E_STRICT);
ini_set('display_startup_errors',1);
ini_set('display_errors',1);

Ich habe mir ein Script heruntergeladen, um zu schauen, ob es bloß an irgendwelchen Funktionen liegt:
https://github.com/wapmorgan/PhpDeprecationDetector

phpdd ./ --target 8.0 oder phpdd -t 8.0 -a 7.4 ./ habe ich verwendet

Das Script sagt mir aber: Analyzer has not detected any issues in your code.

LG

Pages: [1] 2 3 4 5 ... 116