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

Fix the possibilities to search alliance #156

Merged
merged 2 commits into from Apr 23, 2016
Merged

Fix the possibilities to search alliance #156

merged 2 commits into from Apr 23, 2016

Conversation

Jbaukens
Copy link
Contributor

Fix the possibilities to search alliance #154

Fix the possibilities to search alliance #155
@Jbaukens
Copy link
Contributor Author

add me skype then will be easier
xterium.support

Update limit
@jkroepke
Copy link
Owner

Chaging searchText to searchTextt fixed this issue?

@BassXX
Copy link

BassXX commented Mar 27, 2016

Hey there, I am still encountering the issue of not working alliance search.

Maybe you could help me? thank you guys

@jkroepke
Copy link
Owner

@BassXX
Copy link

BassXX commented Mar 29, 2016

Hey Guys!

Unfortunately it´s still giving me no Results while searching at the search page (Tag and Name).

When searching in the alliance page, i get the following 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 %Test% ORDER BY ( IF(ally_name = %Test%t, 1, 0) + IF(ally_name LIKE %Test%, 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}

What could I do to fix this?

@BassXX
Copy link

BassXX commented Apr 23, 2016

The ally search is still not working for me :( I don´t know what I am doing wrong. Anybody can help me?

@jkroepke
Copy link
Owner

@BassXX
Copy link

BassXX commented Apr 23, 2016

thats the way! Thank you very much. Working now!

@jkroepke
Copy link
Owner

Maybe you can provide a pull request for the quick fix?

@BassXX
Copy link

BassXX commented Apr 23, 2016

sure!

@BassXX
Copy link

BassXX commented Apr 23, 2016

Sorry Jan, Somehow i cannot manage to create a new pull request. I am quite a beginner in using GitHub, so please understand :D

But here is the way, how i fixed it:

  1. Changed the original recent file from 2moons master according to: https://github.com/jkroepke/2Moons/pull/156/files
  2. Went to Line 245: Changed "searchTextt" to "searchText"

@BassXX
Copy link

BassXX commented Apr 23, 2016

All right, gotcha! Pull request is open now

@jkroepke jkroepke merged commit 5ffdd12 into jkroepke:master Apr 23, 2016
jkroepke pushed a commit that referenced this pull request Aug 18, 2019
Hide debris recycling if no recyclers on planet
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants