Project

General

Profile

Actions

Bug #3938

closed

Captive Portal PHP Error at bootup on current snapshots

Added by Jim Pingle about 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
Captive Portal
Target version:
Start date:
10/15/2014
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.2
Affected Architecture:
All

Description

At boot on a current snapshot with captive portal enabled there is a PHP error displayed:

PHP Errors:
[15-Oct-2014 08:18:55 America/Indiana/Indianapolis] PHP Fatal error: Call to a member function fetchArray() on a non-object in /etc/inc/captiveportal.inc on line 1312

It appears to be trying to read the sqlite db before it has been initialized.

1311:        $response = $DB->query("SELECT * FROM captiveportal {$query}");
1312:            while ($row = $response->fetchArray())
Actions

Also available in: Atom PDF