• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

[SOLVED] Plesk 12.5 - Wordpress module: PHP fatal error

Alban Staehli

Regular Pleskian
Hi,

In Plesk 12.5 (centos 7 / Update 12), I've the following error message when I try to visualize a wordpress install that was initially not done through the application installer:

PHP:
PHP Fatal error: Call to undefined function get_option() in /var/www/vhosts/domain.tld/httpdocs/wp-content/plugins/xcalendar/xcalendar.php on line 266

It used to work fine, I was even able to sync the installation and execute some security patches through Plesk.

Any idea on what to do to avoid the error message?
Thx.
 
Hello Alban,

I don't think this is a Plesk related problem ..This must be entirely a WP issue ..
However, usually that error signifies missing or un-called / included files.

A bit of Googling suggests that you re-upload to (wp-includes) some few files from a clean WP installation such as:
  • functions.php
  • functions.wp-scripts.php
  • functions.wp-styles.php
I guess what you only need to upload is the second file, but don't experiment, upload them all and let us know if that resolves the problem!
 
Hi Alban Staehli,

you should investigate your issue more closely, because your described issue points to a wordpress hack. I recommend to de-aktivate the fake plugin, if possible over the dashboard, rename the folder "/var/www/vhosts/domain.tld/httpdocs/wp-content/plugins/xcalendar" to "/var/www/vhosts/domain.tld/httpdocs/wp-content/plugins/.inactive_xcalendar" and consider to post the content of the file "xcalendar.php" and all other files in the folder "/var/www/vhosts/domain.tld/httpdocs/wp-content/plugins/.inactive_xcalendar" for further investigations and post as well a list of your currently installed plugins, please.

For further investigations, please consider as well to inspect previously added or changed files in the folder "/var/www/vhosts/domain.tld/httpdocs/", because there might be more left-overs from the fake plugin, than the ones in the folder "xcalendar" ( now renamed to ".inactive_xcalendar" ).
 
Back
Top