Recent Posts

Pages: 1 2 3 [4] 5 6 7 8 ... 10
31
It was several pages, but I seem to have fixed it by declaring the varibales blank if not used, for example:
$user_info['user_level'] = isset($user_info['user_level']) ? $user_info['user_level'] : '';
$user_info['user_name'] = isset($user_info['user_name']) ? $user_info['user_name'] : '';
etc.

Everything seems to work fine except I'm not able to login. If I try to login from the admin panel I get this:
Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' '', '')' at line 4 in C:\xampp\htdocs\4images\includes\db_mysqli.php:76 Stack trace: #0 C:\xampp\htdocs\4images\includes\db_mysqli.php(76): mysqli_query(Object(mysqli), 'REPLACE INTO 4i...') #1 C:\xampp\htdocs\4images\includes\sessions.php(138): Db->query('REPLACE INTO 4i...') #2 C:\xampp\htdocs\4images\includes\sessions.php(179): Session->start_session('1', 1) #3 C:\xampp\htdocs\4images\admin\admin_global.php(105): Session->login('Frankie', '4rtttyggh5757DD', 0, 0) #4 C:\xampp\htdocs\4images\admin\index.php(6): require('C:\\xampp\\htdocs...') #5 {main} thrown in C:\xampp\htdocs\4images\includes\db_mysqli.php on line 76

32
Hi,

Thanks for taking the time to share this!

It seems to work for the most part except i keep getting warnings:
Warning: Undefined array key "user_level"
Warning: Undefined array key "user_name"
etc.

Any thoughts on how to fix this?
Thanks

On which pages to get this warnings?  (see URL in browser).
33
Hi,

Thanks for taking the time to share this!

It seems to work for the most part except i keep getting warnings:
Warning: Undefined array key "user_level"
Warning: Undefined array key "user_name"
etc.

Any thoughts on how to fix this?
Thanks
34
Error Messages / Fehlermeldungen / Re: Unable to login or/and request new password
« Last post by Sunny C. on August 28, 2023, 10:27:00 AM »
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.
35
Error Messages / Fehlermeldungen / Unable to login or/and request new password
« Last post by musicalcat on August 25, 2023, 02:32:25 PM »
Hello,

Edit: Solved in another way.
36
Templates & Styles (Releases & Support) / Re: [Template] Prodigy Responsive
« Last post by comicart on August 21, 2023, 05:20:26 AM »
Have you tested this with 1.10?
Do you have an updated version of your theme?
37
Installation, Update & Configuration / Re: Change host
« Last post by stefano54 on July 09, 2023, 05:41:24 PM »
Risolto.
Ok !!
38
Installation, Update & Configuration / Change host
« Last post by stefano54 on July 05, 2023, 02:01:36 PM »
Hello.
after host change the following error appears
how can i fix the error

39
Installation, Update & Configuration / Leuchtkasten
« Last post by Mathias1984 on June 12, 2023, 02:08:18 PM »
Hallo in die Runde,

mir ist seit Tagen Aufgefallen,wenn ich ein bild Veröffenlicht habe wo ich danach auf den Leuchtkasten klicke um das Bild im Profil zu haben wie die anderen,habe gemerkt das dies nicht mehr gespeichert wird,ist das normal?
40
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>
Pages: 1 2 3 [4] 5 6 7 8 ... 10