Reckons Team Google Custom Search [Deleted]

@Robru, thanks m8! this solved the issue!
It solves issue on my test site too. Maybe it was some caching thing before, because I already unchecked watermark, but no success. But it still works without problem on my live site.

Ok, than waiting for batpool52! to fix it.
 
There are more bugs introduced now. The advanced search of Xenforo is not working as it should anymore. It gives a blank page or no results where there should be results on my forum.
 
Some examples:
Screenshot 2015-04-04 23.06.11.webp
Should give a lot of results on the Xenforo search but gives this:
Screenshot 2015-04-04 23.06.24.webp

If I try to search for posts anything new than:
Screenshot 2015-04-04 23.06.53.webp

The screen will turn blanc.

If you go to the advanced options all searches fail on the Xenforo search. They did work with the previous version.
 
My test:

upload_2015-4-4_23-13-35.webp

Search query "test" and posted by member "test" it shows results, but give me this error on top of site:

Template Errors: rtGCS_search_results
  1. number_format() expects parameter 1 to be double, array given in /home/.../public_html/test1/library/XenForo/Locale.php, line 720
  2. number_format() expects parameter 1 to be double, array given in /home/.../public_html/test1/library/XenForo/Locale.php, line 720
-------------------------------------

Another test:

upload_2015-4-4_23-16-1.webp


Enter only date, hit enter and I get this:

Fatal error: Cannot use object of type XenForo_Phrase as array in /home/.../public_html/test1/library/ReckonsTeam/GoogleCustomSearch/ControllerPublic/Search.php on line 26
 
I also have a bunch of errors in my error log :(
Error Info
ErrorException: Fatal Error: Cannot use object of type XenForo_Phrase as array -library/ReckonsTeam/GoogleCustomSearch/ControllerPublic/Search.php:26
Generated By: Axel, 12 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(39) "http://mainecoon.nl/forum/search/search"
["_GET"] => array(1) {
["/forum/search/search"] => string(0) ""
}
["_POST"] => array(4) {
["keywords"] => string(0) ""
["users"] => string(0) ""
["date"] => string(10) "2015-04-03"
["_xfToken"] => string(8) "********"
}
}
Error Info
ErrorException: Fatal Error: Cannot use object of type XenForo_Phrase as array -library/ReckonsTeam/GoogleCustomSearch/ControllerPublic/Search.php:26
Generated By: Axel, 30 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(39) "http://mainecoon.nl/forum/search/search"
["_GET"] => array(1) {
["/forum/search/search"] => string(0) ""
}
["_POST"] => array(13) {
["keywords"] => string(0) ""
["users"] => string(0) ""
["date"] => string(0) ""
["reply_count"] => string(1) "0"
["prefixes"] => array(1) {
[0] => string(1) "1"
}
["nodes"] => array(1) {
[0] => string(0) ""
}
["child_nodes"] => string(1) "1"
["order"] => string(9) "relevance"
["type"] => string(4) "post"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(24) "/forum/search/?type=post"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
When I set default tab to Site search results it firstly loads Google tab for a second than it shows Site results. Can this be fixed?
That is a workaround for the ads not showing on Google Results tab if Site Results is set as default.

The layout changed. I use the default skin of Xenforo. See screenshot.
View attachment 103084

When I turn off the addon it turns back to normal. See next screenshot:
View attachment 103085
Fixed for 1.0.5

Some examples:
View attachment 103087
Should give a lot of results on the Xenforo search but gives this:
View attachment 103086

If I try to search for posts anything new than:
View attachment 103088

The screen will turn blanc.

If you go to the advanced options all searches fail on the Xenforo search. They did work with the previous version.
My test:

View attachment 103091

Search query "test" and posted by member "test" it shows results, but give me this error on top of site:

Template Errors: rtGCS_search_results
  1. number_format() expects parameter 1 to be double, array given in /home/.../public_html/test1/library/XenForo/Locale.php, line 720
  2. number_format() expects parameter 1 to be double, array given in /home/.../public_html/test1/library/XenForo/Locale.php, line 720
-------------------------------------

Another test:

View attachment 103092


Enter only date, hit enter and I get this:

Fatal error: Cannot use object of type XenForo_Phrase as array in /home/.../public_html/test1/library/ReckonsTeam/GoogleCustomSearch/ControllerPublic/Search.php on line 26
When you do a search for member or additional fields and do not provide any keywords, you'll get that error. I've fixed it so that only when there is a keywords, bring google results else don't bother doing so because it will be a empty result (nothing visible) and members don't like.. do they? :p

Also clicking on those links things are not acting right:

View attachment 103093
Same as my above statement. Should be fixed in the next version.

I also have a bunch of errors in my error log :(
Error Info
ErrorException: Fatal Error: Cannot use object of type XenForo_Phrase as array -library/ReckonsTeam/GoogleCustomSearch/ControllerPublic/Search.php:26
Generated By: Axel, 12 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(39) "http://mainecoon.nl/forum/search/search"
["_GET"] => array(1) {
["/forum/search/search"] => string(0) ""
}
["_POST"] => array(4) {
["keywords"] => string(0) ""
["users"] => string(0) ""
["date"] => string(10) "2015-04-03"
["_xfToken"] => string(8) "********"
}
}
Error Info
ErrorException: Fatal Error: Cannot use object of type XenForo_Phrase as array -library/ReckonsTeam/GoogleCustomSearch/ControllerPublic/Search.php:26
Generated By: Axel, 30 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(39) "http://mainecoon.nl/forum/search/search"
["_GET"] => array(1) {
["/forum/search/search"] => string(0) ""
}
["_POST"] => array(13) {
["keywords"] => string(0) ""
["users"] => string(0) ""
["date"] => string(0) ""
["reply_count"] => string(1) "0"
["prefixes"] => array(1) {
[0] => string(1) "1"
}
["nodes"] => array(1) {
[0] => string(0) ""
}
["child_nodes"] => string(1) "1"
["order"] => string(9) "relevance"
["type"] => string(4) "post"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(24) "/forum/search/?type=post"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
Fixed (:
 
I just installed with the latest version 1.0.5 and it messes up my search results and the Google Results are not readable at all.

Here i a screen shot of the search results without the add on.
Screen Shot 2015-04-04 at 8.08.12 PM.webp


Here is the search results with the add on enabled.

Screen Shot 2015-04-04 at 8.08.34 PM.webp

Here are the Google Search Results.

Screen Shot 2015-04-04 at 8.08.55 PM.webp


I am using the UI.X style
 
@batpool52! awesome work m8! Love it! I even spent last evening setting up promotions in CSE, so the content of my website shows up first when certain search words are used.
Wonderful work!
 
One bug with a workaround found. No big deal :P
If 'Show Google Branding' is selected, all content of Extra.CSS is ignored.
If you deselect 'Show Google Branding', your content of Extra.CSS is working properly again.
 
Top Bottom