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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:54:41+00:00 2026-06-09T06:54:41+00:00

I have simple line class autorization extends mysql and it causes Fatal error: Call

  • 0

I have simple line class autorization extends mysql and it causes Fatal error: Call to a member function close() on a non-object in… On that line is

function __destruct(){
        $this->connection->close();
    }

Constructor

$mysqli = new mysqli(*****);
$this->connection = $mysqli;

at the moment no other methods ot class mysql are not used

  • 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-09T06:54:42+00:00Added an answer on June 9, 2026 at 6:54 am

    Connection property is not initialised . If you have a constructor in mysql class make sure that you haven’t completely overwritten it by specifying a constructor in autorization class. This can be achieved by adding:

    parent::__constructor( any_params_to_mysql_go_here );
    

    Btw from your question is not clear who maintains the connection property: mysql class or not?

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

Sidebar

Related Questions

Possible Duplicate: C/C++ line number Hi, I have a simple error manager class that
i have a simple activity program in android. basically the class just extends Activity.
I have a simple JSF line chart that uses PrimeFaces (via jqPlot) library: <p:lineChart
I have a very simple line graph I'm trying to create in gRaphael. My
I have made a simple Line Chart: Which is showing 4 grid-lines at points
I have a simple in-line edit in my grid, and I want to commit
Say you have a simple loop while read line do printf ${line#*//}\n done <
I have a simple JEditorPane inside a JScrollPane that displays line numbers on the
I have a simple application which basically consists of a line of buttons and
I have some pyunit unit tests for a simple command line programme I'm writing.

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.