Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

Andy
ECT Moderator

95440 Posts

Posted - 05/27/2017 :  03:01:47  
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
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000