• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

PHP settings broken with error: Call to a member function isDefault() on null (Domain.php:748)

Dan Mikkelsen

Basic Pleskian
I have plesk 12.5 on debian 7.5, and after I just tried adding a reseller and moved a customer to this account, I get several errors, and afterwards I cant open the PHP settings when logged in as the customer.
After checking around some of the knowledge base, it seemed like a faulty php setting ID, but in the plesk database, the domain doesn't have the phpconfigurationID at all.

All I get is the ERROR: Call to a member function isDefault() on null (Domain.php:748)
If I try to change the subscription I just get a new error for the function.
In the Webserver Configurations Troubleshooter i see there is an error for the domain, and it tells me "Configuration scheduled and not applied", but it cannot rebuild it or fix it in anyway.
What can I do? I already tried doing a restore of the domain, but to no help.
 
What is output of following SQL query:

select d.name, sp.name, sp.value from domains d, Subscriptions s, SubscriptionProperties sp where d.id=s.object_id and s.Object_type='domain' and s.id=sp.subscription_id and sp.name='phpSettingsId' and d.name='yourdomain.com';

?
 
Ok. Fix it with

mysql> insert into PhpSettings values (15,0);
mysql> insert into PhpSettings values (8,0);
 
Arh nice! this finally worked thank you!! I did found a KB article, but it didn't found the PhpSettingsID for me!

But what could have coursed this error, and could I expect other errors I need to examine?
 
Do you have any warnings/errors in output of

# plesk repair db

?
 
I'm a little bit scared of running that command since things just broke all of the sudden earlier :/
But does it only write to the database, so that all i need is a backup of it to restore?
 
With -n option it will check database only, without repairing.

# plesk repair db -n
 
Back
Top