Fatal error: Uncaught Error: Class 'mysqli' not found
-
I was using this Mrs Deajan link as a refrence to to create self registration in captive portal.I would request for suggestion.I was greeted with error.What could be probable error
I will apcreciate you suggestion and help
Thanking you
JanFatal error: Uncaught Error: Class 'mysqli' not found in /var/etc/captiveportal_jan.html:157 Stack trace: #0 /etc/inc/pfsense-utils.inc(2687): include() #1 /etc/inc/captiveportal.inc(2265): get_include_contents('/var/etc/captiv...') #2 /usr/local/captiveportal/index.php(264): portal_reply_page(NULL, 'login', NULL, '58:8a:5a:0c:f0:...', '172.10.0.102') #3 {main} thrown in /var/etc/captiveportal_jan.html on line 157 PHP ERROR: Type: 1, File: /var/etc/captiveportal_jan.html, Line: 157, Message: Uncaught Error: Class 'mysqli' not found in /var/etc/captiveportal_jan.html:157 Stack trace: #0 /etc/inc/pfsense-utils.inc(2687): include() #1 /etc/inc/captiveportal.inc(2265): get_include_contents('/var/etc/captiv...') #2 /usr/local/captiveportal/index.php(264): portal_reply_page(NULL, 'login', NULL, '58:8a:5a:0c:f0:...', '172.10.0.102') #3 {main} thrown
-
@jangchu-dorji said in Fatal error: Uncaught Error: Class 'mysqli' not found:
What could be probable error
You said it yourself :
Class 'mysqli' not found
This = /var/etc/captiveportal_jan.htm is a working copy of your own uploaded captive portal page.
It is asking (wants to include include) PHP MySQL support - client or server, and it wasn't found.From what I remember, you've been patching your pfSense way back in the past. And or added other FreeBSD packages like MySQL client or server support.
Upgrading normally undoes that patching.
That brings a dilemma :
Yo have to redo the patching, but this time the files that need to be modified are different, their content did change over time.Or remove the uploaded captive portal page, and use another one, like the default page.
Where did you get your patch from ?
Ones you start to patch, you need to maintain it yourself so it works with future pfSense version.