PHP Warning - setup.php

[BPS Pro htaccess Protected Secure PHP Error Log]

[07-Oct-2017 08:03:41 UTC] PHP Warning: in_array() expects parameter 2 to be array, string given in /home/cruxdevc/www.tkado.com.au/wp-content/themes/x/framework/functions/global/admin/meta/setup.php on line 246

This error keeping showing up.
Thanks for your help

Hey,

Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

– Link to your site
– WordPress Admin username / password

Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

I have re-upload the website - the issue is from this latest update

1 Like

Hi There,

What’s your PHP version? Make sure that you’re running at least PHP v5.6.x or later to avoid any incompatibility issues.

You can use the following plugin to check your server configurations (https://wordpress.org/plugins/wp-serverinfo/).

Thanks!

I’ve RE-uploaded the whole website and the issue stopped BUT after setting up the website again the same issue happened. im using PHP v5.6.
ERROR:
[16-Oct-2017 12:18:35 UTC] PHP Warning: in_array() expects parameter 2 to be array, string given in /home/cruxdevc/www.tkado.com.au/wp-content/themes/x/framework/functions/global/admin/meta/setup.php on line 246

1 Like

Hi There,

Could you please try following this thread (https://theme.co/apex/forums/topic/getting-error-after-upgrading-to-version-4-6-4/).

Thanks!

Hi there,

I use BPS Pro which gives me the php errors without using WP_DEBUG.

BUT I have deactivated it and followed those steps and the error still happening. This error happens every time a page is created - exactly as the post referred.

It also showed on debug.log

Thanks for your help. hope we can find a solution soon.
Cheers
Rafa

Hi Rafa,

Try editing your Portfolio items and then assign it an appropriate category, save the changes. Then clear your error logs and check for this issue again.

Let us know how it goes.
Thanks!

Hi there,

It is happening once I add a new page and not a Portfolio item.

What should we do?

thanks

just got another PHP error:
[20-Oct-2017 04:09:54 UTC] PHP Warning: array_key_exists() expects parameter 2 to be array, boolean given in /home/cruxdevc/www.tkado.com.au/wp-content/themes/x/framework/functions/global/admin/sidebars.php on line 378

Hi There,

Could you please try adding add a new sidebar?

Let us know how it goes!

Hi @thai,

I’ve tried that before and did not work. I started to have too many issues so I opened a new post w/ all sidebar issues:

Please have a look
Thanks

Hi there,

The warning message that you see is only a warning and will not affect the functionality of the theme. Kindly read the PHP warnings here as they are not errors:

https://www.quora.com/What-is-the-difference-between-warning-and-fatal-errors-in-PHP

Now, this might be caused by several possible reasons. One is to have an old version of PHP. Simply try to use version 7+ and check the case:

php.net/supported-versions.php

Also, you can check the case by moving your website to another hosting service provider or your local machine and check, if you do not see the error again it certainly is related to your hosting service provider environment settings. For more information about moving the website:

https://codex.wordpress.org/Moving_WordPress

Thank you.