Giter Club home page Giter Club logo

Comments (11)

adamfranco avatar adamfranco commented on August 14, 2024

mysql_real_escape_string() should work if you already have a MySQL database connection open, if not it will try to create a default one. See the $link_identifier argument at http://php.net/manual/en/function.mysql-real-escape-string.php . Are you running MediaWiki with MySQL or are you using a different database?

from categorysuggest.

bitwombat avatar bitwombat commented on August 14, 2024

Yes, running with MySQL, and it appears to be working otherwise (I can edit a page).

Anything I can help with to debug this? Actually it's public right now if you want to pound on it yourself: http://gbit.com.au/mw/Main_Page The only interesting thing I can think of about my installation is that I installed MediaWiki via Cpanel (i.e. not manually).

from categorysuggest.

bitwombat avatar bitwombat commented on August 14, 2024

Any ideas?

from categorysuggest.

defconzx avatar defconzx commented on August 14, 2024

I'm getting the same error message. Running Mediawiki 1.23.2 with PHP 5.5.9 and MySQL 5.5.38.

from categorysuggest.

wmat avatar wmat commented on August 14, 2024

You should verify the //CONFIGURE WITH YOUR LOCAL CREDENTIALS in CategorySuggestSuggest.php is correct.

from categorysuggest.

defconzx avatar defconzx commented on August 14, 2024

I just update it with the correct credentials and it still doesn't work. Getting the same error.

I have it running on another wiki server with MW 1.22 and PHP 5.3 and it works without putting in any credential info.

from categorysuggest.

wmat avatar wmat commented on August 14, 2024

@defconzx Did you get this resolved?

from categorysuggest.

rajeltomari avatar rajeltomari commented on August 14, 2024

If anyone is still having this issue, I was able to fix it on my own wiki by moving

$dbr =& wfGetDB( DB_SLAVE );

One line above

$searchString = mysql_real_escape_string($query);

So that the final will look like this:

$dbr =& wfGetDB( DB_SLAVE );
$searchString = mysql_real_escape_string($query);

I hope this works for you too.

from categorysuggest.

defconzx avatar defconzx commented on August 14, 2024

This didn't get resolved. Tried rajeltomari suggestion and it doesn't work either.

from categorysuggest.

wmat avatar wmat commented on August 14, 2024

I actually switch to using msCatSuggest which actually works better in my case:

http://www.mediawiki.org/wiki/Extension:MsCatSelect

from categorysuggest.

defconzx avatar defconzx commented on August 14, 2024

Confirmed that this has fixed the issue. Thanks alot!

from categorysuggest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.