Closed (fixed)
Project:
Patterns
Version:
7.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Oct 2012 at 10:29 UTC
Updated:
14 Nov 2012 at 11:46 UTC
Jump to comment: Most recent file
Hello everyone,
After a fresh installation of patterns and enabling patterns_examples, the following output is return in the main page:
Notice: Trying to get property of non-object in _taxonomy_patterns_prepare_term() (line 290 of /home/drozas/workspace/p-sandbox-3/sites/all/modules/custom/patterns/patterns_components/components/taxonomy.inc).
Notice: Undefined index: vocabulary in taxonomy_patterns_validate() (line 186 of /home/drozas/workspace/p-sandbox-3/sites/all/modules/custom/patterns/patterns_components/components/taxonomy.inc).
Warning: array_key_exists(): The first argument should be either a string or an integer in system_patterns_validate() (line 233 of /home/drozas/workspace/p-sandbox-3/sites/all/modules/custom/patterns/patterns_components/components/system.inc).
Warning: array_key_exists(): The first argument should be either a string or an integer in system_patterns_validate() (line 234 of /home/drozas/workspace/p-sandbox-3/sites/all/modules/custom/patterns/patterns_components/components/system.inc).
Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1572 of /home/drozas/workspace/p-sandbox-3/includes/bootstrap.inc).
Notice: Array to string conversion in system_patterns_validate() (line 248 of /home/drozas/workspace/p-sandbox-3/sites/all/modules/custom/patterns/patterns_components/components/system.inc).
Warning: array_key_exists(): The first argument should be either a string or an integer in system_patterns_validate() (line 206 of /home/drozas/workspace/p-sandbox-3/sites/all/modules/custom/patterns/patterns_components/components/system.inc).
Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1572 of /home/drozas/workspace/p-sandbox-3/includes/bootstrap.inc).
Notice: Trying to get property of non-object in _taxonomy_patterns_prepare_term() (line 290 of /home/drozas/workspace/p-sandbox-3/sites/all/modules/custom/patterns/patterns_components/components/taxonomy.inc).
Notice: Undefined index: vocabulary in taxonomy_patterns_validate() (line 186 of /home/drozas/workspace/p-sandbox-3/sites/all/modules/custom/patterns/patterns_components/components/taxonomy.inc).
Notice: Trying to get property of non-object in _taxonomy_patterns_prepare_term() (line 290 of /home/drozas/workspace/p-sandbox-3/sites/all/modules/custom/patterns/patterns_components/components/taxonomy.inc).
Notice: Undefined index: vocabulary in taxonomy_patterns_validate() (line 186 of /home/drozas/workspace/p-sandbox-3/sites/all/modules/custom/patterns/patterns_components/components/taxonomy.inc).
Please find attached screenshot at http://drupal.org/files/patterns_fresh_install_bug.png
It seems the problem is due to the system and taxonomy components. The same issue happens with the latest code at https://github.com/QScience/Patterns
I will create a branch of the code at github, take a look at it and provide a patch with the solution to be committed to drupal.org if everything is ok.
Cheers,
David
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | issue-18121700.patch | 1.87 KB | drozas |
| patterns_fresh_install_bug.png | 158.4 KB | drozas |
Comments
Comment #1
drozasHello everyone,
The problem related to the taxonomy_component is due to an assignation of an empty VID in some of the example patterns provided by the submodule patterns_examples whose vocabulary does not exist at that point. Since the current version does not support automatic resolution of dependencies yet, for the moment I would suggest to employ VID values that we know are installed in the system by default (i.e.: vocabulary tags with VID=1), please find attached the patch solving the problem.
I will also merge and push the changes at git@github.com:QScience/Patterns.git as well.
Since the other error is due to a different component, I think it would be a good idea to threat it in a different issue. I will therefore rename this ticket.
Thanks,
David
Comment #2
drozasI'll mark this as fixed, the patch has been included in patterns 7.x-1.0-rc2 release.
Comment #3
drozas