Title: PHP Error when generating SSL
Last modified: August 23, 2022

---

# PHP Error when generating SSL

 *  Resolved [polak149](https://wordpress.org/support/users/polak149/)
 * (@polak149)
 * [4 years ago](https://wordpress.org/support/topic/php-error-when-generating-ssl/)
 * Hi
    This is first time when I have to generate new SSL cert after Free SSL plugin
   major update. When trying to pass from step 1 to step 2 by clicking “Next Step
   >>” button I’m getting PHP Error:
 * TypeError thrown
    in_array(): Argument #2 ($haystack) must be of type array, 
   null given
 * My wordpress version is 6.0.1.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-when-generating-ssl%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [HTTPS Free SSL Dot Tech](https://wordpress.org/support/users/freessl/)
 * (@freessl)
 * [4 years ago](https://wordpress.org/support/topic/php-error-when-generating-ssl/#post-15942664)
 * [@polak149](https://wordpress.org/support/users/polak149/) Please let me know
   the following:
 * 1. Our plugin’s version.
    2. PHP version.
 * and send a screenshot (unedited) of the error. Complete error message with line
   number reference should be visible in the screenshot.
 *  Thread Starter [polak149](https://wordpress.org/support/users/polak149/)
 * (@polak149)
 * [4 years ago](https://wordpress.org/support/topic/php-error-when-generating-ssl/#post-15943068)
 * Okey
 * 1. Plugin version: 3.1.0
    2. PHP version: 8.1
 * ![](https://i0.wp.com/dragons-diamond.com/wp-content/uploads/2022/08/Screenshot_1.
   jpg?ssl=1)
 * Unfortunately no code line number is shown, even after launching all log errors
   in wp-config.
    Additionally here are GET Parameters of a page that is causing
   error: admin.php?page=aifs_generate_ssl_manually&settings-updated=true
 * UPDATE:
    Downgrading PHP to 7.4 no longer cause the problem
    -  This reply was modified 4 years ago by [polak149](https://wordpress.org/support/users/polak149/).
    -  This reply was modified 4 years ago by [polak149](https://wordpress.org/support/users/polak149/).
 *  Plugin Contributor [HTTPS Free SSL Dot Tech](https://wordpress.org/support/users/freessl/)
 * (@freessl)
 * [4 years ago](https://wordpress.org/support/topic/php-error-when-generating-ssl/#post-15947814)
 * [@polak149](https://wordpress.org/support/users/polak149/) We don’t get any errors
   with PHP 8.1
 *  Thread Starter [polak149](https://wordpress.org/support/users/polak149/)
 * (@polak149)
 * [4 years ago](https://wordpress.org/support/topic/php-error-when-generating-ssl/#post-15947939)
 * I have two different pages on one hosting and both have this issue. Fortunately
   my hosting just launched support for Let’s Encrypt and i’m no longer need plugin
   for maintain SLL. Thx for trying to help 🙂
 *  Plugin Contributor [HTTPS Free SSL Dot Tech](https://wordpress.org/support/users/freessl/)
 * (@freessl)
 * [4 years ago](https://wordpress.org/support/topic/php-error-when-generating-ssl/#post-15947998)
 * Thanks for the update.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP Error when generating SSL’ is closed to new replies.

 * ![](https://ps.w.org/auto-install-free-ssl/assets/icon-256x256.gif?rev=2820293)
 * [Auto-Install Free SSL – Generate & Install Free SSL Certificates](https://wordpress.org/plugins/auto-install-free-ssl/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auto-install-free-ssl/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auto-install-free-ssl/)
 * [Active Topics](https://wordpress.org/support/plugin/auto-install-free-ssl/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auto-install-free-ssl/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auto-install-free-ssl/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [HTTPS Free SSL Dot Tech](https://wordpress.org/support/users/freessl/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/php-error-when-generating-ssl/#post-15947998)
 * Status: resolved