Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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

    #467370

    Hi 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!
    Ismael

    #467372

    Hey 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,
    Bruno

    #468063

    Hey!

    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,
    Andy

    #529954

    Hey 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,
    Joris

    #530493

    Hi!


    @Emazing
    : Could you please re-create a test page so that we can reproduce the issue? We’ll test it on our installations.

    Cheers!
    Ismael

    #530623

    Hi Ismael,

    I’ve created a temporary testpage at a customers website and sent you the details via the ‘private content’ option.

    Best regards,
    Joris

    #531455

    Hi!

    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!
    Andy

    #616295

    Hi 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 592

    I’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,
    Joris

    #617532

    Hey!

    thank you for providing us your solution. We have forwarded this to our devs.

    Regards,
    Andy

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.