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 7577861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:17:39+00:00 2026-05-30T17:17:39+00:00

Good Evening Stackoverflow Lords & Ladies, I am attempting to develop a Layar layer

  • 0

Good Evening Stackoverflow Lords & Ladies,

I am attempting to develop a Layar layer to use at my work but I’m having some difficulties right out of the gate. Here’s the scenario

I have downloaded the Sample Code that Layar provides for the tutorial, Here’s the link

Now I have not modified ANY of this code.

I have set up a database with the name of joejoz_layar
In that database, I have imported the included .SQL file and THAT creates TWO tables, Layer & POI.

Now I just want to see how this thing is connecting and what the output looks like, so I upload all the included files to my server, and travel to firstTutorial_simplified.php on my box.

This is the error I get:

Message: layerName parameter is not passed in GetPOI request. Warning:
Cannot modify header information – headers already sent by (output
started at firstTutorial_simplified.php:64) in
firstTutorial_simplified.php on line 225
{“layer”:null,”hotspots”:[],”errorCode”:20,”errorString”:”No POI
found. Please adjust the range.”}

Now the SQL import does include ONE POI so I’m really confused on what I’m doing wrong here. Here’s the config.inc.php that I modified:

  define('DBHOST', 'localhost');
  define('DBDATA', 'joejoz_layar');
  define('DBUSER', 'joejo_layar01');
  define('DBPASS', 'XXXXXXXXX');

I’ve try to find the answer elsewhere only to run into stuff in Swedish… which I don’t speak. Can someone NOT related to the Swedish Chef help me?

  • 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-05-30T17:17:41+00:00Added an answer on May 30, 2026 at 5:17 pm

    It looks to me as your not passing all the required values to $_GET

    eg: $_GET['layerName'], $_GET['lat'], $_GET['lon'] and $_GET['radius']

    keys must match the key/value array that your sending to getRequestParams($keys); line 191,

    Line 56 in firstTutorial_simplified.php matches $keys with isset($_GET[$key]) thus invoking the exception on line 59 if ones missing.

    This is an API that returns a json string but you need to pass parameters

    ./firstTutorial_simplified.php?layerName=somelayer&lat=12345&lon=12345&radius=12345

    Visiting the script directly will invoke errors as there is no checks

    so really you just need todo some isset() checks else not run the code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good evening, I'm having trouble with model binding and validation but I don't know
Good evening :-)! I have this code to use Drag & Drop method for
Good evening ladies and gentlemen! Searching for a cross-browser solution to embed commercial fonts
Good evening, I am working on a program where some application config info is
I spent the rest of the evening reading StackOverflow questions and also some blog
Good evening StackOverflow This time I'm fighting with a ListView Containing TextViews. I add
Good Evening All, A client has asked that I develop a web application as
Good evening. I am using Yii framework and mPDF library to generate some PDF
Good evening stackoverflow. I have a problem involving JOptionPanes. Every so often they simply
Good evening, I am having a weird issue with a method I am trying

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.