Announcement

#1 2023-12-03 10:35:39

groofertje
Member
Belgium
2023-12-03
11

Php error

after i filled the setuppage, sql, user i receive the following error.
.
I'am using  Piwigo 13.8.0 on Debian with php 8.2 and use chrome as web
this is a part of the NGINX errolog.


Stack trace:
#0 /piwigo/install.php(328): fputs()
#1 {main}
  thrown in /piwigo/install.php on line 328" while reading response header from upstream, client: 192.168.1.1, server: xxxyyy.be, request: "POST /install.php?language=nl_NL HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "xxx.yyy.be", referrer: "https://xxx.zzz.be/install.php"
2023/12/01 11:18:13 [error] 189540#189540: *14 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to a member function set_charset() on null in /piwigo/include/dblayer/functions_mysqli.inc.php:88

Stack trace:
#0 /piwigo/install.php(261): pwg_db_check_charset()
#1 {main}
  thrown in /piwigo/include/dblayer/functions_mysqli.inc.php on line 88" while reading response header from upstream, client: 192.168.1.1, server: xxx.yyy.be, request: "POST /install.php?language=nl_NL HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "xxx.yyy.be", referrer: "https://xxx.zzz.be/install.php?language=nl_NL"
2023/12/01 11:19:53 [error] 189540#189540: *14 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: fputs(): Argument #1 ($stream) must be of type resource, bool given in /piwigo/install.php:328

I changed the name of the host in this log for security reasons

someone a idea
Srr for very bad english, i'am dutch

Tx

Offline

 

#2 2023-12-03 11:09:18

TOnin
Member
1970-01-01
106

Re: Php error

Hi,
I think your SQL settings may be wrong, check, and try again.

Offline

 

#3 2023-12-03 12:06:48

erAck
Only trying to help
2015-09-06
1970

Re: Php error

"member function set_charset() on null" means PHP mysqli couldn't be instantiated. You probably don't have the PHP mysqli extension installed/enabled.


Running Piwigo at https://erack.net/gallery/

Online

 

#4 2023-12-04 10:04:11

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13773

Re: Php error

... and I can tell you Piwigo 13 won't work fine on PHP 8.2. Need Piwigo 14 to be compatible with PHP 8.2+

Offline

 

#5 2023-12-04 10:29:04

groofertje
Member
Belgium
2023-12-03
11

Re: Php error

tx fot the answers

TOnin :  sql is good, i use the username and database as a test in a node-red script and had no problem

erAck : i checked and PHP mysqli is installed.

What i did
removed al the files in the root directory and manual recopied in the root folder van de webserver.

Reloaded nginx and php-fpm

Login to the install pagina and filled al the fields in the form, even those preinstalled as localhost and database-prefix

For some weird reason al was going well. Porblaly i did something verry wrong the first time

But now  my webpagina is repeateling blurred with following errors

Deprecated: Creation of dynamic property Smarty_Internal_Template::$compiler is deprecated in /www/public/piwigo/include/smarty/libs/sysplugins/smarty_internal_template.php on line 719

Deprecated: Creation of dynamic property Smarty_Variable::$do_else is deprecated in /www/public/piwigo/_data/templates_c/p6jhns^e51eae470ca51026be55979a21f2c915f43eb129_0.file.photos_add_direct.tpl.php on line 493

Deprecated: Creation of dynamic property CssAtMediaStartToken::$MediaTypes is deprecated in /www/public/piwigo/include/cssmin.class.php on line 34

Offline

 

#6 2023-12-04 10:32:38

groofertje
Member
Belgium
2023-12-03
11

Re: Php error

PLG, then i have a big problem, because when i go to the download page of piwigo the only version i see is 13.8.0
:-(

Offline

 

#7 2023-12-04 10:44:47

TOnin
Member
1970-01-01
106

Re: Php error

You can give a try to the release candidate #2 from here https://piwigo.org/forum/viewtopic.php?id=33231

Offline

 

#8 2023-12-04 12:38:12

groofertje
Member
Belgium
2023-12-03
11

Re: Php error

tx  i give it tomorrow a try

Offline

 

#9 2023-12-05 09:26:27

groofertje
Member
Belgium
2023-12-03
11

Re: Php error

Tx TOnin, i installed the 14.0.0RC2 and for the moment i don't have problems.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact