UBoat-Botnet / UBoat

HTTP Botnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fatal error: Cannot declare class Error

brmoda opened this issue · comments

i uploaded the panel in www/PHP folder , and created database "uboat" and imported uboat.sql in it the i surfed :

http://localhost/PHP/

it gives :

Fatal error: Cannot declare class Error, because the name is already in use in C:\wamp64\www\PHP\private\controllers\error.php on line 0

@Souhardya I can review this

@Souhardya I can review this

You are more than welcome to review this :D

It seems that is an error related to namespaces.
Basically we can't redeclare class "Error" outside a namespace, because PHP starting from version 7 has incorporated a native class "Error"

https://www.php.net/manual/es/class.error.php

My theory is that the panel was designed to run using PHP 5.x

@Souhardya Are you OK with assign to me all the issues related to the panel? I can be a maintainer of the panel if you agree.

Sure @matricali
On a side note would it be better to upgrade and adapt the panel to latest PHP versions ?

@matricali Please share a contact medium so we can talk further

If I implement the use of Namespaces, the current code will support both PHP 5.x and 7.x
Another approach for this particular issue would be to change the name of the class "Error" to another one. So, we don't need to implement the use of namespaces along then project (Although my recommendation is to use namespace)

@matricali Please share a contact medium so we can talk further

jorgematricali@gmail.com

@matricali Please share a contact medium so we can talk further

jorgematricali@gmail.com

Please check your mail

commented

same .

commented

how to resolve guys

@62019 I've fixed this on https://github.com/matricali/UBoat-Panel
Can you check out this and give us feedback?
Thanks in advance