I want to use Zend_Serive_Yahoo::webSearch() to search for websites but I get
some notices (E_NOTICE) when I search for "flabben":
Notice: Trying to get property of non-object in
C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 97
Notice: Trying to get property of non-object in
C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 98
Notice: Trying to get property of non-object in
C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 97
Notice: Trying to get property of non-object in
C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 98
Here my code:
$yahoo = new Zend_Service_Yahoo($appId);
$results = $yahoo->webSearch('flabben');
I am getting valid results and I can use them but I think no api should cause
notices.
Attached xml result (result.xml) to this email so you can try to find out what
is causing these notices.
If there is still something in my xml result that can be used by others to use
my account, please let me know so I can deactivate actual application id and
create a new one.
-- Jan
<?xml version="1.0" encoding="UTF-8"?>
<ResultSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:yahoo:srch" xsi:schemaLocation="urn:yahoo:srch http://api.search.yahoo.com/WebSearchService/V1/WebSearchResponse.xsd" type="web" totalResultsAvailable="3" totalResultsReturned="3" firstResultPosition="1" moreSearch="/WebSearchService/V1/webSearch?query=flabben&appid=[...]&region=us">
<Result><Title>IBSN - Códigos de barras</Title><Summary>Describe el problema con detalle, o deja tu email para que podamos contactarte. ... Blog: Flabben. URL: http://www.flabben.net. IBSN: 3-2803-0911-8 ...</Summary><Url>http://ibsn.org/barcode.php?ibsn=3-2803-0911-8</Url><ClickUrl>http://ibsn.org/barcode.php?ibsn=3-2803-0911-8</ClickUrl><DisplayUrl>ibsn.org/barcode.php?ibsn=3-2803-0911-8</DisplayUrl><ModificationDate>1215500400</ModificationDate><MimeType>text/html</MimeType>
<Cache><Url>http://uk.wrs.yahoo.com/_ylt=A0WTec0GX3lIGjYAtAPdmMwF;_ylu=X3oDMTBwZTdwbWtkBGNvbG8DZQRwb3MDMQRzZWMDc3IEdnRpZAM-/SIG=198nlkckg/EXP=1216000134/**http%3A//74.6.239.67/search/cache%3Fei=UTF-8%26type=all%26start=1%26license=any%26results=10%26format=any%26appid=[...]%26query=flabben%26u=ibsn.org/barcode.php%253Fibsn%253D3-2803-0911-8%26w=flabben%26d=EOgv4C72RGSQ%26icp=1%26.intl=us</Url><Size>7276</Size></Cache>
</Result>
<Result><Title>Til gotheskjalden Ridderstad - Dikt</Title><Summary>som sig paa mit Hjerte gynger: da en liden ensom Klynge. bag mig hører jeg ... (somom de med Flabben høre), stimer henad Alfarvei, endser Skjald bag Harpen ei ...</Summary><Url>http://dikt.org/Til_gotheskjalden_Ridderstad</Url><ClickUrl>http://dikt.org/Til_gotheskjalden_Ridderstad</ClickUrl><DisplayUrl>dikt.org/Til_gotheskjalden_Ridderstad</DisplayUrl><ModificationDate>1196668800</ModificationDate><MimeType>text/html</MimeType></Result>
<Result><Title>Bjørnen og reven - Dikt</Title><Summary>2 Reven snyter bjørnen for julekosten. 3 Slipp granrot og ta i revefot ... hadde vært, siden han var så feit om flabben, sa han: "Tror du ikke jeg ble bedt ...</Summary><Url>http://dikt.org/Bj%C3%B8rnen_og_reven</Url><ClickUrl>http://dikt.org/Bj%C3%B8rnen_og_reven</ClickUrl><DisplayUrl>dikt.org/Bj%C3%B8rnen_og_reven</DisplayUrl><ModificationDate>1180940400</ModificationDate><MimeType>text/html</MimeType></Result>
</ResultSet>
<!-- ws05.search.re2.yahoo.com compressed/chunked Sun Jul 13 02:54:06 PDT 2008 -->