Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


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.