wp_wc_product_download_directories
-
Hi,
There’s a bug in WooCommerce database design which limitsurl
to 256 characters in thewc_product_download_directories
table.
As per https://www.ietf.org/rfc/rfc1035.txt, a domain name can be 256 characters thus a URL such ashttps://{domain_name}
will be more, at least 8 more characters.mysql> DESCRIBE wp_wc_product_download_directories
-> ;
ERROR 4031 (HY000): The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior.
No connection. Trying to reconnect…
Connection id: 54109716
Current database: rk6xrkn_teix
+---------+-----------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------+-----------------+------+-----+---------+----------------+
| url_id | bigint unsigned | NO | PRI | NULL | auto_increment |
| url | varchar(256) | NO | MUL | NULL | |
| enabled | tinyint(1) | NO | | 0 | |
+---------+-----------------+------+-----+---------+----------------+
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.