Hi
We've seen a few people switching to PHP 7 recently and that's good as it is supported by ECT from version 6.6 and 7.1 from ECT v6.7. A couple of people have reported problems and generally this is down to the syntax in includes.php and db_conn_open.php
In vsadmin/includes.php if the first line shows as <SCRIPT language="php"> change the line from
<SCRIPT language="php">
to
<?php
and the last line from
</SCRIPT>
to
?>
….and then make sure you db_conn_open.php is in this format but with your database details
<?php
// You host should be able to provide you with these settings if you do not know them already
$db_username = ""; // Your database login username
$db_password = ""; // Your database login password
$db_name = ""; // The name of the database you wish to use
$db_host = "localhost"; // The address of the database. Often this is localhost, but may be for example db.yoursite.com
//////////////////////////////////////////////////
// Please do not edit anything below this line. //
//////////////////////////////////////////////////
$GLOBALS['ectdatabase'] = new mysqli($db_host, $db_username, $db_password, $db_name);
if(mysqli_connect_error()){
ob_clean();
print '<html><head><title>Database connect error</title><style>div{ margin:20px }</style></head>';
print '<body><div>Database Connect Error (' . mysqli_connect_errno() . ') ' . mysqli_connect_error() . '</div>';
print '<div>You need to set your database connection in vsadmin/db_conn_open.php</div>';
print '<div>For help setting your database connection please see...<br />';
print '<a href="https://www.ecommercetemplates.com/' . 'phphelp/ecommplus/instructions.asp#dbconn" target="_blank">Database Connection Instructions</a></div>';
print '<div>We also have a support forum here...<br />';
print '<a href="https://www.ecommercetemplates.com/' . 'support/" target="_blank">Support Forum</a></div>';
die('</body></html>');
}
?>
Andy
Please feel free to review / rate our software