Fatal Error Multiple Times a Day

Hi guys,

I get the following fatal error multiple times a day. What can I do to stop the error?

[16-Sep-2020 01:39:09 UTC] PHP Fatal error: Uncaught Error: Call to undefined function x_get_option() in /srv/users/wordpress/apps/wordpress/public/wp-content/plugins/cornerstone/includes/extend/portfolio.php:31
Stack trace:
#0 /srv/users/wordpress/apps/wordpress/public/wp-includes/class-wp-hook.php(287): cs_portfolio_init(’’)
#1 /srv/users/wordpress/apps/wordpress/public/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#2 /srv/users/wordpress/apps/wordpress/public/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /srv/users/wordpress/apps/wordpress/public/wp-settings.php(540): do_action(‘init’)
#4 /srv/users/wordpress/apps/wordpress/public/wp-config.php(122): require_once(’/srv/users/word…’)
#5 /srv/users/wordpress/apps/wordpress/public/wp-load.php(37): require_once(’/srv/users/word…’)
#6 /srv/users/wordpress/apps/wordpress/public/wp-admin/upgrade.php(18): require(’/srv/users/word…’)
#7 {main}
thrown in /srv/users/wordpress/apps/wordpress/public/wp-content/plugins/cornerstone/includes/extend/portfolio.php on line 31

Hi Jamie,
Thanks for reaching out.

There are a few possible reasons for the issue and can help after having the exact errors.
Please add the below-given code into your wp-config.php for debug setup, and the error logged into the file name debug.log inside the wp-content folder.
You can let us know what error you find to so we can do further investigation based on that.

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
//SET PHP INI DISPLAY ERROR FALSE
@ini_set( 'display_errors', 0 );

Please find the video will help you to edit wp-config.php and add the above code: https://www.youtube.com/watch?v=3SDPTafEM8o
I would also suggest you check by deactivating and deleting the existing Cornerstone plugin and install the updated one again.

If none of these helps, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Admin URL
– WordPress Admin username / password
– FTP/CPanel access

To create a secure note, click the key icon underneath any of your posts.

Thanks

Thanks for your reply @tristup. I followed your instructions a few days ago and still don’t have a debug.log file in the wp-content folder. Since setting up Fail2Ban a few days ago, the outages occur once every couple of days, so Fail2Ban seems to have been part of the solution.

I had an outage for three minutes yesterday at around 13:00 server time and my php7.2.slow.log file had several entries around that time. I’ll include the log in this reply. Do you see anything that could be causing these outages?

Hi Jamie,

Thanks for the detailed report, and as per the report, it can be assumed that the problem might be coming from one of your plugin W3C Cache or Yoast Seo.
I would like to suggest you deactivate the said plugin(s) and check whether your issue exists or not, if not that means the issue is with the plugin and you need to contact the plugin author in that case.
Please remember to clear all the cache, before you deactivate the cache plugins.
If you find the issue still persists, I would suggest you troubleshoot a few common issues:

  1. Testing for Plugin Conflict
  2. CSS/JS Customization
  3. Disabling Cache

If none of these helps, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Admin URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi @tristup,

My server went down again at 2020-09-27 22:00:37 UTC+9 for about eight minutes. The php7.2.slow.log file shows again the server was struggling around this time. I disabled W3C Cache and Yoast SEO several days ago so these probably weren’t the reason for the outage. If you could take a look at my server I’d really appreciate it. Thank you. I’ll include the login credentials in a secure note.

Hello Jamie,

Can you please include the WP access so that we can check your WP settings?

Thank you in advance.

Sure! Just updated the secure note above.

Hi Jamie,

There are several issues in your installation that needs to be fixed first.

Kindly check out the secure note.

Thank you. I’ve dealt with as many errors here (on that plugin’s homepage) as I could. I’ll now wait and see if the site goes down again.

Hey Jamie,

Do update us if your site goes down again. Thanks!

Thanks for all the support. It looks as though PHP was the problem. Since updating PHP to version 7.4 the server hasn’t gone down. Thought I should let you know!

HI Jamie,

We are glad that your website don’t have any down time problems anymore. If you have any other concerns, feel free to reach us.

Thank you.

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