Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #896007
    flyingvgroup
    Participant

    See error below:

    Warning: array_key_exists() expects parameter 2 to be array, boolean given in /home/stadiumb/public_html/wp-content/themes/x/framework/functions/global/admin/sidebars.php on line 378

    Warning: Cannot modify header information – headers already sent by (output started at /home/stadiumb/public_html/wp-content/themes/x/framework/functions/global/admin/sidebars.php:378) in /home/stadiumb/public_html/wp-includes/pluggable.php on line 1171

    #896014
    flyingvgroup
    Participant
    This reply has been marked as private.
    #897091
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! The message is just a PHP warning which there is no need to worry about. To get rid of it, can you please disable WP_DEBUG mode? You can do this by opening wp-config.php and adding
    define( 'WP_DEBUG' , false ); just above /* That's all, stop editing! Happy blogging. */ For example:

    define('WP_DEBUG', false);
    
    /* That's all, stop editing! Happy blogging. */

    When you revisit the page, the PHP warning should be gone. Regarding Cornerstone that doesn’t load, it doesn’t quite get along with caching plugins. Since you have installed a caching plugin WordFence, please clear your plugin cache before testing your site. This can cause the changes to not take place on the front end. It will eventually show up when the cache regenerates, but it’s not ideal if you’re looking to see your changes immediately. Caching plugins are best to turn on only when you’ve finished building the site.

    And additionally, since you are using SiteGround, could you please disable the supercacher in your hosting panel? The SuperCacher is developed by SiteGround exclusively for their customers. It increases the number of hits a site can handle and boosts the website loading speed. The SuperCacher includes 4 different caching options for maximum optimization of your websites. You can access the tool by clicking on the SuperCacher icon in your cPanel.

    For more information about this, please check it out here: https://www.siteground.com/tutorials/supercacher/supercacher_intro.htm

    Hope this helps.

    #988988
    californiak
    Participant

    I received the same PHP warning when I clicked Appearance > Sidebars > Add Sidebar. Checked the wp-config.php file and confirmed that wp_debug is set to false. Any suggestions?

    #989110
    Rupok
    Member

    Hi @californiak

    You can try placing error_reporting(0); at the bottom of your wp-config.php file. Make sure to remove define('WP_DEBUG', false); first.

    Hope this helps.

    Cheers!

    #990058
    californiak
    Participant

    Thanks but that didn’t seem to work. I replaced define(‘WP_DEBUG’, false); with error_reporting(0); Didn’t work. Same result…

    Warning: array_key_exists() expects parameter 2 to be array, boolean given in /home/p14tnuv2/public_html/wordpress/wp-content/themes/x/framework/functions/global/admin/sidebars.php on line 378

    Warning: Cannot modify header information – headers already sent by (output started at /home/p14tnuv2/public_html/wordpress/wp-content/themes/x/framework/functions/global/admin/sidebars.php:378) in /home/p14tnuv2/public_html/wordpress/wp-includes/pluggable.php on line 1171

    #990506
    Darshana
    Moderator

    @californiak

    Are you running PHP v5.6 or above? if not please contact your hosting provider and ask them to update. If you need further assistance, we will require your login credentials. To do that, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

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

    #996060
    californiak
    Participant

    contacted host. site is on a server that’s still on PHP v5.3. working on moving the site to a newer server.

    Q: one of my pages has stopped reflecting changes ive been making in cornerstone. and when i try to exit out of cornerstone and return to wordpress, it warns me that i still need to save changes even though i already stepped through the saving process. then i check the site and see that none of the changes went through. after we migrate to new server, am i at risk of losing everything i’ve done on this page since this PHP issue surfaced? i saved a page template of that page to my library shortly before the problem started, but it doesn’t reflect the most recent changes that i described aren’t showing because of the PHP issues. can you at least comfirm that the template will be in place post-migration? also, can you confirm that the rest of my pages will be ok (the one’s i haven’t had any issues saving and confirming the changes flowed thru to public site)?

    thank you thank you thank you!!

    #996068
    Rahul
    Moderator

    Hey there,

    Please have a look at our migration document for better understanding of the process : https://community.theme.co/kb/cornerstone-migration/

    thanks

  • <script> jQuery(function($){ $("#no-reply-896007 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>