Upgrading broke my WP integrated site
-
Hi,
I’ve been running a wordpress install for many years which sits alongside a set of regular php pages. Its worked for 4 years.
Wordpress is installed in a directory /sites
e.g. https://www.mysite.com/sitesThe code I use to get wordpress working with the other php page is:
include $_SERVER[‘DOCUMENT_ROOT’].’/sites/wp-blog-header.php’;as defined by the code.
Since upgrading to 3.9.2 (and also to 4.0) the wordpress site still works fine, but I’m getting the dreaded “Error establishing a database connection” message on the main site (www.mysite.com)
I have NO idea what could have happened during the upgrade that would cause the main site to fail.
Even adding a temp.php file with JUST the include code and nothing else gives the error.Has anyone come across anything like this before? How could the wp-blog-header.php be working fine in wordpress, but failing to connect from another page?
As I say, this was working fine for over 4 years – the recent upgrade has broken something. Any help would REALLY be appreciated.
Alex
- The topic ‘Upgrading broke my WP integrated site’ is closed to new replies.