Hi all!
I am migrating my old website to drupal, and I encounter a strange error. It is to note that I am only copying and adapting the code of my old site (that works perfectly) for drupal, so the only thing I changed in the code are the include and require paths, and these seem to work.
When I execute a page that contains require commands in the following way:
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
require("$DOCUMENT_ROOT/Natation_Drupal/drupal-6.6/mysql.runtime6.php");
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
require("$DOCUMENT_ROOT/triathlon/config/include/utils.runtime6.php");
I get the following error:
Fatal error: Function name must be a string in /home/www/39885474e02bb47b62c182d50ebb7449/web/Natation_Drupal/drupal-6.6/mysql.runtime6.php on line 360
and here's the code from mysql.runtime6.php on line 360 (this file is absolutely identical to the version working for the old website)
$keyLengthLimit = 255 - $GL_strlen($PATH_INFO) - 50; // 50 is extra margin for server name
if (sizeof($this->primaryKeySet) == 0) { // primary key was not found
$fieldLengthLimit = 10; // default
} else { // LINE 360 Min 4 is for "null". 6 is worst case for 2 byte char encoded.
$fieldLengthLimit = max(4, ($keyLengthLimit / sizeof($this->primaryKeySet)) / 6);
}