Hello/Hi/Greetings,
I seem to have an issue with the contact form.
When a user is logged in, the contact form works perfectly, but when an unregistered user tries the contact form he gets this error message for every input field :
Warning: Undefined array key "is_logged" in /customers/a/7/5/diehardagnetha.com/httpd.www/gallery/_data/templates_c/sp1c2o_v1b8i4^2f2fd6cadcaab89c02d386f0a1a76233ef9c4c9f_0.file.contact_form.tpl.php
on lines 86 and 101
here are the lines from line 86 to 105 :
<?php if ($_smarty_tpl->tpl_vars['contact']->value['is_logged']) {?>
<?php echo $_smarty_tpl->tpl_vars['contact']->value['author'];?>
<input type="hidden" name="author" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['contact']->value['author'], ENT_QUOTES, 'UTF-8', true);?>
">
<?php } else { ?>
<input type="text" name="author" id="author" size="40" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['contact']->value['author'], ENT_QUOTES, 'UTF-8', true);?>
">
<?php }?>
</td>
</tr>
<tr>
<td class="title"><label for="email"><?php echo l10n('Your e-mail');?>
</label></td>
<td>
<?php if ($_smarty_tpl->tpl_vars['contact']->value['is_logged'] && !empty($_smarty_tpl->tpl_vars['contact']->value['email'])) {?>
<?php echo $_smarty_tpl->tpl_vars['contact']->value['email'];?>
<input type="hidden" name="email" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['contact']->value['email'], ENT_QUOTES, 'UTF-8', true);?>
">
The input fields can be filled and when "send" is clicked, an email is sent.
The error occurs in Firefox, Chrome and Edge.
(Environment
Piwigo 13.7.0
Installed on 18 June 2015
Operating system: Linux
PHP: 8.0.28
MySQL: 10.5.19-MariaDB-1:10.5.19+maria~ubu2004
Graphics Library: ImageMagick 6.9.10-23
Cache size N/A never calculated Refresh
Activated plugin list 4
Admin Tools
Contact Form
LocalFiles Editor
PHP Captcha for Piwigo
Theme : Modus (Strawberry Jam)
Piwigo + extensions are up to date
Any help would be appreciated ....
grtz
Erwin
Piwigo URL: http://www.diehardagnetha.com/gallery
Contact form url : http://www.diehardagnetha.com/gallery/i … ?/contact/
Offline
Hello Erwin.
Piwigo 13.7.0 is not compatible with PHP 8.0.28. Please update Piwigo to 13.8.0 and also update the plugin: Contact Form. I had the same problem six months ago. After the updates everything worked again.
Greetings
Olaf
-Schneider Photography- Gallery
Offline