Pagination links to blank page
Hi,
Thanks for making such a great add-on. I've successfully installed Low GoogleSeach on my client's site and getting results when searching for a term. However, whenever I click on either the "Next" or any of the pagination numbers, I get a totally blank page.
Here is my template for the results page:
http://pastie.org/2533382
When I search for something, the URL looks like this:
http://domain.com/search/am9pbnQ
And when I click on the pagination, the URL looks like this:
http://domain.com/search/results/am9p...
I have a suspicion that this has to do with the results_page and/or segment_x
Any help would be great!
=========================================
UPDATE:
=========================================
Ok, I've done a little more digging around and turned on debugging. Here is the output when I click on a link in the pagination:
A Database Error Occurred
Error Number: 1146
Table 'sibone_.exp_search' doesn't exist
SELECT * FROM ('exp_search') WHERE 'search_id' = 'am9pbnQ'
Filename: third_party/structure/ext.structure.php
Line Number: 117
Replies
Low 15 Sep 2011 10:23
Hi Brian,
You need to set the parameter result_page="" in the {exp:low_googlesearch:results} tag to "search". Omitting it will default the path to "search/results".
So try this:
brianyuen 15 Sep 2011 15:37
Thanks Low,
I did try this last night, and am getting the Database error as stated above.
Low 15 Sep 2011 20:40
The error above is generated by a Structure file. Have you raised the issue with them, perhaps?
brianyuen 15 Sep 2011 22:46
I haven't. The error never happened until I installed this add-on, so I thought I would ask you.
Low 16 Sep 2011 07:47
Well, apparently Structure queries the DB on line 117 of exp.structure.php. It tries to get records from the exp_search table, which doesn't exist (you probably disabled the native search module). Low GoogleSearch doesn't use DB tables to store its data, so it is looking like a Structure / Low GoogleSearch incompatibility. And since the error is generated by a Structure file, I'd ask them for some help, too.
It probably has something to do with the strictness of Structure's segment handling...
brianyuen 16 Sep 2011 18:19
Yup, so it's working now. Turns out the native EE search module was turned off. Didn't realize this needed to be enabled.
Low 17 Sep 2011 13:55
It doesn't need to be enabled for Low GoogleSearch, but apparently it needs to be for Structure. Glad it's working now, anyway.