Tagged: x
-
AuthorPosts
-
March 6, 2017 at 9:18 pm #1397151
Hello,
I am getting an error after upgrading to Version: 4.6.4 when I try to Add a new page. I am running the site on WordPress 4.7.3 and PHP version 7.1.0.
My site is http://www.smokeyridgeapiaries.com
Here is the error:
PHP Warning: in_array() expects parameter 2 to be array, string given in D:\home\smokeyridgeapiaries.com\wwwroot\wp-content\themes\x\framework\functions\global\admin\meta\setup.php on line 246
PHP Warning: in_array() expects parameter 2 to be array, string given in D:\home\smokeyridgeapiaries.com\wwwroot\wp-content\themes\x\framework\functions\global\admin\meta\setup.php on line 246
PHP Warning: in_array() expects parameter 2 to be array, string given in D:\home\smokeyridgeapiaries.com\wwwroot\wp-content\themes\x\framework\functions\global\admin\meta\setup.php on line 246Any help would be greatly appreciated.
Rob
March 6, 2017 at 9:33 pm #1397155This reply has been marked as private.March 7, 2017 at 2:15 am #1397355Hi there,
Thanks for writing in! Those are not considered as errors, but warnings which you can ignore by changing the following line in your wp-config.php file which is located under the root of your WordPress installation.
define('WP_DEBUG', true);
Locate the above line and change it as follows.
define('WP_DEBUG', false);
Hope that helps.
March 7, 2017 at 8:47 am #1397760Hello,
I’ve done that and still get the error/warning. If it isn’t an error, I’m not sure how to describe it because it prevents me from adding a new page to the site.
Here is what I have and have tried in combination and each line independently.
define(‘WP_DEBUG’, false);
error_reporting(0);My customers were reporting seeing errors once completing their orders also. This only happened after I upgraded. I put in a child them and get the same result.
Thanks,
Rob
March 7, 2017 at 11:38 am #1398025Hey Rob,
I can’t see such error but I am getting this when try to create new page – http://prntscr.com/eh6ebq
It looks like your WordPress core has some file missing as it’s directly related to WordPress. It also might causing by any plugin. So first try disabling all plugins and if the issue still persist, let’s do a fresh WordPress installation from Dashboard > Updates.
Cheers!
March 7, 2017 at 12:43 pm #1398104I am not sure why you are getting that error. I have attached a screenshot of the what I see when adding a page. Please use the FTP info I provided and you and see if you see the file also?
I’d be happy to do a fresh install, but I would like to make sure we aren’t chasing our tails before going that route.
Thanks!
March 7, 2017 at 11:56 pm #1398660Hi there,
I see the error on your page, would you please try testing for a plugin conflict? You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.
Let us know how it goes.
March 8, 2017 at 7:07 am #1399004Hi,
I deactivated each plugin one by one, testing the Add New page each time and got the same error even with every plugin inactivated.
I tried commenting out line 246 and the error goes away, but I am concerned that will have negative ramifications that I am not aware of.
Rob
March 8, 2017 at 9:29 am #1399158Please uncomment it and try following this solution https://aristath.github.io/blog/wp-hide-php-errors
Thanks.
March 8, 2017 at 9:55 am #1399192I am still getting the same result after making the recommended changes to the wp-config.php file.
Rob
March 8, 2017 at 4:31 pm #1399743Hi there,
It looks like cache, it’s gone now. Please check it again.
Thanks!
March 8, 2017 at 5:12 pm #1399768Hello,
I have attempted to access Pages/Add New from 3 different browsers on 2 computers that I have never used to access this admin and still get this error.
From what I understand PHP doesn’t cache scripts? What are you thinking is cached? How did you get it to work? Does it still work for you?
Rob
March 9, 2017 at 12:08 am #1400135Hi there,
Everything can be cached, there are caches even on your browsers. Though, I checked again and it appears, looks like random to my end. In that case, please change this code
define('WP_DEBUG', false); error_reporting(0);
to this
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false); error_reporting(0);
Thanks!
March 9, 2017 at 5:25 am #1400404Eureka! That did the trick.
Thank you!
March 9, 2017 at 7:15 am #1400472Glad we were able to help 🙂
-
AuthorPosts