Bezumiro Posted August 15, 2017 Share Posted August 15, 2017 (edited) Здравствуйте! Есть проблема. При сохранении товара выходила ошибка 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 August 15, 2017 by Bezumiro (see edit history) Link to comment Share on other sites More sharing options...
wagood Posted August 15, 2017 Share Posted August 15, 2017 Догадок масса, а вот почему ошибка выходит не понятно. Что за функция в вашей версии DbPDO.php в строке 208? Link to comment Share on other sites More sharing options...
Bezumiro Posted August 16, 2017 Author Share Posted August 16, 2017 Вот такая функция: /** * 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(); } Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now