Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
I
ISPConfig 3
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 485
    • Issues 485
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 23
    • Merge Requests 23
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • ISPConfig
  • ISPConfig 3
  • Issues
  • #4750

Closed
Open
Opened Aug 05, 2017 by Ghost User@ghost

Php7.1 Warning: Declaration of db::query($sQuery = '') should be compatible with mysqli::query($query, $resultmode = NULL)

Php7.1 Warning: Declaration of db::query($sQuery = '') should be compatible with mysqli::query($query, $resultmode = NULL) in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php

The above error has been reported at least twice for php7.1 in the forum (here and there).

They are both using php7.1 for ISPConfig "unknowingly" when the error was found but those who are testing php7.1 for ISPConfig may have already noticed this earlier.

I am testing a fix since I am also testing ISPConfig with php7.1 which is basically replacing all occurrences (11 altogether) of ($sQuery ='') to ($sQuery, $resultmode = MYSQLI_STORE_RESULT) in the said db_mysql.inc.php file. So far it manages to resolve the above issue but I am not so sure whether it won't cause others.

The modified file of db_mysql.inc.php is attached for reference and testing.

Do try and report as well.

Signed Ahmad Rasyid Ismail "ahrasis" ahrasis-at-gmail.com

Assignee
Assign to
3.1.8
Milestone
3.1.8
Assign milestone
Time tracking
None
Due date
None
Reference: ispconfig/ispconfig3#4750