Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1397151

    brytrof
    Participant

    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 246

    Any help would be greatly appreciated.

    Rob

    #1397155

    brytrof
    Participant
    This reply has been marked as private.
    #1397355

    Darshana
    Moderator

    Hi 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.

    #1397760

    brytrof
    Participant

    Hello,

    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

    #1398025

    Rupok
    Member

    Hey 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!

    #1398104

    brytrof
    Participant

    I 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!

    #1398660

    Christopher
    Moderator

    Hi 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.

    #1399004

    brytrof
    Participant

    Hi,

    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

    #1399158

    Christian
    Moderator

    Please uncomment it and try following this solution https://aristath.github.io/blog/wp-hide-php-errors

    Thanks.

    #1399192

    brytrof
    Participant

    I am still getting the same result after making the recommended changes to the wp-config.php file.

    Rob

    #1399743

    Rad
    Moderator

    Hi there,

    It looks like cache, it’s gone now. Please check it again.

    Thanks!

    #1399768

    brytrof
    Participant

    Hello,

    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

    #1400135

    Rad
    Moderator

    Hi 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!

    #1400404

    brytrof
    Participant

    Eureka! That did the trick.

    Thank you!

    #1400472

    Darshana
    Moderator

    Glad we were able to help 🙂