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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:07:49+00:00 2026-06-16T07:07:49+00:00

I recently changed pcs and transferred a site I was working on from one

  • 0

I recently changed pcs and transferred a site I was working on from one pc to the other (including database).

When loading my site in the new pc, I encounter this error:

Notice: Use of undefined constant
Notice: Undefined index:

I did some research and found it can be solved by adding this to my code:

<?php error_reporting (E_ALL ^ E_NOTICE); ?>

Is this something good to do? Or should I change my code more?

  • 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-16T07:07:51+00:00Added an answer on June 16, 2026 at 7:07 am

    It is most likely different PHP settings. The computer you are now testing on has notices turned on. In your php.ini file search for the text “error_reporting” and change it to E_ALL & ~E_NOTICE if you don’t want to see notices.

    But it is best to keep notices on in your development environment

    EDIT:
    I see you edited your original question with the answer

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

Sidebar

Related Questions

A WordPress site has recently changed from .co.uk to .org. As soon as this
I have recently changed my Oracle 9 databse to a new database (still Oracle
I have a complicated query I've been working on, and I recently changed one
I have recently changed from web site model to a web application model .
We recently changed physical DB's, new servers, new locations, same database schema and data
I recently changed the signup page for a site. It's working for some, but
I recently changed the type of one of my properties from @property (readonly) NSImage
I recently changed URLs of my site. Old URL: mysite.com/top/1 New URL: mysite.com/top/page=1 When
I created a popup function and recently changed the format from this: createPopUp('My Popup',600,200);
I have a form on an ASP.NET MVC site which I've recently changed from

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.