Conversation
supportUpon activation, my site crashed with a fatal error on line 285 in includes/class-codetot-admin-options-page.php because it passed a named parameter 'type' to the add_settings_field() function. This was included in line 270 of the same file, since $this->defaults['add_settings_field'] has an 'args' element. I temporarily fixed this by changing line 270 to read: $params = array_slice($params, 0, 5); // count($this->defaults['add_settings_field'])); Please be advised.
Thanks for using my plugin. Actuallly we install and activate it in around 50 sites without any error. Could you see what PHP version do you actually use?
I just tested it with PHP 7.4.21 and it operates correctly. However, on PHP 8.0.8, which is what I was using, it crashes with the above error. Asher
Great, you figure it out. I will validate those code and patch it soon. You could see a code source here and create a new Pull Request: https://github.com/codetot-web/ct-optimization
Thanks for using my plugin. Actuallly we install and activate it in around 50 sites without any error. Could you see what PHP version do you actually use?
I just tested it with PHP 7.4.21 and it operates correctly. However, on PHP 8.0.8, which is what I was using, it crashes with the above error. Asher
Great, you figure it out. I will validate those code and patch it soon. You could see a code source here and create a new Pull Request: https://github.com/codetot-web/ct-optimization