• Any idea why I’m getting this error message?

    PHP Warning: in_array() expects parameter 2 to be array, null given in /home/u836590720/domains/localleader.us/public_html/wp-content/plugins/ocean-extra/includes/post-settings/post-settings.php on line 134

    The offending code is apparently this:

    “if ( in_array( $post_type, $post_types_to_check ) ) {“

Viewing 1 replies (of 1 total)
  • Hello @mjohnhorning,

    Thanks for your feedback.

    Actually, it’s just a warning, and it does not hurt your website.
    However, the developer version that eliminates this warning is now available.
    If possible, kindly update the plugin to the dev version and recheck the issue.

    To update the plugin:

    First, download the plugin from the following link:
    https://github.com/oceanwp/ocean-extra/tree/rc-2.2.5.

    1. After downloading the plugin, open the zip file and ensure the folder name is “ocean-extra”.
    2. Go to WP Dashboard > Plugins > Add New.
    3. Click on the “Upload Plugin” button.
    4. Choose the plugin and click on the install now button.
    5. Click the “Replace current with uploaded” button next.

    Note: you can upload and replace the dev version of the plugin by using the sFTP/FTP in this path: ~root/wp-content/plugins/{{here}}.

    I hope it helps.

    Please keep us posted on the result.
    Thank you,
    Best Regards

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Warning’ is closed to new replies.