Alexa issue on localhost
Closed this issue · 4 comments
Notice: Trying to get property of non-object in C:\xampp\htdocs\whois\SEO\src\modules\seostats.alexa.php on line 71
Notice: Trying to get property of non-object in C:\xampp\htdocs\whois\SEO\src\modules\seostats.opensiteexplorer.php on line 27
Notice: Trying to get property of non-object in C:\xampp\htdocs\whois\SEO\src\modules\seostats.opensiteexplorer.php on line 28
Notice: Trying to get property of non-object in C:\xampp\htdocs\whois\SEO\src\modules\seostats.opensiteexplorer.php on line 29
Notice: Trying to get property of non-object in C:\xampp\htdocs\whois\SEO\src\modules\seostats.opensiteexplorer.php on line 30
Notice: Undefined offset: 0 in C:\xampp\htdocs\whois\SEO\src\modules\seostats.semrush.php on line 85
And...
Country-specific Domain-Rank
Warning: Illegal string offset 'rank' in C:\xampp\htdocs\whois\SEO\demo\index.php on line 42
N (Rank in
Warning: Illegal string offset 'country' in C:\xampp\htdocs\whois\SEO\demo\index.php on line 42
N)
I have got this errors too !!
I got these errors too. It looks like the HTML code from Alexa changed, then the paths on parser are wrong.
Hey guys, I have this error too, though it worked fine a couple of days ago, and yes alecolucci you are right.. seems they changed the page structure and the xpath parser cant get the correct data, I already did neccesary changes right in the "seostats.alexa.php" file in order to my application continue to work.
this
$nodes = @$xpath->query("//*[@id='siteStats']/tbody/tr[1]/td[1]/div");
to this
$nodes = @$xpath->query("//*[@Class='globleRank']/span/div/strong");
but I think it needs to be changed by contributors and commited.
Thanks.
Alexa function are completely broken now, because alexa.com had a major site relaunch. Closing this issue in favour of a generl "Alexa" issue.