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

Comments

drozas’s picture

Title: Problem with system and taxonomy components after enabling patterns_examples » Problem with taxonomy component after enabling patterns_examples
Status: Active » Patch (to be ported)
StatusFileSize
new1.87 KB

Hello 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

drozas’s picture

Status: Patch (to be ported) » Fixed

I'll mark this as fixed, the patch has been included in patterns 7.x-1.0-rc2 release.

drozas’s picture

Status: Fixed » Closed (fixed)