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

  • Home
  • SEARCH
  • 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 936849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:22:43+00:00 2026-05-15T21:22:43+00:00

I changed the option in the Joomla configuration section to show all errors (E_ALL)

  • 0

I changed the option in the Joomla configuration section to show all errors (E_ALL) and my component is basically unusable.

As an example, in a view (editapp) I have a template, default.php, which contains things like:

    <input class="text_area" type="text" name="application_name" id="application_name" size="50" maxlength="250" value="<?php echo $item->application_name" ?> />

Now because of $item->application_name when I run this the first time (a new record), there will be notice errors everywhere Trying to get property of non-object

This is because the same template is used for saving and editing. I followed tutorials and they seemed to do it this way.

What is the go here with PHP development. Should I be checking these things? if(isset($item-)) {…}, what is the best practice for PHP development?

  • 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-15T21:22:44+00:00Added an answer on May 15, 2026 at 9:22 pm

    I agree with the others – go for no errors. In fact, I suggest going beyond E_ALL and adding in E_STRICT, which is how I do all my development. There are good reasons for each of those notices, and you’ll do well to be rid of them. The most notable reason is that the notices typically point out small bugs that can make it much harder to find and fix bigger bugs down the road. It’s not too different from the idea of using assertions: they help you squish bugs as quickly as possible.

    As to your specific example, rather than using isset() right before referencing it, I recommend initializing the object to a sane base state going into the page (perhaps using isset() at that point). For example, you might set the application_name value to an empty string. This will enable you to keep your output statement nice and clean but properly address the notice by making sure the variable is initialized before using it. (FWIW, in many languages, using unitialized variables causes an even more aggressive response in the form of a compile-time error.)

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

Sidebar

Ask A Question

Stats

  • Questions 532k
  • Answers 532k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You have basically two options: Option 1: Use nested LinearLayouts:… May 17, 2026 at 12:03 am
  • Editorial Team
    Editorial Team added an answer I've had good luck with NRefactory, written in C# and… May 17, 2026 at 12:03 am
  • Editorial Team
    Editorial Team added an answer I've used XStream for years and it's performance has been… May 17, 2026 at 12:03 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm having trouble covering all the issues with doing Software Configuration Management on a
I've changed the textwidth option mid-way through my file and I'd like to reformat
I have just changed a compiler option from 4.0 to 4.2. Now I get
I need to get the value of the selected option (when changed) in a
I have a site I deployed for a client using Joomla, and a good
I am running Joomla 1.5.15. After working on my site, I decided to test
I've been developing a site (for now is here as an example: http://neurotoxine.mine.nu/gloom ),
i m using yootheme joomla template in joomla 1.5.x, my problem is that i
When a form action URL was changed dynamically, when the form submit, it will
I have three depending selects. First one, have some values. <select id=first> <option value=1>v1</option>

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.