Module

Archived
Forum
(read-only)

Google Custom Search

ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4

Back to this add-on's main page
View Other Add-ons From Derek Hogue

     

PHP Error

Bug (Resolved)

Alex Heimann
Alex Heimann

We’re seeing an odd PHP error with this module. It only happens now and again, but when it does happen, every query produces the error

A PHP Error was encountered

Severity
Notice

Message
Undefined indexerrors

Filename
google_custom_search/mod.google_custom_search.php

Line Number
430

A PHP Error was encountered

Severity
Notice

Message
Undefined indexerrors

Filename
google_custom_search/mod.google_custom_search.php

Line Number
458 

When I var_dump() the $json object under these conditions, this is what it looks like

array(1{ ["error"]=> array(2{ ["code"]=> int(500["message"]=> NULL } } 

Any ideas about what the issue might be?

Derek Hogue
# 1
Developer
Derek Hogue

Looks like Google is returning an Internal Server Error in these cases, for which there is no detailed error message (hence the error!).

I have a fix for this that will try to redirect to Google when this happens - can you email me and I’ll send you a copy to test? derek@amphibian.info