Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

White page after planet is deleted #554

Open
yaench opened this issue Oct 30, 2022 · 0 comments
Open

White page after planet is deleted #554

yaench opened this issue Oct 30, 2022 · 0 comments

Comments

@yaench
Copy link

yaench commented Oct 30, 2022

If a user deletes a planet, the page is completely white. In the Admin-Tool, a database failure is reported:

30.10.2022 16:34:42, 2a02:1210:3676:7500:99ef:14a7:e2e4:253c, SeriousOffender
Database error

File: /var/www/etoa/htdocs/classes/dbmanager.class.php, line: 176

Query:


			SELECT
				l.shiplist_ship_id as lid,
				l.shiplist_count as lcnt,
				l.shiplist_bunkered as lbcnt,
				l.shiplist_special_ship_bonus_weapon as bweapon,
				l.shiplist_special_ship_bonus_structure as bstructure,
				l.shiplist_special_ship_bonus_shield as bshield,
        l.shiplist_special_ship_bonus_heal as bheal,
				s.*
			FROM
				shiplist l
			INNER JOIN
				ships s 
			ON
				s.ship_id = l.shiplist_ship_id
				AND l.shiplist_user_id=47
				AND l.shiplist_entity_id=
				AND l.shiplist_count>0
			;

Error Message:


You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND l.shiplist_count>0' at line 18

Stack-Trace:

#0 /var/www/etoa/htdocs/inc/functions.inc.php(50): DBManager->query('\n\t\t\tSELECT\n\t\t\t\t...', 1)
#1 /var/www/etoa/htdocs/classes/shiplist.class.php(43): dbquery('\n\t\t\tSELECT\n\t\t\t\t...')
#2 /var/www/etoa/htdocs/classes/shiplist.class.php(18): ShipList->load()
#3 /var/www/etoa/htdocs/content/planetoverview.php(205): ShipList->__construct(NULL, '47', 1)
#4 /var/www/etoa/htdocs/inc/content.inc.php(241): include('/var/www/etoa/h...')
#5 /var/www/etoa/htdocs/index.php(298): require('/var/www/etoa/h...')
#6 {main}

The user has to re-open the page. When I tried to reload the page, the browser asked me for confirmation, I agreed, and then, EtoA told me, that I cannot remove my main planet. I had only the main planet left, I don't know if that would have deleted another planet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant