Thread

Random PHP errors

December 06, 2017 12:13pm

Subscribe [2]
  • #1 / Dec 06, 2017 12:13pm

    Stake

    22 posts

    Ever since my host provider upgraded to php 7, I’ve been getting some usual error messages in random places in the control panel. I was wondering if anyone can comment on these errors to get an idea where I need to look. Is it possible it’s a database configuration issue from older settings? Currently on version 2.11.9. Not looking to upgrade to 3 unless there’s no alternative.

    This is what I get when I attempt to edit a channel field. The list of errors are much longer than this. This is just a sample.:

    A PHP Error was encountered Severity: Warning Message: Declaration of FormsField_address::render_field($field, $template, $data) should be compatible with FormsField::render_field($field = Array, $template = true, $data = ”) Filename: fields/field.address.php Line Number: 0 A PHP Error was encountered Severity: Warning Message: Declaration of FormsField_address::field_settings($settings, $template) should be compatible with FormsField::field_settings($settings = Array, $template = true) Filename: fields/field.address.php Line Number: 0 A PHP Error was encountered Severity: Warning Message: Declaration of FormsField_captcha::render_field($field, $template, $data) should be compatible with FormsField::render_field($field = Array, $template = true, $data = ”) Filename: fields/field.captcha.php Line Number: 0 A PHP Error was encountered Severity: Warning Message: Declaration of FormsField_cart_pay_aunet::field_settings($settings, $template = true) should be compatible with FormsField::field_settings($settings = Array, $template = true) Filename: fields/field.cart_pay_aunet.php Line Number: 0 A PHP Error was encountered Severity: Warning Message: Declaration of FormsField_cart_total::save() should be compatible with FormsField::save($field, $data) Filename: fields/field.cart_total.php Line Number: 0 A PHP Error was encountered Severity: Warning Message: Declaration of FormsField_categories_list::render_field($field, $template, $data) should be compatible with FormsField::render_field($field = Array, $template = true, $data = ”) Filename: fields/field.categories_list.php Line Number: 0

  • #2 / Jan 19, 2018 12:12pm

    Derek Jones's avatar

    Derek Jones

    7288 posts

    Looks like your FormsField add-on is not compatible with PHP 7. You’ll need to contact the developer of that add-on to see if they have a PHP 7 compatible version. You really should upgrade, though, running out of date software is only hurting your site and bottom line.

  • #3 / Jan 19, 2018 4:21pm

    Stake

    22 posts

    Thanks. I was looking through the documentation and realized 2.x was no longer supported and noticed that it wasn’t fully compatible with PHP 7. Since the last post, I’ve upgraded to 4.x and replaced related applications.

  • #4 / Jan 19, 2018 5:38pm

    Derek Jones's avatar

    Derek Jones

    7288 posts

    👍

ExpressionEngine News

#eecms, #events, #releases