Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Unable to login to Wordpress

Hello I need help with my wordpress site. I got error message, and I can't login.

Notice: Undefined index: aiosp_google_analytics_id in /home/g/l/glasslam/public_html/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php on line 693

Notice: Undefined index: aiosp_enabled in /home/g/l/glasslam/public_html/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php on line 717

Notice: Undefined index: aiosp_enabled in /home/g/l/glasslam/public_html/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php on line 717

I opened all_in_one_seo_pack.php and noticed a semicolon was missing on line 693 so thats done. But not sure what the problem is on line 717

if( ($_POST['aiosp_enabled'] == null && $aioseop_options['aiosp_enabled']!='1') || $_POST['aiosp_enabled']=='0'){ add_action( 'admin_notices', 'aioseop_activation_notice'); } Please help!!!

2 Answers

Emeka Okoye
Emeka Okoye
2,489 Points

Hi Samia,

I would do one of two things.

  1. visit your website domain and add '/wp-login.php' without the quotes to the end of your TLD ( e.g .com or .co.uk). Login and then uninstall the all in one seo plugin.

  2. Use an FTP program to open up your server files, navigate to this folder - /public_html/wp-content/plugins and delete the all in one seo folder.

After performing either steps one or two, you should have access to your site again. At this point you can choose to install the plugin again but first read the documentation or user manual to supply your google analytics (GA) details. First make sure you have a GA account setup.


I uninstalled the plugin and was able to log back in.