Error message

  • Notice: Undefined property: stdClass::$show_attempt_stats in theme_quiz_view_stats() (line 126 of /var/www/sites/all/modules/quiz/quiz.theme.inc).
  • Notice: Undefined property: stdClass::$quiz_always in theme_quiz_view_stats() (line 133 of /var/www/sites/all/modules/quiz/quiz.theme.inc).
  • Notice: Undefined property: stdClass::$quiz_open in theme_quiz_view_stats() (line 142 of /var/www/sites/all/modules/quiz/quiz.theme.inc).
  • Warning: date_timezone_set() expects parameter 1 to be DateTime, boolean given in format_date() (line 2062 of /var/www/includes/common.inc).
  • Warning: date_format() expects parameter 1 to be DateTimeInterface, boolean given in format_date() (line 2072 of /var/www/includes/common.inc).
  • Notice: Undefined property: stdClass::$quiz_close in theme_quiz_view_stats() (line 146 of /var/www/sites/all/modules/quiz/quiz.theme.inc).
  • Warning: date_timezone_set() expects parameter 1 to be DateTime, boolean given in format_date() (line 2062 of /var/www/includes/common.inc).
  • Warning: date_format() expects parameter 1 to be DateTimeInterface, boolean given in format_date() (line 2072 of /var/www/includes/common.inc).
  • Notice: Undefined property: stdClass::$backwards_navigation in theme_quiz_view_stats() (line 163 of /var/www/sites/all/modules/quiz/quiz.theme.inc).
  • Notice: Undefined property: stdClass::$quiz_always in quiz_quiz_access() (line 2198 of /var/www/sites/all/modules/quiz/quiz.module).
  • Notice: Undefined property: stdClass::$quiz_open in quiz_quiz_access() (line 2202 of /var/www/sites/all/modules/quiz/quiz.module).
  • Notice: Undefined property: stdClass::$quiz_close in quiz_quiz_access() (line 2203 of /var/www/sites/all/modules/quiz/quiz.module).
  • Notice: Undefined property: stdClass::$takes in quiz_quiz_access() (line 2230 of /var/www/sites/all/modules/quiz/quiz.module).
  • Notice: Undefined property: stdClass::$show_passed in quiz_quiz_access() (line 2274 of /var/www/sites/all/modules/quiz/quiz.module).

Wissenschaftliches Arbeiten

Questions0
Opens
Closes
Backwards navigationForbidden
You are not allowed to take this Quiz.

Create a new content node

When you create a new content node (e.g. project), then you can extract this content node with features.

You cannot create code for a certain content node with features

You have used the pre-defined CBR Case and added fields.

Insert the following Code in the computed code field

$field_cbr_start = field_get_items($entity_type, $entity, "field_project_start");
if($field_cbr_start != NULL)
{
$start_date = $field_cbr_start[0]["value"];
$start = strtotime($start_date);
$field_cbr_end = field_get_items($entity_type, $entity, "field_project_end");
if($field_cbr_end != NULL)
{
$end_date = $field_cbr_end[0]["value"];
$end = strtotime($end_date);
$duration_month=($end-$start)/2592000;
if(isset($end)&&isset($start)) {
$entity_field[0]['value'] = $duration_month;
}
else $entity_field[0]['value'] = NULL;
}

CBR Computed Fields do not store any value in DB

I wanted to compute some fields depending on other fields but the CBR Computed Field does not store any value in the database. When computing the same value with the standard Computed Field, the values are all calculated correctly and stored in the DB.

Fixing print-7.x-2.0 module error

First enable the module "dompdf library handler"

After that you have to add the corresponding dompdf module. Sadly the straight forward way did not work in our case. But we found a corresponding solution (Post number 11) on the page https://www.drupal.org/node/850098.
Copy the dompdf module into the following directory: ...\sites\all\modules\print\lib

The mentioned PHP lib can be downloaded using this link:
https://www.versioneye.com/php/phenx:php-font-lib/0.2.2

CBR installation print-7.x-2.0 module error

After several installation steps during the setup of the CBR module, there was a problem concerning the print-7.x-2.0 module while switching to the configuration tab and select "Printer, email and PDF versions". Selecting the PDF tab produces the following error message:
"No PDF generation tool found! Please download a supported PHP PDF generation tool ... "

Missing module

I assume that you have not installed the "Computed Field" module?

CBR Computed field, widget -> null

We downloaded CBR from TUWEL and added it as a module as requested. We further downloaded the neccessary dependency modules, as you can see on the second screenshot, all of them are enabled. However, when we are trying to create a CBR Computed field in the CBR content case, there is no widget to select (only null). Saving with null as a widget leads to an error. How can this be resolved?

Thanks in advance.

Pages

Subscribe to TechScreen Revised RSS