codeigniter4 / shield

Authentication and Authorization for CodeIgniter 4
https://shield.codeigniter.com
MIT License
359 stars 128 forks source link

Bug: Undefined constant "CodeIgniter\Database\MySQLi\MYSQLI_STORE_RESULT" #1009

Closed imadepurnamayasa closed 8 months ago

imadepurnamayasa commented 8 months ago

PHP Version

8.3.2

CodeIgniter4 Version

4.4.5

Shield Version

1.0

Which operating systems have you tested for this bug?

Windows

Which server did you use?

cli-server (PHP built-in webserver)

Database

MySQL 8.0.36

Did you customize Shield?

No

What happened?

After I'm install shield from documentation https://shield.codeigniter.com/getting_started/install/, and after I'm run, show massage Undefined constant "CodeIgniter\Database\MySQLi\MYSQLI_STORE_RESULT", before install shield it's normally.

I'm can run migration from cli, and ext mysqli already install in php

Steps to Reproduce

I use this php image and no apache

image i'm run using spark

run php -m

[PHP Modules] bcmath calendar Core ctype curl date dom fileinfo filter hash iconv intl json libxml mbstring mysqli mysqlnd openssl pcre PDO pdo_mysql pdo_pgsql pdo_sqlite Phar random readline Reflection session SimpleXML SPL sqlite3 standard tokenizer xml xmlreader xmlwriter Zend OPcache zlib

[Zend Modules] Zend OPcache

image

Expected Output

image

Anything else?

No response

samsonasik commented 8 months ago

You seems have different ext enabled for web vs cli, ensure that on web env, the mysql* extension installed.

imadepurnamayasa commented 8 months ago

hai, i'm again, my problem is solve, i reinstall my vendor using composer install, before that, i remove my vendor folder. thanks four your supports

kenjis commented 8 months ago

Good to hear.

If you think it is a bug, it is okay to create an issue. But if you don't know it is a bug or not, please use the Discussion: https://github.com/codeigniter4/shield/discussions/categories/q-a