Comments (11)
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.
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.
Any ideas?
from categorysuggest.
I'm getting the same error message. Running Mediawiki 1.23.2 with PHP 5.5.9 and MySQL 5.5.38.
from categorysuggest.
You should verify the //CONFIGURE WITH YOUR LOCAL CREDENTIALS in CategorySuggestSuggest.php is correct.
from categorysuggest.
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.
@defconzx Did you get this resolved?
from categorysuggest.
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.
This didn't get resolved. Tried rajeltomari suggestion and it doesn't work either.
from categorysuggest.
I actually switch to using msCatSuggest which actually works better in my case:
http://www.mediawiki.org/wiki/Extension:MsCatSelect
from categorysuggest.
Confirmed that this has fixed the issue. Thanks alot!
from categorysuggest.
Related Issues (20)
- Categories are taken out of <noinclude> tags when editing Templates
- CategorySuggest requires MySQL for accurate search results
- Messing category wikitext HOT 3
- Categories and inclusion tags HOT 3
- Capitalizing first letters of categories: unnecessary when $wgCapitalLinks = false HOT 1
- Empty lines of Preformatted text being lost when being save HOT 6
- Italian and Spanish translations HOT 2
- Can't search words that are not at the start -> suggested fix -> a visual bug results HOT 2
- Category on file upload not working HOT 1
- Category suggestion no longer working after upgrade to MediaWiki 29.0 HOT 3
- Ability to edit or delete categories within the category no longer works in recent versions of Mediawiki (1.28 & 1.29) HOT 2
- Issue with SMW:PageForms HOT 3
- Upgrade to PHP 7.1 HOT 1
- Bug? Extension:CategorySuggest Doesn't Offer Empty Categories
- Not compatible with Semantic MediaWiki HOT 1
- Error displaying suggested categories
- Greedy star in fnCategorySuggestStripCats
- MySQL connection issue HOT 4
- Suggests all categories, regardless of match HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from categorysuggest.