By Sean Carney on Thursday, 14 January 2016
Posted in Technical Issues
Likes 0
Views 850
Votes 0
Hello Mark,

Your database fix seems to have cleared up all my tickets from yesterday. I did however discover today that when I run the Indexer for Smart-Search none of my EasyBlog posts are being indexed at drcarney.com so they are not visible when a user runs a search from the front end. Other than that I believe the site is working beautifully.

I have tried multiple times to delete the index and then create it again in hopes that the EasyBlog content will get indexed properly.

Sean
This is what I did now to re-index everything again:

1. Disabled all content plugins
2. Disabled the System - K2 plugin
3. Disabled the K2 finder plugin
4. Re-ran the "Clear Index"
5. Re-ran the "Index"

After applying the above, everything seems to be indexing everything correctly now. I have just spent the last 8 hours fixing something that is not even an issue with our extensions / plugins.

This unfortunately cannot go on because to be honest, we have our own stuffs to build as well and we can't be fixing bugs for every extension out there.

Assuming that there are 500 user's experiencing the same / similar issue that you have, we'll be spending 4000 man hours fixing stuffs that isn't ours. That's almost half the year gone! We won't have enough time to build / maintain our own extensions.
·
Sunday, 17 January 2016 14:59
·
0 Likes
·
0 Votes
·
0 Comments
·
There is really something not right with your smart search as I have tried to turn off k2 smart search as it was throwing errors when smart search is trying to index.

However, after disabling that, the smart search index wouldn't work. I really have no idea what is K2 trying to do and I believe it is preventing from the next plugin to work
·
Thursday, 14 January 2016 13:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mark for your reply, Interestingly we do have some other recent history about the smart search which was working two days ago:

History of the Smart-Search EasyBlog problems

Our original forum post when the EasyBlog results were showing up in Smart-Search but all of the links were reporting 404 Errors:

http://stackideas.com/forums/easyblog5-upgrade-broke-all-our-smart-search-urls-for-blog-posts

At this point you provided us a fix somewhere that kept the results displaying in Smart-Search and also fixed the 404 errors by allowing the links to resolve properly thereby removing the 404 Errors. So, at this point, a few days ago we were functioning with EasyBlog5 and Smart Search for EasyBlog and Smart Search for K2.

However, we then discovered that the upgrade of our EasyBlog to version 5 had some other problems that were resolved by Mark thus fixing the following four tickets:

http://stackideas.com/forums/some-of-our-modules-are-displaying-duplicate-blogs-after-upgrading-to-easyblog5

http://stackideas.com/forums/a-blog-of-our-vanished-and-is-displaying-content-of-another-blog-and-even-directing-search-queries-for-the-first-blog-to-the-wrong-blog

http://stackideas.com/forums/a-blog-of-our-vanished-and-is-displaying-content-of-another-blog-and-even-directing-search-queries-for-the-first-blog-to-the-wrong-blog

http://stackideas.com/forums/any-idea-why-my-blogs-on-front-page-are-not-displaying-in-posted-order

These four problems all resolved themselves with the following fix by Mark:

"Okay, it was my bad. Earlier when you wanted to move all posts to site wide, I had to truncate all the revisions so that EasyBlog could regenerate them again. I have done the truncation but entirely forgot to update the `revision_id` column on the #__easyblog_post table.

I have now cleared the revisions and update the revision_id to 0 and it's working correctly now"

Well, everything appeared to be fixed except that now the Blogs stopped being indexed by Smart-Search. So, I am wondering if there might be something in the fix that could have affected the Smart Search results.

I wonder if maybe we have older Smart-Search plugins on our site for EasyBlog and K2.

These are the versions on our server:

Smart Search - EasyBlog Posts Plugin 3.5.0

Smart Search - K2 Plugin 2.6.9

I will also put in a ticket now and ask JoomlaWorks if they have seen this before. But, I think they are going to suggest that if their software was not changed and yours was that the first place to look is in the changes?
·
Friday, 15 January 2016 00:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Interestingly I have a backup of my site before we did the EasyBlog upgrades and in the Smart Search settings BEFORE there were many EasyBlog Engries in the Smart Search Content Maps settings. In the AFTER there are NO EasyBlog Entry items.
I am also going to show this to my host, CloudAccess.net and see if they have any ideas. Something definitely changed.
Sean
·
Friday, 15 January 2016 01:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Just a little progress report. Some blogs are starting to be indexed by Smart Search. That is an improvement. I think my host may be getting things fixed. We were going to install the complete Joomla package to restore Smart Search which seemed to be having problems. I will let you know as soon as it is 100% fixed and then I will come and close this ticket.
·
Friday, 15 January 2016 07:36
·
0 Likes
·
0 Votes
·
0 Comments
·
It ends up the only blogs being indexed are the ones being created after running the Smart Search indexer. So, that means the indexer runs until something causes it to crash. Then it indexes 'new' content after that. But it does not index the older content that was missed because of the crash, which includes all of the blogs.
Our host suggested there may be a conflict between K2 and the new EasyBlog.
I have a ticket in with JoomlaWorks but so far nobody is responding.
·
Friday, 15 January 2016 20:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok. Sorry to use so many words. I just ran two tests.

1) Made a copy of my old site from Jan 7th with EasyBlog3. I cleared the index and then made a new Index.
Result: It worked.

2) Made a copy of my current site from yesterday with EasyBlog5. I deleted the K2 items and EasyBlogs published after Jan 7th. I cleared the index and then made a new index.
Result: It failed just like the current site.

I was trying to see if possibly the problem was inside a K2 Item or a blog but that is not the case.

My next test will be to make a copy of my old site with EasyBlog3 and then upgrade it to EasyBlog5 and see if the index fails. I really am starting to believe the K2 conflict is somehow with changes made to my site to fix other EasyBlog5 bugs. But, I can't prove that right now. It is however looking very likely.
·
Saturday, 16 January 2016 04:10
·
0 Likes
·
0 Votes
·
0 Comments
·
I tried to install EasyBlog5 on a test site with my old content at drc.cloudaccess.host but I believe it did not work because that domain is not listed in my dashboard. I want to update it and see if the indexing stops working immediately.
·
Saturday, 16 January 2016 07:35
·
0 Likes
·
0 Votes
·
0 Comments
·
When you re-save a blog post, EasyBlog tells smart search to index the item and during this time K2's smart search plugin isn't triggered.

However, if you go to the Smart search area to purge and re-index, Joomla's smart search will trigger all smart search plugins to re-index the items and since K2's smart search is throwing an error, anything after that would not be indexed because the process is already stalled.

If you don't believe me, try to do this:

1. Disable K2's Smart Search
2. Go to Smart Search
3. Hit on the "Clear Index" button
4. Hit on the "Index" button

Result: Nothing will get indexed at all.

Then, try to re-enable the plugin again and this time turn on the Smart search for K2. Run the index again. You'll notice that the index process will never get completed.
·
Saturday, 16 January 2016 17:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark,

I totally believe that what you are saying is true. However, I have a backup copy of my site from the day before you installed EasyBlog5 for me in which the problem does not exist.

That fact that turning off the K2 plugin does not allow the EasyBlog5 content to be Smart Search indexed on the live site seems to indicate a problem still with EasyBlog5?

BTW, I followed your instructions above on the backup copy of the site (with EasyBlog3 still) and after I disabled the K2 Smart Search plugin the index worked just fine and indexed all of my EasyBlog3 content on the old backup. Of course it did not index any K2 content because I had turned off the plugin. When I turned the plugin back on it indexed my K2 content as well.

I am wondering if you would be willing to install EasyBlog5 on the backup site which currently has EasyBlog3? At this point we know that the Smart Search index is working perfectly well on that site. It is my Jan 7th backup located at drc.cloudaccess.host

I would think we would need to do the following:
1) You install EasyBlog5 on the backup copy located at drc.cloudaccess.host
2) Then run the tests to see if K2 Smart Search indexing still breaks or if it works properly.

Note: While you install the site on this backup copy I would ask you to check to make sure we do not encounter the bug that we dealt with when we installed EasyBlog5 on the live site on Jan 8th:

http://stackideas.com/forums/easyblog5-upgrade-broke-all-our-smart-search-urls-for-blog-posts

This is the bug where after installing EasyBlog5 all of my Smart Search links for EasyBlog provided 404 errors!

The backup copy of the site with EasyBlog3 is at drc.cloudaccess.host
You can login at drc.cloudaccess.host/administrator

I have made the joomla login and password the same there as for my regular site at drcarney.com

If the Smart Search does not break after you install EasyBlog5 then I would proceed to recreate all the K2 Items and EasyBlog items that have been published on my live site after the date of Jan 7th and I would test each time to make sure that none of those items are what broke the Smart Search. If the site continues to work then I would replace my live site with older backup copied site.

I have also set it to have the same FTP password as my live site (drcarney.com) although the login is different.
The login at drc.cloudaccess.host for FTP is: drcclou3
·
Sunday, 17 January 2016 10:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark, I may have to eat some of my previous words. I think I am finding the answer. I found the following page with instructions on how to run the indexer from the command line: https://docs.joomla.org/Setting_up_automatic_Smart_Search_indexing

When I followed the instructions and ran the indexer i got the following message ending with an error:
-sh-4.1$ php finder_indexer.php
Smart Search INDEXER
============================
Starting Indexer
Setting up Smart Search plugins
Setup 846 items in 0.194 seconds.
PHP Notice: Use of undefined constant K2_JVERSION - assumed 'K2_JVERSION' in /mnt/data/vhosts/casite-505587.cloudaccess.net/httpdocs/components/com_k2/helpers/route.php on line 191

Notice: Use of undefined constant K2_JVERSION - assumed 'K2_JVERSION' in /mnt/data/vhosts/casite-505587.cloudaccess.net/httpdocs/components/com_k2/helpers/route.php on line 191
PHP Notice: Use of undefined constant K2_JVERSION - assumed 'K2_JVERSION' in /mnt/data/vhosts/casite-505587.cloudaccess.net/httpdocs/components/com_k2/helpers/route.php on line 191

Notice: Use of undefined constant K2_JVERSION - assumed 'K2_JVERSION' in /mnt/data/vhosts/casite-505587.cloudaccess.net/httpdocs/components/com_k2/helpers/route.php on line 191
PHP Notice: Use of undefined constant K2_JVERSION - assumed 'K2_JVERSION' in /mnt/data/vhosts/casite-505587.cloudaccess.net/httpdocs/components/com_k2/helpers/route.php on line 191

Notice: Use of undefined constant K2_JVERSION - assumed 'K2_JVERSION' in /mnt/data/vhosts/casite-505587.cloudaccess.net/httpdocs/components/com_k2/helpers/route.php on line 191
PHP Fatal error: Class 'K2Model' not found in /mnt/data/vhosts/casite-505587.cloudaccess.net/httpdocs/components/com_k2/helpers/route.php on line 318

Fatal error: Class 'K2Model' not found in /mnt/data/vhosts/casite-505587.cloudaccess.net/httpdocs/components/com_k2/helpers/route.php on line 318
-sh-4.1$

https://docs.joomla.org/Smart_Search_on_large_sites
·
Sunday, 17 January 2016 12:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Wow Mark,

Two comments:
1) I am extremely grateful for what you have done!
2) I am very sorry to have caused you so much extra work!

I am backing up your work now and will then Index as much K2 items as I can to the index on top of this. That way I will have all of my EasyBlog content indexed and most of the K should get indexed.

Then I will push, push and push for them to solve this problem!

Thank you again!!!!!!!

Sean
·
Sunday, 17 January 2016 23:15
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Monday, 18 January 2016 00:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post