Issue after upgrading to Drupal 7.1.5
Issue after upgrading to Drupal 7.1.5
I upgraded from Drupal 7.1.0 to Drupal 7.1.5, and my Datatables functionality is having trouble. To be specific, I use an external php to construct data from the Drupal DB and pass it as a json object that is loaded on the page initialization (using sAjaxSource). At the start of the php file, I have following lines:
define('DRUPAL_ROOT','../../../../../drupal');
include DRUPAL_ROOT.'/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
When I use the 'includes' folder from Drupal 7.1.0, it works properly, but with 'includes' folder of 7.1.5, it looks like the php is not able to connect to the DB and construct the json object. So no data is loaded on the page initialization.
Has anybody encountered a similar issue after upgrading to Drupal 7.1.5?
Many thanks,
Aalap
define('DRUPAL_ROOT','../../../../../drupal');
include DRUPAL_ROOT.'/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
When I use the 'includes' folder from Drupal 7.1.0, it works properly, but with 'includes' folder of 7.1.5, it looks like the php is not able to connect to the DB and construct the json object. So no data is loaded on the page initialization.
Has anybody encountered a similar issue after upgrading to Drupal 7.1.5?
Many thanks,
Aalap
This discussion has been closed.
Replies
Allan
Notice: Undefined property: stdClass::$title in main() (line 37 of C:\wamp\www\drupal\sites\all\modules\datatables\get_data.php).
The snippet from my php file:
foreach ($result as $r) {
if($f++) $json=$json.',';
$json=$json.'{"title":"'. $r->title .'",
"client":"'. $r->client .'",
"location":"'. $r->location .'",
"country":"'. $r->country .'",
"year":"'. $r->year .'",
"cost":"'. $r->cost .'",
"description":"'. $r->description .'"}';
}
$json=$json.']}';
echo $json;
It looks like none of the variables are getting set with the values from the DB. But when I include the 'includes' folder from Drupal 7.1.0 it works.
Thanks for looking!