Topic on Project:Support desk

Andygreten (talkcontribs)

First-time post, so forgive the naivete.

Autocomplete (search suggestions) has stopped working on our wiki ever since I made my first edit to LocalSettings.php (added $wgUrlProtocols[] = "file://";

MediaWiki version: 1.23.0

PHP: 5.5.13 (cgi-fcgi)

MySQL: 5.6.19-log

Malyacko (talkcontribs)

Running version 1.23.0 you have bigger problems, e.g. numerous security vulnerabilities. Please upgrade to a supported version.

Andygreten (talkcontribs)

I should add, I undid the edit, and Autocomplete didn't come back -- so I'm assuming the problem is elsewhere. Thanks.

MarkAHershberger (talkcontribs)

As @Malyacko said, you really should upgrade.

Is your wiki public? Could you point to it?

Finally, check your browser's debugging tool. Here are instructions for how to invoke it.

Using that tool, you should be able to see your browser try to connect to your wiki's api.php. If there are problems, that will give you an indication of what they are.

Andygreten (talkcontribs)

Thanks for the replies.

I actually found the problem -- though I'm somewhat embarrassed to share the cause. Somehow a "$" got in on the first line of LocalSettings.php -- so instead of it reading <?php it said $<?php. As soon as I deleted the $, autocomplete came back. Being new to php, I didn't recognize this as a problem.

Thanks for the link on browser debugging. That was new to me. Actually, by doing that, it directed me to other .php files, and that's where I noticed the difference. Thanks again.