Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 09:44:31 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155400 Posts in 21698 Topics by 7729 Members
Latest Member: adnan
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Fatal error: Call to a member function numRows()  (Read 1939 times)
marc

Offline Offline

Posts: 22


« on: June 28, 2008, 02:10:43 AM »

Over the past few days I've been trying to upgrade our two website baker sites from 2.5.2 to 2.6.6 to 2.6.7 to 2.7.

On our second site after running the recommended update.php script from the download link in the instructions to upgrade from 2.5.2 to 2.6.y we received this error during the script execution.
Fatal error: Call to a member function numRows() on a non-object in /var/www/html/scholarships/upgrade.php on line 136.

line 136 is in the function strip_slashes_in_da tabase
Code:
if($result_array->numRows() > 0) {

This update.php script is not modified from the download.
This same script worked on our other WebsiteBaker site, but if you read in my other post we had to run a modified strip slashes to fix a quote problem.
Logged
mightofnight

Offline Offline

Posts: 153


« Reply #1 on: July 08, 2008, 02:41:22 AM »

I would like to give this thread a bump and say that i also am having the exact same issue as described?  I was wondering if anyone has any ideas?

The database connection seams fine i threw some output out and it seams like the database is connecting
Logged

-Travis
mightofnight

Offline Offline

Posts: 153


« Reply #2 on: July 08, 2008, 02:53:57 AM »

Looking at the upgrade script  i can't help but wonder if it has something to do with this line

Code:
$result_array->numRows()(

$result_array is the data from the database query. then you are trying to call a method of the database from it? ALso when i look at the databse file the fetchrow is a method of of the mysql class which is called from the database class and i don't see the $mysql variable (on line 88) in the database class being save longer than that function.   

Also if you create a class and call another class from withing that class you can't just access the outer class function, can you?  I thought you would have to call it something similar to this $query->mysql_called_class->fetchfow?

I do admit i have been doing a lot of VB so it could just be that i am rusty on my PHP.
« Last Edit: July 08, 2008, 02:56:29 AM by mightofnight » Logged

-Travis
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #3 on: July 08, 2008, 07:51:27 PM »

Did you modify any of the Core Components? Or maybe uninstall any of them?

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

mightofnight

Offline Offline

Posts: 153


« Reply #4 on: July 08, 2008, 11:33:21 PM »

nope i have refreshed my installation several times.  It does it on my other site also.  Is there a specific version of 2.6.x that works best i have currently tried 2.6.3 and 2.6.7 and both failed.  I have completly restored my site along with the DB.  i might just upgrade the site manually if there isn't a good solution available.  As in just copy over the pages one by one Sad.
Logged

-Travis
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!