The script still uses statements like:
while ( list ($key,$val) = each ($array) )
{
This an old way of doing things ( in PHP 6 ?)
Anyway in PHP8.1 the function each() has been removed.
I recommand replacing it with foreach()
foreach($array as $key=>$val)
{
...
}
Did it in my script and now ...
Search found 207 matches
- Wed Sep 17, 2025 4:22 pm
- Forum: PHP
- Topic: PHP Fatal error: Uncaught Error: Call to undefined function each() in /
- Replies: 1
- Views: 6
- Wed Sep 17, 2025 4:10 pm
- Forum: PHP
- Topic: PHP Fatal error: Uncaught Error: Call to undefined function each() in /
- Replies: 1
- Views: 6
PHP Fatal error: Uncaught Error: Call to undefined function each() in /
Got the following error for an old script:
Code: Select all
PHP Fatal error: Uncaught Error: Call to undefined function each() in /file.php
- Fri Aug 08, 2025 12:47 pm
- Forum: Postfix
- Topic: postfix not sending to host
- Replies: 1
- Views: 156321
postfix not sending to host
Hello,
I used to use postfix to send mails directly to another server,
But since the last update it is not working anymore. The mails get bounced (on the sending server).
relay=none, delay=4.2, delays=4.2/0.01/0.04/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error ...
I used to use postfix to send mails directly to another server,
But since the last update it is not working anymore. The mails get bounced (on the sending server).
relay=none, delay=4.2, delays=4.2/0.01/0.04/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error ...
- Thu May 08, 2025 7:39 am
- Forum: Apache
- Topic: apache forward https request to http
- Replies: 1
- Views: 192500
apache forward https request to http
hi,
I (still) have a website with no ssl certificate, so only http.
As most browser now automatically forward to https when typing just the url,
It is a problem.
As I host several site son the same server (same ip, port)
it automatically does to the main site. Not the site intended with the url ...
I (still) have a website with no ssl certificate, so only http.
As most browser now automatically forward to https when typing just the url,
It is a problem.
As I host several site son the same server (same ip, port)
it automatically does to the main site. Not the site intended with the url ...
- Mon Oct 21, 2024 4:43 pm
- Forum: Servers
- Topic: ssl/tls alert certificate unknown: SSL alert number 46
- Replies: 2
- Views: 156031
Re: ssl/tls alert certificate unknown: SSL alert number 46
Yes, indeed accepting the new certificate solved the problem.
But should K-9 not show a warning when the SSL-certificate changes ?
instead of doing nothing ? It is confusing.
But should K-9 not show a warning when the SSL-certificate changes ?
instead of doing nothing ? It is confusing.
- Mon Oct 21, 2024 4:33 pm
- Forum: Servers
- Topic: dovocot: sl/tls alert bad certificate: SSL alert number 42
- Replies: 1
- Views: 219261
dovocot: sl/tls alert bad certificate: SSL alert number 42
Hi,
I have a problem connection to my imap-server; dovecot.
errors in the log
Client soft is thunderbird.
I have a problem connection to my imap-server; dovecot.
errors in the log
Code: Select all
dovecot[2681]: imap-login: Disconnected: Connection closed: SSL_accept() failed: error:0A000412:SSL routines::ssl/tls alert bad certificate: SSL alert number 42 (no auth attempts in 0 secs):
- Sun Oct 20, 2024 2:01 pm
- Forum: Servers
- Topic: ssl/tls alert certificate unknown: SSL alert number 46
- Replies: 2
- Views: 156031
ssl/tls alert certificate unknown: SSL alert number 46
I have the following alert in my logs /va/log messages
from dovecot.
The client is also not showing new messages.
Client software is k-9 mail on Android.
from dovecot.
Code: Select all
SSL_accept() failed: error:0A000416:SSL routines::ssl/tls alert certificate unknown: SSL alert number 46
Client software is k-9 mail on Android.
- Mon Oct 14, 2024 4:45 pm
- Forum: SQL
- Topic: Illegal mix of collations (utf8mb4
- Replies: 1
- Views: 440588
Illegal mix of collations (utf8mb4
Hello,
My query fails, error message:
Illegal mix of collations (utf8mb4_0900_ai_ci,IMPLICIT) and (utf8mb3_general_ci,COERCIBLE) for operation '='
$sql="SELECT media,datum,title FROM messages WHERE id='".$obj->get_id() ."' AND media='".$obj->get_media()."' AND title='".$obj->get_title()."' LIMIT ...
My query fails, error message:
Illegal mix of collations (utf8mb4_0900_ai_ci,IMPLICIT) and (utf8mb3_general_ci,COERCIBLE) for operation '='
$sql="SELECT media,datum,title FROM messages WHERE id='".$obj->get_id() ."' AND media='".$obj->get_media()."' AND title='".$obj->get_title()."' LIMIT ...
- Wed Oct 02, 2024 7:53 am
- Forum: Postfix
- Topic: postfix relay=dovecot status=deferred (temporary failu
- Replies: 1
- Views: 143554
Re: postfix relay=dovecot status=deferred (temporary failu
I finaly comment out the line
It is not strictly needed for dovecot.
And it solved the problem.
But still strange...
Code: Select all
ssl_ca = </etc/ssl/private/file.ca-bundle
And it solved the problem.
But still strange...
- Tue Oct 01, 2024 9:19 pm
- Forum: Postfix
- Topic: postfix relay=dovecot status=deferred (temporary failu
- Replies: 1
- Views: 143554
postfix relay=dovecot status=deferred (temporary failu
I have the following alarm in my logs:
postfix relay=dovecot status=deferred (temporary failu ...
Command output: doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 27: ssl_ca: Can't open file /etc/ssl/private/file.ca-bundle: Permission denied )
Don't understand ...
postfix relay=dovecot status=deferred (temporary failu ...
Command output: doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 27: ssl_ca: Can't open file /etc/ssl/private/file.ca-bundle: Permission denied )
Don't understand ...