givanz / Vvveb

Powerful and easy to use cms to build websites, blogs or ecommerce stores.
https://www.vvveb.com
GNU Affero General Public License v3.0
241 stars 49 forks source link

Deprecated : password_verify() #51

Open Division70 opened 7 months ago

Division70 commented 7 months ago

Hello !

I've just install vvvebCMS... i tried my first admin's connection and :

Warning : Undefined array key "password" in /system/user/admin.php on line 116

Deprecated : password_verify(): Passing null to parameter #2 ($hash) of type string is deprecated in /system/user/auth.php on line 29

The server is a PHP v8.1.

Best.

Christophe

givanz commented 7 months ago

Hi

Thanks for the bug report, this happened when don't import demo content option was selected on install.

You can update install/controller/index.php and then remove config/db.php to reinstall.

https://github.com/givanz/Vvveb/commit/ed78864e6ffa7e2698d8e94ac5e092e92442dd8b

Division70 commented 7 months ago

Hello !

Thanks for you help!

Maybe a little mistake on system/user/admin.php :

if (! ($adminInfo && isset(adminInfo['password'])) ||

Better with isset($adminInfo['password']) ?

When i submit the form in the install page, it returns me this : Warning: Undefined array key "status" in install/controller/index.php on line 72

Best,

C

givanz commented 7 months ago

Sorry for this, it was fixed in a subsequent commit https://github.com/givanz/Vvveb/commit/fa79bcdf9e4ab58f27265f6a9a70b1c67190676b#diff-b6db0434ce0357cfdd8ae5bc92bbac5fa4fc8cafe35d47708446ba09711acf35R115

Undefined array key "status" in install/controller/index.php on line 72

From the warning it looks like the admin user is not created after install, can you provide more details like database used mysql or sqlite and version?

If you are using sqlite you can reset the database by recreating storage/sqlite/vvveb.db with a new blank file. For mysql you can try to drop the database and create it again.

If you are using the code from github please try using latest.zip from the site, this version is the latest and it's used for testing to reset the online demo periodically to check for install and other errors.

Division70 commented 7 months ago

Thanks for your reply, i will try to drop the database and restart everything for the latest.zip. It's a 10.6.16-MariaDB - MariaDB Server

Best,

C