Problem with Cornerstone and class-font-manager.php

Hi,
I updated website that I manage and at first on live page it didn’t show Cornerstone data, then I got blank page. I’ve reinstalled latest wordpress, X theme and Cornerstone with no luck. Blank page I got fixed for a moment by removing Cornerstone using FTP but as I need Cornerstone on the website that helps so little in the end.

I also added:
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ );
That didn’t help.

Then I added define( ‘WP_DEBUG’, true ); to wp-config.php and got this:

Warning: require_once(/home/site/public_html/wp-content/plugins/cornerstone/includes/classes/styling/class-font-manager.php): failed to open stream: Permission denied in /home/site/public_html/wp-content/plugins/cornerstone/includes/cornerstone-plugin.php on line 105

Fatal error: require_once(): Failed opening required ‘/home/site/public_html/wp-content/plugins/cornerstone/includes/classes/styling/class-font-manager.php’ (include_path=’.:/opt/alt/php72/usr/share/pear’) in /home/site/public_html/wp-content/plugins/cornerstone/includes/cornerstone-plugin.php on line 105

Any ideas how to fix it?

UPDATE: class-font-manager.php has permission of 00 and I cannot change that to 644.

UPDATE 2: Ok, I solved this. I created new blank file called class-font-manager2.php and gave it permission of 644. After that I edited the file and added content from original class-font-manager.php file and saved. Then removed original and renamed new file without the “2”. It worked. Solution was easier than I first thought. :slight_smile:

Hello There,

We are just glad that you have figured it out a way to correct the said issue.
Thanks for letting us know!

For best results and to prevents this from happening again, please check out the permissions:
https://codex.wordpress.org/Changing_File_Permissions

Best Regards.

Exact same problem here. with the latest update (v3.1.5).

Warning: require_once(/home/site/public_html/wp-content/plugins/cornerstone/includes/classes/styling/class-font-manager.php): failed to open stream: Permission denied in /home/site/public_html/wp-content/plugins/cornerstone/includes/cornerstone-plugin.php on line 105

We tried twice and had to roll back because the contents of this file is not readable at all. The “0000” permissions could not be changed in any way except removing/rename it. cPanel shared server.

Where can we find the Cornerstone install file to replace this file in such events?

EDIT: Found the 3.1.5 cornerstone-zip.

Hi @AmfiKreativ

I wonder if you managed to fix this permissions issue on that file? I believe your hosting provider should help you carrying out this change.

Thanks.

I managed to delete the file. The zip found in x/framework/plugins was not the right version, probably after rolling back the site. I replace it with a file from another x-theme website. It would be nice to have a place to download this cornerstone plugin from the members area.

EDIT: It happened with the 3.16 update too.

Hey @AmfiKreativ,

Cornerstone can automatically be downloaded if you go to X > Validation.

1 Like

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