• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Fatal error: Uncaught Error: Class 'mysqli' not found

Scheduled Pinned Locked Moved Captive Portal
2 Posts 2 Posters 867 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    Jangchu Dorji
    last edited by Mar 5, 2021, 4:50 AM

    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
    Jan

    Fatal 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

    G 1 Reply Last reply Mar 5, 2021, 6:17 AM Reply Quote 0
    • G
      Gertjan @Jangchu Dorji
      last edited by Mar 5, 2021, 6:17 AM

      @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.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received