Skip to content

[BUG] [INSTALL] HTTP ERROR 500 #1106

Answered by globule
globule asked this question in General
Nov 5, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

I found a solution by modifying a method in src/domain/setting/repositories/class.setting.php :

        public function checkIfInstalled()
        {

            try {

                $stmn = $this->db->database->prepare("SHOW TABLES LIKE 'zp_user'");

                $stmn->execute();
                $values = $stmn->fetchAll();
                $stmn->closeCursor();

                if( !count( $values ))
                    return false;

                $stmn = $this->db->database->prepare("SELECT COUNT(*) FROM zp_user");

                $stmn->execute();
                $values = $stmn->fetchAll();
                $stmn->closeCursor();

                return true;

            } ca…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@marcelfolaron
Comment options

@globule
Comment options

Answer selected by marcelfolaron
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants