Hi,
This weekend I upgraded in several ways including Ubuntu 10.4, PHP 5.3 and Drupal 6.20. As expected and as a result, I am encountering a number of errors and notices. I slowly and methodically have been working through my list with the goal of having a clean error log before tackling the upgrade to Drupal 7. I have encountered a few more issues with the quotes module. I will create separate items for each. The first watchdog message is:
notice: Undefined property: stdClass::$quotes_format in quotes_form() (line 1663 of /home/toomreco/drupal-6.20/sites/all/modules/quotes/quotes.module).
I corrected my local copy of the module code by entering the following around line 1663:
if (user_access('import quotes')) {
$default = 'single';
if (isset($node->quotes_format) && !empty($node->quotes_format)) {
$default = $node->quotes_format;
}
$form['quotes_format'] = array(
'#type' => 'radios',
'#title' => t('Format'),
'#required' => TRUE,
'#default_value' => $default,
'#options' => array(
'single' => t('Single quote.'),
'text' => t('Import tab-separated text.'),
'fortune' => t('Import Fortune file.'),
),
);
}
This hopefully will help others who are testing for the use of undefined variables under PHP 5.3.
Cheers!!
Comments
Comment #1
ctmattice1 commented@Lars Toomre: Thanks for the updates on php 5.3 errors. Was/am currently running xampp on my laptop with php 5.2.6. Fixed in next dev release.