Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Low search wont rebuild indexes

Status Resolved
Add-on / Version Publisher Low Search 2.0.1
Severity
EE Version 2.8.1

Aaron @ Emagine

Mar 27, 2015

I am trying to rebuild my indexes after moving version of low search to the 4.1.0 and the error coming back is:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: Addons_modules::$publisher_language
Filename: publisher_low_search/ext.publisher_low_search.php
Line Number: 289
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: publisher_low_search/ext.publisher_low_search.php
Line Number: 289
A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: publisher_low_search/ext.publisher_low_search.php
Line Number: 298

Any ideas on how I can rectify this?

#1

BoldMinded (Brian)

Which version of the Publisher Low Search extension are you using? 1.x or 2.x? This is the one you should have if using Low Search 4.x

https://devot-ee.com/add-ons/publisher-low-search

#2

Aaron @ Emagine

yes 2.0.1 is the one I have installed, which is why I was wondering.

#3

BoldMinded (Brian)

Ah, crap. Change line 289 to ee()->publisher_language->get_languages() instead and see if that does it.

#4

Aaron @ Emagine

New Error now

A PHP Error was encountered Severity: Notice Message: Undefined property: Addons_modules::$publisher_language Filename: publisher_low_search/ext.publisher_low_search.php Line Number: 289

Fatal error: Call to a member function get_languages() on a non-object in /var/www/html/admin/expressionengine/third_party/publisher_low_search/ext.publisher_low_search.php on line 289

#5

BoldMinded (Brian)

Ok, before that line add ee()->load->model(‘publisher_language’);

#6

Aaron @ Emagine

ok some of the indexes are being rebuilt, but one in particular wont and I get this error:

Error Number: 2006 MySQL server has gone away

#7

BoldMinded (Brian)

That is a strange error. How many entries are you trying to index?

#8

Aaron @ Emagine

There’s one collection with 1400 entries and it works fine, and this one in particular has 141 - it goes to 100 and then errors out. The thing that is funny is when I rebuild an indexes for another, it seems to say the index is out of date

#9

BoldMinded (Brian)

And if you disable the Publisher Low Search extension the indexes rebuild fine?

#10

Aaron @ Emagine

Yes all of them build out fine, its just this one and when the extension is enabled.

#11

BoldMinded (Brian)

Aaron do you consistently get the MySQL server has gone away error?

#12

BoldMinded (Brian)

What is the value of pconnect in your database config settings?

$db['expressionengine']['pconnect'] = FALSE;

Do you have that set to true or false?

#13

BoldMinded (Brian)

Also, check your mysql config. Do you have reconnect turned on?

mysqli.reconnect = On
#14

Aaron @ Emagine

checking on that now.

#15

Aaron @ Emagine

the mysqli.reconnect is on, getting the same message. There is quite a long debug message, will I send that to you?

#16

Brian Litzinger

Does disabling gzip change the behavior of the indexing at all?

#17

Aaron @ Emagine

no, that doesn’t change this one at all unfortunately. I sent a debug script along via email if that is ok - it was too long to post here.

#18

BoldMinded (Brian)

I replied to your email. Ask Low to see if the output you sent me looks out of the norm… I wouldn’t know.

Login to reply