Word Count Search

Word Count Search 2.11.0

No permission to download
I don’t see any screenshots, where is this displayed? Just on the search page? Can this be limited to Search first post only?
The XF1 version has screenshots; https://xenforo.com/community/resources/word-count-search.4763/

The XF2 version is functionally identical, just looks XF2-like (so the thread options has been moved to filtering options on a threadlist).

What Is like to do is Display pre-defines Search Criteria (ie Buttons for “less than 500 words” “less than 2500 words” “less than 5000 words”) that considers first post only, and displays these predefines search shortcuts or thread filtering only for specific nodes. If you’re willing I’d be interested in funding development to incorporate these festures.
That is possible, but there are no pre-defined searches.

Please open a ticket on my site if you are interested
 
I have installed Search Improvements.

When i installed Word Count Search, I got this error :
Code:
XF\Db\Exception: xf_thread: MySQL query error [1138]: Invalid use of NULL value in src/XF/Db/AbstractStatement.php at line 217
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 196
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 77
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 89
XF\Db\AbstractAdapter->query() in src/XF/Db/Schema/AbstractDdl.php at line 151
XF\Db\Schema\AbstractDdl->apply() in src/XF/Db/SchemaManager.php at line 149
XF\Db\SchemaManager->alterTable() in src/addons/SV/WordCountSearch/Setup.php at line 44
SV\WordCountSearch\Setup->installStep2() in src/XF/AddOn/StepRunnerInstallTrait.php at line 60
SV\WordCountSearch\Setup->installStepRunner() in src/XF/AddOn/StepRunnerInstallTrait.php at line 27
SV\WordCountSearch\Setup->install() in src/XF/Admin/Controller/AddOn.php at line 398
XF\Admin\Controller\AddOn->actionInstall() in src/XF/Mvc/Dispatcher.php at line 321
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
XF\App->run() in src/XF.php at line 390
XF::runApp() in admin.php at line 13
 
Thread Starter Alerts depends on it, and it is handy if you have a site with longer articles being semi-common.
 
I'm having a devil of a time trying to install this on a large test board (with about 20 million posts). It may have something to do with me using enhanced search.

When I first tried to install it, I actually had enhanced search disabled, and the installation process tried to generate a copy of the entire (huge) search index which caused the server to run out of disk space.

I then switched to enhanced search, rebuilt the search index, and then tried to uninstall and reinstall word count search.

The install terminated fairly quickly with a 500 error, and attempting to view any thread on the board results in a 500 error. (Despite the install failing, the addon shows as installed. If I disable the addon everything works fine).

The XenForo error log shows the following error from attempting to install:

Code:
ErrorException: Fatal Error: Access level to SV\WordCountSearch\XF\Entity\Post::_preSave() must be public (as in class XENTR\ThreadNotice\XF\Entity\Post) src/addons/SV/WordCountSearch/XF/Entity/Post.php:192

Stack trace
#0 [internal function]: XF::handleFatalError()
#1 {main}
Request state
array(4) {
  ["url"] => string(31) "/forum2/admin.php?tools/run-job"
  ["referrer"] => string(161) "https://www.WEBSITE.com/forum2/admin.php?tools/run-job&only_ids=104&_xfRedirect=https%3A%2F%2Fwww.WEBSITE.com%2Fforum2%2Fadmin.php%3Fadd-ons%2F"
  ["_GET"] => array(1) {
    ["tools/run-job"] => string(0) ""
  }
  ["_POST"] => array(3) {
    ["_xfRedirect"] => string(58) "https://www.WEBSITE.com/forum2/admin.php?add-ons/"
    ["_xfToken"] => string(8) "********"
    ["only_ids"] => string(3) "104"
  }
}

The XenForo error log shows something like the following whenever I try to access a thread:

Code:
ErrorException: Fatal Error: Access level to SV\WordCountSearch\XF\Entity\Post::_preSave() must be public (as in class XENTR\ThreadNotice\XF\Entity\Post) src/addons/SV/WordCountSearch/XF/Entity/Post.php:0

Stack trace
#0 [internal function]: XF::handleFatalError()
#1 {main}

Request state

array(4) {
  ["url"] => string(67) "/forum2/threads/THREADNAME.461984/page-440"
  ["referrer"] => string(99) "https://www.WEBSITE.com/forum2/threads/THREADNAME.461984/page-441"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

I've tried to uninstall and reinstall a second time but I got the same error.

Maybe my installation was hosed the moment the FIRST install failed due to running out of disk space?
 
I'm having a devil of a time trying to install this on a large test board (with about 20 million posts). It may have something to do with me using enhanced search.

When I first tried to install it, I actually had enhanced search disabled, and the installation process tried to generate a copy of the entire (huge) search index which caused the server to run out of disk space.

I then switched to enhanced search, rebuilt the search index, and then tried to uninstall and reinstall word count search.

The install terminated fairly quickly with a 500 error, and attempting to view any thread on the board results in a 500 error. (Despite the install failing, the addon shows as installed. If I disable the addon everything works fine).
Yeah, it needs to extend the xf_search_index table, which obviously is going to eat up diskspace if it is large. If you have elasticsearch you can clear this table.

The XenForo error log shows the following error from attempting to install:

Code:
ErrorException: Fatal Error: Access level to SV\WordCountSearch\XF\Entity\Post::_preSave() must be public (as in class XENTR\ThreadNotice\XF\Entity\Post) src/addons/SV/WordCountSearch/XF/Entity/Post.php:192

Stack trace
#0 [internal function]: XF::handleFatalError()
#1 {main}
Request state
array(4) {
  ["url"] => string(31) "/forum2/admin.php?tools/run-job"
  ["referrer"] => string(161) "https://www.WEBSITE.com/forum2/admin.php?tools/run-job&only_ids=104&_xfRedirect=https%3A%2F%2Fwww.WEBSITE.com%2Fforum2%2Fadmin.php%3Fadd-ons%2F"
  ["_GET"] => array(1) {
    ["tools/run-job"] => string(0) ""
  }
  ["_POST"] => array(3) {
    ["_xfRedirect"] => string(58) "https://www.WEBSITE.com/forum2/admin.php?add-ons/"
    ["_xfToken"] => string(8) "********"
    ["only_ids"] => string(3) "104"
  }
}

The XenForo error log shows something like the following whenever I try to access a thread:

Code:
ErrorException: Fatal Error: Access level to SV\WordCountSearch\XF\Entity\Post::_preSave() must be public (as in class XENTR\ThreadNotice\XF\Entity\Post) src/addons/SV/WordCountSearch/XF/Entity/Post.php:0

Stack trace
#0 [internal function]: XF::handleFatalError()
#1 {main}

Request state

array(4) {
  ["url"] => string(67) "/forum2/threads/THREADNAME.461984/page-440"
  ["referrer"] => string(99) "https://www.WEBSITE.com/forum2/threads/THREADNAME.461984/page-441"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

I've tried to uninstall and reinstall a second time but I got the same error.

Maybe my installation was hosed the moment the FIRST install failed due to running out of disk space?
This is a bug in XENTR\ThreadNotice, as it is incorrectly extending classes.

Effectively most of my add-ons which touch threads or posts will error with that add-on installed.

The install isn't hosted, you will just need to disable that add-on or get it updated.
 
Top Bottom