Changes between Initial Version and Version 1 of Ticket #57269
- Timestamp:
- 12/03/2022 08:03:19 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #57269
- Property Keywords close 2nd-opinion added
- Property Focuses performance removed
-
Property
Component
changed from
Database
toUpgrade/Install
-
Property
Summary
changed from
Force WordPress to get it's siteurl from config not from the databes
toIn multisite, get site URL from config instead of the database
-
Ticket #57269 – Description
initial v1 6 6 so what I suggest is to set the site and home URLs from the wp-config.php file 7 7 like 8 define( 'SITEURL', 'https://mywebsite.com' ); 8 `define( 'SITEURL', 'https://mywebsite.com' );` 9 9 10 10 I know it is not very simple, especially with multi-sites but it deserves 11 11 12 12 I also tried 13 {{{ 13 14 define( 'WP_HOME', 'http://example.com' ); 14 15 define( 'WP_SITEURL', 'http://example.com' ); 16 }}} 15 17 16 18 but if you don't have 'siteurl' option on your site it will give you 17 'Error establishing a database connection in the front end19 'Error establishing a database connection' in the front end 18 20 and 19 21 'One or more database tables are unavailable. The database may need to be repaired.' … … 21 23 which even not the clear error message 22 24 die to 23 wp-includes/functions.php => function is_blog_installed 25 `wp-includes/functions.php => function is_blog_installed` 24 26 25 27