PHP Warning in Public Forms (Spanish)

Any critical bugs will be fixed within 24-48 hours.
Post Reply
User avatar
elviseras
Sponsor
Sponsor
Posts: 509
Joined: 08 Feb 2017, 03:16
Name: Elvix Sampedro
Location: Galicia - Spain
Company Name: novaTEK

PHP Warning in Public Forms (Spanish)

Post by elviseras »

Hi,

When creating a new public form or modifying an existing one, the following PHP warning appears in the "Notifications" tab
Warning: Use of undefined constant TEXT_EXT_PB_CUSTOMER_EMAIL_INFO - assumed 'TEXT_EXT_PB_CUSTOMER_EMAIL_INFO' (this will throw an Error in a future version of PHP) in ...\\plugins\ext\modules\public_forms\actions\public_forms.php on line 160
The strange thing is that if I change the language to English or Russian it does not appear. I only see it when the interface is in Spanish ... Any idea??

Public_form_Warning.jpg

User avatar
support
Site Admin
Posts: 3786
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: PHP Warning in Public Forms (Spanish)

Post by support »

It means constant TEXT_EXT_PB_CUSTOMER_EMAIL_INFO is missed in extension language file for Spanish language.
So just add next line to Spanish file plugins\ext\languages\spanish.php

Code: Select all

define('TEXT_EXT_PB_CUSTOMER_EMAIL_INFO','Select the field type E-mail');

User avatar
elviseras
Sponsor
Sponsor
Posts: 509
Joined: 08 Feb 2017, 03:16
Name: Elvix Sampedro
Location: Galicia - Spain
Company Name: novaTEK

Re: PHP Warning in Public Forms (Spanish)

Post by elviseras »

Hi Sergey, you´re right.. We have an error in this line in spanish language file!!

Post Reply