New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Php 8.1 #632
Comments
Hello - thanks for the bug report. What version of Postfixadmin are you trying to use? |
Latest 3.3.11 Deprecated: htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated in /srv/postfixadmin/model/PFASmarty.php on line 137 Deprecated: htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated in /srv/postfixadmin/model/PFASmarty.php on line 137 Deprecated: htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated in /srv/postfixadmin/model/PFASmarty.php on line 137 Deprecated: htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated in /srv/postfixadmin/model/PFASmarty.php on line 137 Deprecated: htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated in /srv/postfixadmin/model/PFASmarty.php on line 137 |
Those Deprecated messages are really an aritfact of your PHP configuration. You should probably change your php.ini file, and change the 'error_reporting' level to exclude deprecations. |
the above commit might help though? |
invalid token - could be caused by ...
See also #630 |
Cookies, session works. The error message does not disappear. What I noticed in login.php is that the SESSION['PFA_token'] is not created. I am using PHP memcached. |
It's possible the error warnings from the PHP8.1 deprecations are being output early in the request, before PHP has started the session / sent cookies. I'd suggest you change your php error_reporting level to silence them for now, or tell PHP to log to a file rather than stdout (see https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-log ) |
There are currently no error messages, but cannot login |
first bug:
RESOLVED second bug:
RESOLVED but after fix, bug number Three :
What now? please help p.s. |
you shouldn't have renamed 'templates' to 'templates_c' - they're very different
I'd suggest you :
and then try again? |
yes, thanks! this solved the problem |
Sorry, @ramanzes's message distracted me. Is it still not working? |
Is PHP 8.1 officially supported ? Is anybody successfully running postfixadmin on PHP 8.1 ? |
@PowerKiKi PHP8.1 should work with the code in 'master'. If it doesn't then I'd consider that a bug and something that should be fixed. I suspect I'd attempt to back port any fixes to the last stable branch too. Personally I've been a bit lazy and not really used PHP8+ yet (mostly because I'm not yet in $dayjob). |
Please release a Release Candidate to simplify building |
Hello AH01071: Got error 'PHP message: PHP Warning: session_start(): Cannot find session save handler "memcache" - session startup failed in /www/html/postfixadmin/common.php on line 25PHP message: PHP Warning: session_destroy(): Trying to destroy uninitialized session in /www/html/postfixadmin/public/login.php on line 90PHP message: PHP Warning: session_start(): Cannot find session save handler "memcache" - session startup failed in /www/html/postfixadmin/public/login.php on line 91PHP message: PHP Warning: Undefined array key "theme_favicon" in /www/html/postfixadmin/templates_c/f28feb935365aa7a3f51e6613c4353d63cac3ffc_0.file.header.tpl.php on line 36' Seens I can't login anymore Is there any update for postfixadmin for compatibility php8.1 ? I've rollback to 7.4-fpm to fix the issue Thx :) |
@Nenoni13 I don't think postfixadmin is trying to configure/use a memcache session handler - if you create a "test.php" with : <?php
session_start();
$_SESSION['test'] = $_SESSION['test'] ?? date('c');
var_dump($_SESSION['test']); and point a browser at it and click refresh a few times, i think you'll see a similar moan/warn about your session handler. |
Ok I've juste found my mistake. I've made a mistake in configuration of memcached.ini : session.save_handler="memcached" There is a good one |
Thanks for confirming |
HI, I upgraded from php 7 to php 8.2 and have the same errors. My templates_c is writeable. The error is: for ($i = 0; $i < $j; ++$i) { And the client gets a 403. The nginx config did not change. |
OK, Stupid = off. I just realised my migration was rubbish and I had incorrectly set the permissions on a dir. I am very embarrassed. |
Thanks for confirming @supersophie |
Hi,
I use php 8.1
Too many problems, can't log in... and everything is wrong...
The text was updated successfully, but these errors were encountered: