ErnieAlex, Thanks for that reply, hope you enjoyed the party.
I can’t see server logs because have not got access so that won’t help.
Think the template of these files is built in such a way that is very hard to do changes or add things (at least for me).
Here is what i have tried, added the new connection string gets no access to database with all the same user, password etc.
Have tried the following replaced this
if (isset($HostedUrl))
{
$Connection = new HostedDataConnection($HostedUrl, $HostedKey);
if ($HostedAdmin)
$AdminConnection = $Connection;
}
else
{
$Connection = new DataConnection($DatabaseHost, $DatabaseName, $DatabaseAccount, $DatabasePassword);
if (isset($AdminDatabaseHost))
$AdminConnection = new DataConnection($AdminDatabaseHost, $AdminDatabaseName, $AdminDatabaseAccount, $AdminDatabasePassword);
else
$AdminConnection = $Connection;
}
with this
if (isset($HostedUrl))
{
$conn = new HostedDataConnection($HostedUrl, $HostedKey);
if ($HostedAdmin)
$AdminConnection = $conn;
}
else
{
$conn = new DataConnection($DatabaseHost, $DatabaseName, $DatabaseAccount, $DatabasePassword);
if (isset($AdminDatabaseHost))
$AdminConnection = new DataConnection($AdminDatabaseHost, $AdminDatabaseName, $AdminDatabaseAccount, $AdminDatabasePassword);
else
$AdminConnection = $conn;
}
Got same error “cannot connect to database”
after that i looked through all the files in the template to find $Connection and replace with $conn as well still same error.
Starting to think that it cannot be solved without writing the whole template again, which i know i won’t be able to do.
But thanks so much for all your help.