Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Notice: Undefined index: #action w include() (linia 2 z /mnt/www/www2/drupal/sites/all/themes/omega/templates/block--formblock--user-password-request.tpl.php).
Notice: Undefined index: form_build_id w include() (linia 9 z /mnt/www/www2/drupal/qltowo/sites/all/themes/omega/templates/block--formblock--user-password-request.tpl.php).
<form action="<?php print $elements['#action']; ?>" method="post" id="user-pass" accept-charset="UTF-8"> //line 2
<input name="form_build_id" value="<?php print $elements['form_build_id']['#value']; ?>" type="hidden" /> //line 9
---
Php 5.4.4, postqre 9x, formblock 7x-1x-dev. I get this errors only when i use template file with this php code. How to fix it?
Comments
Comment #1
jaremilus84 CreditAttribution: jaremilus84 commentedprint $elements['form']['form_build_id']['#value'];
this work fine :)