Issue after upgrading to Drupal 7.1.5

Issue after upgrading to Drupal 7.1.5

aalapkaalapk Posts: 4Questions: 0Answers: 0
edited September 2012 in General
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

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    I suspect you might be better asking on a Drupal forum. Are there any errors logged on the server or anything like that?

    Allan
  • aalapkaalapk Posts: 4Questions: 0Answers: 0
    Thanks Allan, I'll put up my question on the Drupal forum. I checked the server errors and saw following errors:
    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!
This discussion has been closed.