This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Fatal error: Call to a member function fetch()

Discussion relating to version 1.2.x stable

Fatal error: Call to a member function fetch()

by nwbrd » Fri Jul 27, 2012 7:19 am

Hello All,

I am upgrading my project to 1.2, while changing some code(as given below) to propel 1.3 compatible I receive
Fatal error: Call to a member function fetch() on a non-object in E:\project\apps\frontend\modules\part\actions\actions.class.php on line 8224
From:
Code: Select all
         $statement = $connection->prepareStatement($query);
         $resultset = $statement->executeQuery();
         $resultset->next();

To:
Code: Select all
         $statement = $connection->prepare($query);
         $resultset = $statement->execute();
         $resultset->fetch();


Please help.
Regards.
nwbrd
Junior Member
 
Posts: 8
Joined: Mon Jun 11, 2012 4:03 pm