Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search plugin (I18N)
Is there a simple way to generate *link(s) only* for first (or all) search result(s)
The idea is that a link to an anchor, e.g., in a(n 18n) faq, requires intricate matching between the link(s) and the target anchor.
A more robust way would be to make a call such as
<a href="(% searchresult tags=faq words='phrase_to_be_found,phrase2' link %)">wordToBeClarified</a>
or (using n00dles' link shortcode)
[link src="(% searchresult tags=faq words='phrase_to_be_found,phrase2' link %)"]wordToBeClarified[/link]
Or, better yet, has anyone made a component to do something similar?
I know, the ultimate way is to use return_searchresult and handle the search results with a component to extract the exact call, but I don't want to lose the highly appreciated i18n_search marked results in the i18n_faq -- and maybe somewone has already invented this wheel.
Please forgive me for asking without reading all 26 forum pages on i18n_search.
(a more hierarchical support forum with solutions for each subtopic could simplify the search for solutions)
Reply
We have installed "I18N Search" in our website.

But the Search Page at the following URL does not display any result after Search:
http://www.shastras.com/search/

Please Verify and Guide us as to what to do this regard.

Thanks,

Lakshmanan
Reply
Did you follow the plugin instructions?
Have you inserted (% searchform %) (% searchresults %) in your search page?
Reply
(2019-05-16, 00:24:43)Carlos Wrote: Did you follow the plugin instructions?
Have you inserted (% searchform %) (% searchresults %) in your search page?

Yes, we have the following Code in that Page:
Code:
<p>(% searchform %)<br />
    (% searchresults %)</p>
Reply
Edit and save any page (no need to do any change), to make sure the plugin generates its index files.
Reply
(2019-05-16, 03:59:59)Carlos Wrote: Edit and save any page (no need to do any change), to make sure the plugin generates its index files.

This has not made any difference. Thanks.
Reply
After updating any page, you should have some index files (i18n_tag_index.txt, i18n_date_index.txt, ...) in folder /data/other/

If not, perhaps the plugin cannot write those files for some reason. Go to admin-> Support -> Website health check and see if there is any warning under "Directory Permissions".
Reply
Thanks for your guidance.

We are finding only the following i18n files in folder /data/other/:
i18n_menu_cache.xml
i18n_search_settings.xml
i18n_settings.xml

The i18n index files are not there.

There is also no Warning under Directory Permissions after Health Check:
/data/other/ 0755 Writable - OK

Activation after Deactivation also has not helped.
Reply
We just tried with the following code also:
(% searchform showTags:0 ajax:0 %) (% searchresults %)

This also has not helped.

Shall we include jQuery in the template and then try?
Reply
The plugin should work ok without javascript, using the default placeholders (% searchform %) (% searchresults %)

I think that the problem is that for some reason it is not generating the index files.

I suggest your check your errorlog.txt file (in data/other/logs) to see if there are any errors related to this plugin.
Reply
(2019-05-17, 05:26:43)Carlos Wrote: The plugin should work ok without javascript, using the default placeholders (% searchform %) (% searchresults %)

I think that the problem is that for some reason it is not generating the index files.

I suggest your check your errorlog.txt file (in data/other/logs) to see if there are any errors related to this plugin.

Dear Mr. Carlos,

We do not have the following file:
data/other/logs/errorlog.txt

data/other/logs/failedlogins.log is of 0 bytes.

Please let us know whether this issue could be due to one of the following reasons:
  •     1160 Total Pages
  •     Admin Folder is Restricted through .htaccess Password
  •     /data/other/logs/failedlogins.log    XML Invalid - Error!
  •     Apache web server    LiteSpeed - Error
We tried this Plugin few months back and it did not work at that time also. We did not have .htaccess Password for the Admin at that time.

This is the second time we are trying this Plugin.

We were using MODX Evolution CMS for about 15 Years to Host these Pages of our Spiritual Library. We started encountering some issues and hence we switched over to GetSimple CMS few months back.

We were also using WordPress for some time in the beginning.
 
We are more familiar with osCommerce as we have been using the same since 2002 to Host our Celextel Spiritual Store.

We definitely need Search Facility for our Vedanta Shastras Library.

Please help us with more suggestions in regard to this.

Thanks,

Lakshmanan
Reply
Enable debug mode in gsconfig.php and check if you get any errors (both in the search page and in backend, when you edit/create and save a page)
Reply
(2019-05-17, 23:15:12)dCarlos Wrote: Enable debug mode in gsconfig.php and check if you get any errors (both in the search page and in backend, when you edit/create and save a page)

We are not getting any Errors after enabling Debug Mode. We checked the Search Page by Searching, by Creating a New Page and also by Editing & Saving an Existing Page. DEBUG MODE Notice and Debug Console is seen in the Admin. We have disabled the debug mode after Testing. Thanks.
Reply
It might be because of the high number of pages you have. I see that when you try to search in your page, the results page is broken (no sidebar, no footer..). There should be some error there with debug mode enabled, unless you have GSSUPRESSERRORS enabled in gsconfig. Or check again errorlog just in case.
Reply
(2019-05-18, 03:16:26)Carlos Wrote: It might be because of the high number of pages you have. I see that when you try to search in your page, the results page is broken (no sidebar, no footer..). There should be some error there with debug mode enabled, unless you have GSSUPRESSERRORS enabled in gsconfig. Or check again errorlog just in case.

Yes, you are correct.

We found the following and disabled it:
define('GSSUPPRESSERRORS',true);
-> We did not enable this.

Search Result Page is showing the Following Error Message after enabling the DEBUG MODE:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 86 bytes) in /home/shastras/public_html/plugins/i18n_search/indexer.class.php on line 162

We did not find any errors in the Admin.

Please guide us as to how to proceed in this regard.

Thanks,

Lakshmanan
Reply
data/other/logs/errorlog.txt is showing the following error messages:
Code:
[18-May-2019 09:21:23 Asia/Kolkata] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 86 bytes) in /home/shastras/public_html/plugins/i18n_search/indexer.class.php on line 162

Main error_log file is empty.
Reply
You have too many pages. Your system does not have enough RAM for I18N Search to generate its indexes.

Anyway this CMS is designed to work with less pages. I suppose you didn't create all of your pages using GetSimple's page manager, but instead you generated them with some script.

I would rather use google site search instead of a plugin.
Reply
(2019-05-18, 16:44:26)Carlos Wrote: You have too many pages. Your system does not have enough RAM for I18N Search to generate its indexes.

Anyway this CMS is designed to work with less pages. I suppose you didn't create all of your pages using GetSimple's page manager, but instead you generated them with some script.

I would rather use google site search instead of a plugin.

We created all these pages one by one in GetSimple's Admin itself by Copy Pasting the Content from our MODX Site.

Thanks for your help and suggestions in this regard.

Lakshmanan
Reply
(2019-05-18, 16:44:26)Carlos Wrote: I would rather use google site search instead of a plugin.

Dear Mr. Carlos,

We have added Google Search to our Vedanta Shastras Library based on your suggestion.

We are not facing any other issues with GetSimple CMS as of now. We had chosen this CMS after going testing many other CMS.

Thanks for your guidance and suggestions.

Lakshmanan
Reply




Users browsing this thread: 1 Guest(s)