Hi,
I've been assigned a project to upgrade an existing 5.8 module to 6.3
So far I've been able to fix every incompatibility I've encountered...except for this one:
Fatal error: Call to a member function buildForm() on a non-object in *...*\drupal-6.3\modules\sportsticker\views\FormView.php on line 5
The file it's referring to
<?php
require_once('View.php');
function _sportsticker_form( SportSticker_FormView $formView ) {
return $formView->buildForm();
}
abstract class SportSticker_FormView extends SportSticker_View {
protected $returnPath;
public function setReturnPath( $returnPath ) {
assert( 'is_string( $returnPath )' );
$this->returnPath = $returnPath;
assert( '$this->hasReturnPath()' );
assert( '$this->getReturnPath() === $returnPath' );
}
public function hasReturnPath() {
return isset( $this->returnPath );
}
public function getReturnPath() {
assert( '$this->hasReturnPath()' );
return $this->returnPath;
}
public function setFormError( $name, $message ) {
form_set_error( $name, $message );
}
public function buildForm() {
$form = array();
if( $this->hasReturnPath() ) {
$form['#action'] = url( $this->returnPath );