?
avatar ErikDeMartiis
ErikDeMartiis
31 Mar 2016

Steps to reproduce the issue

Go to Component Menu and select "Smart Search"
Click on "Index" button
The Smart Search Indexer overlay window appear...and stay forever
Opening the web inspector of the browser (I'm using Safari on El Capitain Mac Os X)I can read the JS error

SyntaxError: JSON Parse error: Unrecognized token '<'
parsejquery.min.js:4:16003
parseJSONjquery.min.js:4:16003
parseJSONjquery-migrate.min.js:1:2948
handleFailureindexer.js:65
jjquery.min.js:1:27314
fireWithjquery.min.js:1:28123
xjquery.min.js:4:22146
bjquery.min.js:4:26031


The LOG file
2016-03-31T12:30:16+00:00 INFO 127.0.0.1 - Starting the indexer
2016-03-31T12:30:17+00:00 INFO 127.0.0.1 - Starting the indexer batch process

only 2 lines...no errors, also if I set LOG to Development or Maximum (obviously, some lines of text more, like the query, but no errors)

Expected result

Joomla write content index

Actual result

Stuck forever on "Indexer Running"

System information (as much as possible)

iMac 10.11.3
Safari 9.0.3
Apache 2.2
PHP 5.6 (the same on 5.4)
Base Joomla 3.5 install with standard Example (Brochure English)

Additional comments

avatar ErikDeMartiis ErikDeMartiis - open - 31 Mar 2016
avatar ggppdk
ggppdk - comment - 31 Mar 2016

You imply but you do not say if you *have not installed any 3rd party extensions ??

SyntaxError: JSON Parse error: Unrecognized token '<'

  • providing the JS error is of little use

Unrecognized token '<'
the server responce is broken by some PHP error / warning / notice that breaks the JSON format of the server responce

you need to go to your browser and look at the server responce TEXT, which should reveal the real issue

See below an example of proper response using firefox and firebug, your browser has similar "Network" Tab to examine the server responce

  • find it , and provide it here

responce_firebug

avatar ErikDeMartiis
ErikDeMartiis - comment - 31 Mar 2016

It's a new installation. No 3rd part extension.

schermata 2016-03-31 alle 15 54 09

Regards
Erik

avatar chrisdavenport
chrisdavenport - comment - 31 Mar 2016

From the error message, it looks like your PHP has been compiled without iconv support. I think you will have to ask your hosting company to install it for you.

avatar mbabker
mbabker - comment - 31 Mar 2016

#9688 may be an alternative approach without requiring iconv support (at least in this instance).

avatar infograf768
infograf768 - comment - 31 Mar 2016

can you check if iconv is installed ?

avatar ErikDeMartiis
ErikDeMartiis - comment - 1 Apr 2016

BOOM!
iconv not active was the problem.
I've activated this php extension from my web admin panel and now the indexing process is working.
Thank's for the support.

avatar infograf768
infograf768 - comment - 1 Apr 2016

could you test #9688 after desactivating iconv?

avatar ErikDeMartiis
ErikDeMartiis - comment - 1 Apr 2016

Sure.
Tested now.

I've turned off iconv. I've tried to do and indexing, but it failed. (OK)
Then I've used code contained in #9688, and then indexing; it worked!

Regards.

avatar zero-24
zero-24 - comment - 1 Apr 2016

Great so can you close this issue that and record you test on the Pull Request?

avatar ErikDeMartiis ErikDeMartiis - change - 1 Apr 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-04-01 08:40:16
Closed_By ErikDeMartiis
avatar ErikDeMartiis ErikDeMartiis - close - 1 Apr 2016
avatar ErikDeMartiis ErikDeMartiis - close - 1 Apr 2016

Add a Comment

Login with GitHub to post a comment