Menu

Search histories not being stored.

Help
Dave
2013-04-09
2013-04-21
  • Dave

    Dave - 2013-04-09

    Hello,
    I have a semanticscuttle 0.98.5 setup for personal use, I have one problem with this setup,
    and that is search histories are not stored in the database. I manually checked the sc_searchhistory table and there are no rows, even though I have made several searches since.
    Any help would be appreciated...

    -DC

     
  • Christian Weiske

    • Enable debug mode in config.php
    • Check if any SQL errors are shown
    • Compare the SQL history table structure with the canonical one from data/tables.sql. Are they identical?
     
  • Dave

    Dave - 2013-04-12

    I have enabled debug mode, but I saw no SQL errors. The SQL table structures are the same.
    If this is any help, I am using Ubuntu 12.10.

     
  • Dave

    Dave - 2013-04-19

    I have manually inserted a test term in the sc_searchhistory table, to see what would happen, but nothing is being displayed.

     
  • Christian Weiske

    Did you set "$GLOBALS['sizeSearchHistory']" in your config file to 0?

    Even if not, try setting it to 10 or so:

    $GLOBALS['sizeSearchHistory'] = 10;

     
  • Dave

    Dave - 2013-04-20

    Setting $GLOBALS['sizeSearchHistory'] = 0 seems to have done the trick.
    Thank you so much for your help!

     
  • Christian Weiske

    So you set the variable to 0, and search history gets stored now? That'd be strange, because 0 means "store nothing".

     
  • Dave

    Dave - 2013-04-21

    Actually it doesn't really matter what I set the value to, the histories show up...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.