Also have this problem after updating to PHP 7.2 to try to sort Cornerstone issues

Continuing the discussion from PHP 7.2 warning in Cornerstone:

Warning: count(): Parameter must be an array or an object that implements Countable in /home/suncoastjmc/public_html/wp-content/plugins/cornerstone/includes/classes/app/class-app-boot.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/suncoastjmc/public_html/wp-content/plugins/cornerstone/includes/classes/app/class-app-boot.php:35) in /home/suncoastjmc/public_html/wp-includes/pluggable.php on line 1216

I cant access Cornerstone or Theme Options and debug is already false. Seems to be related to the widgets in the footer.

Site is www.suncoastjmc.com

Hey @deanmath,

I could not get in in WP admin in your site. Please give us admin level access and would you also mind giving us FTP access?

Please also disable error reporting in your live site.

Thanks.

Admin access done. FTP access above

I also went back to PHP 7.1 and the messages stopped. But there is other issues where edit with Cornerstone kicks you back to the login screen.

Hey @deanmath,

The given FTP credentials does not work.

Please try the following:

  1. Clear all caches including browser cache then deactivate your caching plugins and other optimization plugins.

  2. If you’re using a CDN, please clear the CDN’s cache and disable optimization services.

  3. Test 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.

  4. Remove custom CSS, Javascript and templates.

  5. Reset your htaccess file by renaming it to .htaccess-bak. Then in WP Admin Menu, go to Settings > Permalinks and just click the Save Changes button.

  6. Contact your host to increase your allocated memory or do it yourself by adding this code in your wp-config.php

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

Thanks.

  1. Already done
  2. Not using
  3. Already tried this
  4. There isn’t any
  5. Done
  6. Already done

FTP user settings modified above

Hey @deanmath,

There might be features in PHP 7.2 that might be incompatible with Cornerstone yet. Including your report, there 3 cases regarding this already. Here’s another. Please try downgrading to an earlier version of PHP 7. I’ll post this to our issue tracker.

Thanks.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.