Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
[Solved] Error "No ACL setup yet! Denying access to everyone" on PHP 7.x (OK on 5.6)
Avatar
sTeamTraen #1
Member since Sep 2009 · 20 posts
Group memberships: Members
Show profile · Link to this post
Subject: [Solved] Error "No ACL setup yet! Denying access to everyone" on PHP 7.x (OK on 5.6)
I'm running 2018-04-22a "Greebo", which I upgraded to because I had this bug with an older version, but it continues.

The issue is pretty straightforward. When my PHP version is set to 5.6 my wiki works. With PHP 7.0, 7.1, or 7.2, I get these error messages (even if I'm not trying to log in -- just at the start of doku.php):

Pink background: "User authentication is temporarily unavailable. If this situation persists, please inform your Wiki Admin."
Mauve background: "No ACL setup yet! Denying access to everyone."

White background:
 Permission Denied
 Sorry, you don't have enough rights to continue.

 You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

I have searched for previous occurrences of this issue, but they all seem to involve acl.auth.php. I presume that if that was the problem, my Wiki wouldn't work with PHP 5.6 either. Indeed, I can provoke a similar set of messages by commenting out the "* @ALL 1" line from acl.auth.php, except that I don't see the pink-background message saying "User authentication is temporarily unavailable. If this situation persists, please inform your Wiki Admin."

I have this in my local.php file:
  $conf['authtype'] = 'authmysql';
So I presume the problem is that something about the MySQL setup that I have doesn't like PHP 7.x.  Again, flipping back to PHP 5.6 fixes the problem instantly.

Any help would be appreciated.

Nick
This post was edited on 2018-10-27, 18:12 by sTeamTraen.
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4688 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I seemed to remember something concerning php 7 and mysql.  A google search comes up with this:

Does PHP 7 support MySQL?
PHP 7 has removed support for the mysql extension and affects the following: Any queries using a mysql_connect function will not function. PHP 7 only allows connections to a MySQL database using mysqli or PDO_MySQL.

Not an expert on this but I believe mysql support has been replaced by mariadb.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
sTeamTraen #3
Member since Sep 2009 · 20 posts
Group memberships: Members
Show profile · Link to this post
Ah! Maybe I need to look at mysqli. Thanks!
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-08-21, 06:58:35 (UTC +02:00)