Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Alliance Tag & Alliance Name Search does not work #154

Closed
BassXX opened this issue Mar 11, 2016 · 15 comments
Closed

Alliance Tag & Alliance Name Search does not work #154

BassXX opened this issue Mar 11, 2016 · 15 comments

Comments

@BassXX
Copy link

BassXX commented Mar 11, 2016

Hello guys, just want to inform you, that the Alliance Tag and Name is not working for me. Player and Planet Search is working fine for me.

Hope we can fix that soon! Thank you guys!

@BassXX
Copy link
Author

BassXX commented Mar 15, 2016

Hey, I have changed the coden (2 line insertions, 1 line removal) in ShowAlliancePage.class.php, but unfortunately the search is still giving me no results :(

@lilmnm-kamikaze-
Copy link

Is there any kind of error that's being displayed or does it just not do anything?

Date: Tue, 15 Mar 2016 03:58:54 -0700
From: [email protected]
To: [email protected]
Subject: Re: [2Moons] Alliance Tag & Alliance Name Search does not work (#154)

Hey, I have changed the coden (2 line insertions, 1 line removal) in ShowAlliancePage.class.php, but unfortunately the search is still giving me no results :(


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#154 (comment)

@BassXX
Copy link
Author

BassXX commented Mar 16, 2016

Hey there,

No error at all, it just displays no results, although allies are existing

@Jbaukens
Copy link
Contributor

can you try updated the file

@BassXX
Copy link
Author

BassXX commented Mar 16, 2016

Greetings Hilarious001,

I just modified the file, but still get an empty result when performing the search.

Thank you guys for trying to help me out. Hopefully we can fix this

@Jbaukens
Copy link
Contributor

its working for me so i probably changed somethin else on the alliance page i will look when i am home so i can give you all modification or add me skype xterium.support

@BassXX
Copy link
Author

BassXX commented Mar 16, 2016

i have added you to skype already, but there was no reply yet. Pls take a look at your skype :)

@BassXX
Copy link
Author

BassXX commented Mar 17, 2016

Or maybe you could just upload the complete .php file, so I could make the search work

@lilmnm-kamikaze-
Copy link

HE did. that's whats in the pull request. what is the link to your version of the game? maybe he can look from there

@BassXX
Copy link
Author

BassXX commented Mar 18, 2016

Okay here it is: http://ddclan.mrtv.biz/game
Thanks for helping me guys

@BassXX
Copy link
Author

BassXX commented Mar 22, 2016

By the way: If I search for allies not from search page, but from the allies page, i receive the following SQL error:

Message: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens

Query-Code:SELECT id, ally_name, ally_tag, ally_members FROM uni1_alliance WHERE ally_universe = 1 AND ally_name LIKE %Admin Team% ORDER BY ( IF(ally_name = %Admin Team%t, 1, 0) + IF(ally_name LIKE %Admin Team%, 1, 0) ) DESC,ally_name ASC LIMIT 25;
File: /includes/classes/Database.class.php
Line: 109
URL: http://ddclan.mrtv.biz/game/game.php?page=alliance&mode=search
PHP-Version: 5.5.9-1ubuntu4.14
PHP-API: fpm-fcgi
MySQL-Cleint-Version: mysqlnd 5.0.11-dev - 20120503 - $Id: bf9ad53b11c9a57efdb1057292d73b928b8c5c77 $
2Moons Version: 1.8.git
Debug Backtrace:
#0 /includes/classes/Database.class.php(176): Database->_query('SELECT id, ally...', Array, 'select')
#1 /includes/pages/game/ShowAlliancePage.class.php(252): Database->select('SELECT id, ally...', Array)
#2 /game.php(57): ShowAlliancePage->search()
#3 {main}

@lilmnm-kamikaze-
Copy link

shouldnt this also look to see if the search text is like the Alliance tag instead of trying to search for the alliance name twice?

@BassXX
Copy link
Author

BassXX commented Mar 23, 2016

I receive the same error if I search for the Alliance Tag

@lilmnm-kamikaze-
Copy link

that error shows its only looking for the name not the alliance tag

@BassXX
Copy link
Author

BassXX commented Mar 25, 2016

Sorry, I don´t understand properly. What do you exactly recommend me to do?

jkroepke pushed a commit that referenced this issue Aug 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants