[wp-trac] [WordPress Trac] #54084: fatal error

WordPress Trac noreply at wordpress.org
Wed Sep 8 13:02:09 UTC 2021


#54084: fatal error
-----------------------------------+----------------------
 Reporter:  reinaldorafaelbriceno  |       Owner:  (none)
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:
Component:  General                |     Version:  5.8
 Severity:  critical               |  Resolution:  invalid
 Keywords:                         |     Focuses:
-----------------------------------+----------------------
Changes (by hellofromTonya):

 * keywords:  2nd-opinion =>
 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Hello @reinaldorafaelbriceno,

 Welcome to WordPress Core's Trac!

 I'm sorry you're having issues with your website. The fatal error message
 points to a problem within the theme:

 >Fatal error: Declaration of ECF_FieldRichText::render() must be
 compatible with ECF_FieldTextarea::render($append = ) in
 C:\xampp\htdocs\wordpress\wp-
 content\themes\crowdpress\_framework\custom_fields\fields.php on line 316

 It looks like `ECF_FieldRichText` is a child class of `ECF_FieldTextarea`
 (the parent class). `ECF_FieldRichText::render()` method signature (the
 parameters it defines) must match its parent. Look at the error message.
 It shows the parent's `render()` method has an `$append` parameter
 defined. The child class does not or it's signature is different.

 Why did this fatal error happen when you installed it on PHP 8? PHP 8
 changed method signatures from a `Warning` to a `Fatal Error`. I created a
 snippet to show this in action https://3v4l.org/mPQG1.

 The problem is within the theme. Where can you get help? Please reach out
 to the theme author for support.

 Please note that this Trac is used for enhancements and bug reporting for
 the WordPress Core software, not for individual support questions. The
 support forums are available for individual support questions
 https://wordpress.org/support/forums/.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54084#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list