-
AuthorPosts
-
June 30, 2015 at 8:16 pm #466686
Hey there, hope you’re well..
Got this message in my PHP-Error-Code:
PHP Notice: Undefined variable: extra in path/to/enfold/framework/php/class-form-generator.php on line 299
We’re using placeholders instead of labels.
Change this conditional to this, fix the problem. Not sure why cause it should set right earlier..
if($this->placeholder) { $label = ""; $extra = "*"; $placeholder = " placeholder='".$element['label'].$extra."' " ; }
Thank you and best regards
July 2, 2015 at 9:46 am #467370Hi Bruno!
Thank you for the heads up. I tried to reproduce the issue by adding a checkbox element and then disabling the label but there is no error. How can we reproduce the issue? We will ask Kriesi to include it on the next update if we got an error confirmation.
Cheers!
IsmaelJuly 2, 2015 at 9:51 am #467372Hey Ismael,
I’m really not sure why it happens, cause normally it should work. You define this variable inside a conditional before this one..
Below you can find the link where it happens. I don’t think that it is a plugin conflict, cause most of our plugins are deactivated at this page with Plugin Organizer..
Thank you and bast regards,
BrunoJuly 3, 2015 at 3:24 pm #468063Hey!
I can’t reproduce the issue neither. I see different jquery errors in Chrome Console for your website. Maybe there are some corrupted files? in this case you could delete all theme files and get a fresh copy from your themeforest account.
However, thank your for this notice!
Best regards,
AndyNovember 4, 2015 at 12:59 pm #529954Hey there,
I can reproduce this error (PHP Notice: Undefined variable: extra in path/to/enfold/framework/php/class-form-generator.php on line 299) when using a form WITHOUT LABELS and a TEXT INPUT which has NO VALIDATION.
I’ve now defined the variable extra on line 227 to fix this error:
line: 277 $p_class = $required = $element_class = $value = $extra = "";
Best regards,
JorisNovember 5, 2015 at 4:59 am #530493Hi!
@Emazing: Could you please re-create a test page so that we can reproduce the issue? We’ll test it on our installations.Cheers!
IsmaelNovember 5, 2015 at 9:54 am #530623Hi Ismael,
I’ve created a temporary testpage at a customers website and sent you the details via the ‘private content’ option.
Best regards,
JorisNovember 6, 2015 at 2:55 pm #531455Hi!
new Enfold version is out, with lots of bug fixes. In your case: please delete all theme files via FTP before installing a fresh copy from your themeforest account (with the new Enfold version v3.4.1.).
Cheers!
AndyApril 18, 2016 at 11:36 am #616295Hi Andy,
It seems that the same bug has been reintroduced in version 3.5.2 but now on a different line number:
Notice: Undefined variable: extra in \wp-content\themes\enfold\framework\php\class-form-generator.php on line 592I’ve now defined the variable “extra” on line 571 to fix this error:
line 571: $p_class = $required = $element_class = $prefilled_value = $select = $extra = "";
Best regards,
JorisApril 19, 2016 at 4:34 pm #617532Hey!
thank you for providing us your solution. We have forwarded this to our devs.
Regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.