Skip to content

[BUG] Account creation fails with "NearBy is not defined" ReferenceError #87

@Pooja675

Description

@Pooja675

🐛 Bug Description

When attempting to register a new account on the NearBy platform, clicking the "Create Account" button does not proceed and throws a JavaScript ReferenceError in the browser console.

🔁 Steps to Reproduce

Steps to reproduce the behavior:

  1. Navigate to sumitrathor.rf.gd/nearby/register.php
  2. Fill in all required fields:
  • Full Name: e.g. Pooja
  • College Email: e.g. pooja@mitsgwl.ac.in
  • Password: (any valid password)
  • Account Purpose: Find Accommodation (Student)
  • I am registering as: Student
  1. Click the "Create Account" button
  2. Open browser DevTools → Console tab

✅ Expected Behavior

A new NearBy account should be created successfully and the user should be redirected or shown a success message.

📸 Screenshots

Image

Actual Behavior

The account is not created. Two identical errors appear in the console:

Uncaught (in promise) ReferenceError: NearBy is not defined
at HTMLFormElement. (auth.js:73:13)
Uncaught (in promise) ReferenceError: NearBy is not defined
at HTMLFormElement. (auth.js:73:13)

📌 Additional Context

Ensure the NearBy object is properly defined and loaded before auth.js executes. Check the script load order in the HTML and verify the main NearBy JS bundle is not missing or throwing its own silent error on load.

Metadata

Metadata

Assignees

Labels

ECWoC26ECWoC 2026 Pull RequestbugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions