• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Backup error (missing column in hotlink_prot)

Joost@

New Pleskian
Hello,

When running a scheduled backup the backup process exits after only a minute and I recieve the following error by e-mail:

Backup error.
Can't query SELECT `extensions`,`enabled`,`dom_id`,`subdom_id` FROM hotlink_prot: MySQL error 1054:Unknown column 'subdom_id' in 'field list'

- I recently upgraded to 7.5.6 and installed all available patches/updates.
- The error doesn't depend on the settings for disabling domains/plesk control panel.
- I tried a repair through the setup of plesk (using the 'add/remove software' item of the control panel). Didn't help.

Of course I could add the missing column by hand, but I'd rather not change anything to the plesk database before I'm absolutely sure I'm not breaking anything else.

When I open the 'Hotlink protection' page of a domain, I get the following error on top of the page:

Warning: Invalid argument supplied for foreach() in E:\PROGRA~1\SWsoft\Plesk\admin\plib\class.HotLinkProtectionForm.php on line 99

Notice: Undefined index: extensions in E:\PROGRA~1\SWsoft\Plesk\admin\plib\class.HotLinkProtectionForm.php on line 117

Warning: implode(): Bad arguments. in E:\PROGRA~1\SWsoft\Plesk\admin\plib\class.HotLinkProtectionForm.php on line 117

Warning: implode(): Bad arguments. in E:\PROGRA~1\SWsoft\Plesk\admin\plib\class.HotLinkProtectionForm.php on line 121

This also indicates a problem with the hotlink table.
 
how about current configuration of this table?
you can get it by
desc hotlink_prot
query
 
Hi, my current table setup layout is:


mysql> desc hotlink_prot;
+------------+----------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+----------------------+------+-----+---------+-------+
| dom_id | int(10) unsigned | | PRI | 0 | |
| enabled | enum('false','true') | | | false | |
| extensions | varchar(255) | | | | |
| subdom_id | int(10) | YES | | NULL | |
+------------+----------------------+------+-----+---------+-------+
4 rows in set (0.00 sec)

As you can see I added the missing column by hand. After adding it to this table, I noticed it was also missing from the hotlink_friends table. I also added the column to that table, and the backup is now running fine.

But I do want to know what caused this, because there might be more issues (if there was something wrong with the updates) that might come up in the future.
 
in my.ini change sql-mode="" and restart MySQL. After that check if it makes any difference.
 
Back
Top