GavickPro / Weather

4 stars 9 forks source link

Conflict with Fb #3

Closed donleegk closed 11 years ago

donleegk commented 12 years ago

"Appears the following error when I try to make a connection with news on facebook, Please help!

: Undefined property: JSimpleXMLElement::$day_of_week in /home/aeparede/public_html/modules/mod_weather_gk4/helper.php on line 390Fatal error: Call to a member function attributes() on a non-object in /home/aeparede/public_html/modules/mod_weather_gk4/helper.php on line 390"

https://www.gavick.com/forums/gk-weather/error-when-i-try-to-make-a-connection-with-news-on-facebook-13027.html#p83435

dziudek commented 12 years ago

That's why in our templates we have prepared special facebook layout which fixes problems like this. It detects the Facebook crawler and then loads file facebook.php instead of the default layout.