Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9270787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:27:24+00:00 2026-06-18T15:27:24+00:00

I am working on a php project which is already been developed. Now my

  • 0

I am working on a php project which is already been developed. Now my work is to change some css files. So to do this I just downloaded all the files from the server along with the database. After all the setup I am getting an error when I am browsing the page is

Notice: Undefined index: lang_selected in language.php on line 38

and the piece of code which is doing this stuff is

if((!isset($_GET['q'])) && ($_SESSION['lang_selected'] == "") && ($ln == 1))
  {

    $language = $setshow['es_lang'];

   if($language=="France")
    $lan="french";

    else if($language=="Croatian")
    $lan="croatian";

    else if($language=="Dutch")
    $lan="dutch";

    else if($language=="German")
    $lan="german";

    else if($language=="Greek")
    $lan="greek";

    else if($language=="Italian")
    $lan="italian";

    else if($language=="Indonesian")
    $lan="indonesian";

    else if($language=="Russia")
    $lan="russian";

    else if($language=="Spain")
    $lan="spanish";

    else if($language=="Usa")
    $lan="english_v1";

    else if($language=="China")
    $lan="chinese";

    else if($language=="Japanese")
    $lan="japanese";

    else if($language=="Korea")
    $lan="korean";

    else if($language=="Saudia")
    $lan="arabic";

    else if($language=="Norwegian")
    $lan="norwegian";

    else if($language=="Malaysian")
    $lan="malaysian";

    else if($language=="Persian")
    $lan="persian";

    else if($language=="Portuguese")
    $lan="portuguese";

    else if($language=="Serbain")
    $lan="serbain";

    else if($language=="Swedish")
    $lan="swedish";

    else if($language=="Thai")
    $lan="thai";

    else if($language=="Vietnamese")
    $lan="vietnamese";

    else if($language=="Turkey")
    $lan="turkish";

    unset($_SESSION['lang']);
   $_SESSION['lang']=$lan;
   $_SESSION['language']=$language;

  }

So can some one kindly tell me why this piece of error is coming and how to solve this issue? Any help and suggestions will be appreciable. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:27:25+00:00Added an answer on June 18, 2026 at 3:27 pm

    To test if an array index exists without triggering a notice use isset().

    if(isset($array['index'])) doSomething();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started working on a project which uses Net_URL_Mapper from PEAR (php) as the
I'm working on my first PHP project, and it's going well. I've been able
I am currently working on a PHP project which includes extensive database usage. The
I am currently working on a php/javascript project which retrieves information from a database
I'm working on a project which needs to be Unicode aware. PHP provides bunch
I'm working a project which uses PHP to retrieve data from a MySOL database
I am working on a project which includes image gallery.Now I want to store
So i'm working on a project that will be using PHP to download files
I am working on a PHP project in which a lot of classes are
I am working on a PHP project, in which I need to store a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.