Jump to content

Ошибка при сохранении товара


Recommended Posts

Здравствуйте! 

 

Есть проблема. При сохранении товара выходила ошибка 500, но после включения error reporting начала выходить ошибка:

 

Fatal error: Call to a member function rowCount() on a non-object in /var/www/www-root/data/www/example.ru/classes/db/DbPDO.php on line 208

 

 

Если есть какие-нибудь догадки, пишите.

 

С уважением, Алексей.

Edited by Bezumiro (see edit history)

Share this post


Link to post
Share on other sites

Вот такая функция: 

 

    /**
     * Return the number of rows affected by the last SQL query.
     *
     * @see DbCore::Affected_Rows()
     * @return int
     */
    public function Affected_Rows()
    {
        return $this->result->rowCount();
    }

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More