Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Fatal Error on Import
I'm trying to upgrade from 1 to 2. I'm getting the following error:
Fatal error: Class 'DatabaseStructure' not found in /home/ben/forums.wbpsystems.com/html/applications/garden/controllers/import.php on line 31
I've tried the both the "Dev" and master version. Is there something I'm doing wrong?
Fatal error: Class 'DatabaseStructure' not found in /home/ben/forums.wbpsystems.com/html/applications/garden/controllers/import.php on line 31
I've tried the both the "Dev" and master version. Is there something I'm doing wrong?
0
Comments
Everything is imported, however, only NEW (post import) comments can be searched, is there anything I can do about this?
I assume the old imported comments haven't been indexed in the search tables. I don't know if a "re-index my forum" option exists anywhere; it probably should to cover imports or else every importer will need a search indexer.
Yeah, I looked at the search tables and you are right, it looks like it hasn't indexed and of the old posts. Do you happen to know where in the code I can look at how the indexing works, so that hopefully I can write a simple reindex tool.
(Just as a side question, what was the reasoning for this DB design. It seems as though all that was done was create a manual version of what a MySQL fulltext index would do. And, if there is something special, why wasn't it done with a MySQL trigger. That way the developers wouldn't have to worry about indexing implications every time they insert or update a comment)
I assume the keyword search is for databases that lack fulltext, though I'm not sure that's a good reason for the ridiculous amount of overhead it can create. Probably a topic for another discussion.
Sorry, to be so blunt, but I'm the author of Heap CRM and Torch Project Management, so I spend a lot of my time trying to figure out more efficient ways of executing complex mysql searches, and well this struck me as extremely inefficient.
Maybe I've just been prejudiced here. I've had bad experiences with full-text queries in the past, but I'm willing to give them a go now.
I'd recommend you use the full text index in boolean mode. What you can do then is explode the search term and plop a "*" at the end of each word. That way it matches variations of words (is this what you are talking about with bad experience?)
No matter what you do, run explain on it to make sure it is executing the way you expect.
If you want you can provide the final query or whatever, I can provide some advice on how it might be executed faster by changing it a bit or changing the indexes (for whatever that's worth).