Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Send sql error #534
An sql syntax error was reported when running the send page from the command line
This was caused by incorrect permissions being derived when phplist is run from the command line. There are two changes
Screenshots (if appropriate):
The change to function accessLevel() is highlighting an error elsewhere.
But that function uses accessLevel() to restrict creating a link to only those admins with permission. In this case there is no admin because phplist hasn't been initialised, so an empty string is returned.
Previously accessLevel() returning 0 would match with 'owner', which is wrong, and the link would be created.
The same problem happens with the link to "Continue with phpList setup" after initialising the database. With the change to accessLevel() that also generates an empty link.
@michield Any insight on this? Having accessLevel() return 0 is wrong but it's not clear whether that then allows any unauthorised access.
There used to be some code to check if the DB had been initialised and if not, it would return true for the access function. I'm not sure if that has been removed and is causing this issue?
It was in index.php. It may be that I removed it as a security issue, but it needs adding back in.