It’s strange, I didn’t do anything, but my site automatically updated OTHER plugins, which may have emptied the site cache and rebuilt the site, revealing this error. I’m wondering if it has something to do with the AWS outage yesterday? Is there a way to kill the process if lastfm api connection doesn’t work, so at least it fails gracefully until the service comes back up?
This is the technical issue report I got back from my WordPress install, if it helps. I removed any info referring to my Last FM account or domain with the issue.
Still love the plugin. I hope it stabilizes the connection.
WordPress version 5.8.2
Current theme: ———
Current plugin: Last FM (version 1.0.3)
PHP version 7.3.27
Error Details
=============
An error of type E_ERROR was caused in line 193 of the file /home/domain.com/wp-content/plugins/last-fm/last-fm.php. Error message: Uncaught Error: Cannot use object of type WP_Error as array in /home/domain.com/wp-content/plugins/last-fm/last-fm.php:193
Stack trace:
#0 /home/domain.com/wp-content/plugins/last-fm/last-fm.php(246): lastfm_retrieve_xml(‘usernameemoved’, ‘myapikeyremoved’)
#1 /home/domain.com/wp-content/plugins/last-fm/last-fm.php(39): lastfm_update_data()
#2 /home/domain.com/wp-settings.php(409): include_once(‘/home/domain.com…’)
#3 /home/domain.com/wp-config.php(83): require_once(‘/home/domain.com…’)
#4 /home/domain.com/wp-load.php(50): require_once(‘/home/domain.com…’)
#5 /home/domain.com/guerrilladigital.cc/wp-login.php(12): require(‘/home/domain.com…’)
#6 {main}
thrown`
I’ve been trying to set the sidebar widget track count to 12, but for some reason it’s only ever showing 11. I tried to see if maybe it was a count issue, and set it to 13, and it didn’t do anything differently. I’d love to use 12 when I lay it out horizontally it can fill the space.
]]>I also had the XML log error issue. I determined the plugin was working fine… I just needed to disconnect my Spotify account from Last.FM and reconnect it, then it began working again.
This plugin rules.
]]>Love the plugin. I think it would be nice to have a link to a users last.fm profile page though. Either the title of the widget, or a link above or below the song listings.
Thanks!
Nate
Is this plugin still actively maintained? I’d really like to install it, but only if it’ll be receiving future updates.
Thank you.
]]>Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with one of your plugins, Last FM.
First, visit your website (https://www.spacewhale.online/) and check for any visible issues. Next, visit the page where the error was caught (https://www.spacewhale.online/wp-admin/admin-ajax.php) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.
To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
Error Details
=============
An error of type E_ERROR was caused in line 193 of the file /var/www/vhosts/spacewhale.online/httpdocs/wp-content/plugins/last-fm/last-fm.php. Error message: Uncaught Error: Cannot use object of type WP_Error as array in /var/www/vhosts/spacewhale.online/httpdocs/wp-content/plugins/last-fm/last-fm.php:193
Stack trace:
#0 /var/www/vhosts/spacewhale.online/httpdocs/wp-content/plugins/last-fm/last-fm.php(246): lastfm_retrieve_xml(‘phototropism’, ‘d3466eb718d5658…’)
#1 /var/www/vhosts/spacewhale.online/httpdocs/wp-content/plugins/last-fm/last-fm.php(39): lastfm_update_data()
#2 /var/www/vhosts/spacewhale.online/httpdocs/wp-settings.php(362): include_once(‘/var/www/vhosts…’)
#3 /var/www/vhosts/spacewhale.online/httpdocs/wp-config.php(93): require_once(‘/var/www/vhosts…’)
#4 /var/www/vhosts/spacewhale.online/httpdocs/wp-load.php(37): require_once(‘/var/www/vhosts…’)
#5 /var/www/vhosts/spacewhale.online/httpdocs/wp-admin/admin-ajax.php(22): require_once(‘/var/www/vhosts…’)
#6 {main}
thrown
Hi, thank you for making this plugin. Last.fm doesn’t seem to get much love around here!
Is there any way to call this as a shortcode rather than it being a sidebar widget only?
I’d really like to be able just to call my last track anywhere on my site such as "I last listened to [lastfmshortcode-lasttrack]"