Loading...
 
Tiki 12.x solution for issues described below: change "Unified Search Engine" to "MySQL Full Text Search" and keep "Incremental Index Update" activated




This page should be merged with Search within files


Check file indexing

This page is related to Troubleshooting

Some users have experienced this type of errors (and all went apparently away in the same way):

  • after editing a page i was not returned to the wikipage but just got a blank white page. the edit still worked in Tiki7 but not in Tiki8.
  • when uploading a file to the filegallery the "progress wheel" would just continue spinning forever never going anywhere (i could click "browse gallery" and the file would be uploaded correctly)
  • I upgraded, but the problem didnt go away. infact it got worse, now the edits dont even go through, i just get a white page and the changes i made are lost. the progress wheel thing still happens and the file still gets uploaded.


Once the php error messages were turned on, this was the message shown:

Fatal error: require_once() function.require: Failed opening required 'Zend/Search/Lucene/Storage/File/Filesystem.php' (include_path='/somepath/public_html/lib/pear:.:/usr/local/php52/pear:/somepath/public_html/lib/core:/somepath/public_html/') in /somepath/public_html/lib/core/Zend/Search/Lucene/Storage/Directory/Filesystem.php on line 349


Potential Solution:
Try switching off incremental index update at Search settings (tiki-admin.php?page=search)

Comments about this potential solution
Switching off incremental updates might make the problem go away but then the search won't work properly anymore

Here are a few ideas regarding search index failures

It could be a php path problem - your error message lists an odd one in there, so possibly uncommenting this example line in your .htaccess file will do the trick (line 177 in _htaccess in 8.x - to uncomment it remove the # char from the front)

#php_value include_path "."


...which will reset the path to just the tiki directory.

The following points probably may help in some cases.

It might be a file system permission issue - your apache user (usually www-data) needs write access to the temp directory in your Tiki, and if there are either temp/unified-index or temp/unified-index-new directories there then www-data needs to own those dirs and files (which occasionally i've found messed up).

You probably already have apache able to write to temp (or lots of other stuff wouldn't work) so if there's any unified-index dirs in there, remove them (put them somewhere safe just in case maybe) and then rebuild the search index using the link on admin/search.

Some sites won't fully index due to errors in wiki pages etc, usually when using plugins after upgrades - if the page blows up badly enough this can stop indexing from working, but without necessarily telling you anything went wrong (much better in 8.x than 7.x).

In order to track these down some code was added (sort of so far undocumented) with a logging facility to the search engine rebuild code - add "&loggit" to the end of the rebuild index url in search/admin - e.g:

/tiki-admin.php?page=search&rebuild=now&loggit


The log file will be temp/Search_Indexer.log and gets recreated fresh on each run.

Finally, as a big tiki will often take longer to index than the web server's timeout, a small shell script was addded which can be run in a cron script or just through the terminal - (you need to run it as the apache user, so will effectively need to be able to "sudo") basic usage would be:

  • Rebuild the index (and optionally log each document)
    sudo -u www-data php lib/search/shell.php rebuild [log]

  • Run the process queue (with optional number of changes to process)
    sudo -u www-data php lib/search/shell.php process [integer (default 10)]

  • Optimize
    sudo -u www-data php lib/search/shell.php optimize

Related


Page last modified on Sunday 30 October, 2016 13:06:32 GMT-0000

doc.tiki.org

Bootstrap AdminGuide UserGuide

Keywords

Keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting
Articles and Submissions
Backlinks
Banners
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution
Cookie
Copyright
Credit
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
Draw
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags
Task
Tell a Friend, alert + Social Bookmarking
TikiTests
Theme CSS & Smarty
Trackers
Transitions
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebDAV
Webmail
Web Services
Wiki History, page rename, etc
Wiki Plugin extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG
XMLRPC

Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki
Show PHP error messages