mediator
Ecommerce Template Expert
United Kingdom
663 Posts Pre-sales questions only (More Details...)
|
Posted - 03/17/2017 : 07:42:04
fasthost are saying the ECT isnt compatibly with PHP 7.0 version , i updated my server to PHP 7.0 version and the site not showing
is this correct ?
regards Jamie
|
Phil
ECT Moderator
United Kingdom
7699 Posts |
Posted - 03/17/2017 : 07:51:24
Hi Jamie, I run a few ECT sites on version 6.6.3 on PHP 7.0 - it is compatible, you may have to make a few minor changes though. For example, if your vsadmin/include.php file starts and ends like this <SCRIPT language="php"> content here </SCRIPT> It needs to be like this <?php content here ?> The same applies for any include lines you have on the store pages * Database Migrations and Conversions* * ASP to PHP Cart Conversions**Contact Us**Buy The PHP Capture Card Plugin**Rate Our Services/View Our Feedback*
|
mediator
Ecommerce Template Expert
United Kingdom
663 Posts Pre-sales questions only (More Details...)
|
Posted - 03/17/2017 : 08:05:31
HI Phil
i just put it back to 5.6 php and its working again but here what fasthosts said in our messages
FASTHOST SAID :
I run some further test and site is still showing a blank page i tried to check the error logs it gives me these said details: [Thu Mar 16 13:20:04.483550 2017] [fcgid:warn] [pid 38342] [client 74.208.134.21:54129] mod_fcgid: stderr: thrown in /home/linweb37/s/mysite.co.uk-1092262535/user/htdocs/vsadmin/inc/languagefile.php on line 10 I am afraid that your site is not yet compatible to a PHP 7.0 version, can you try to switch it to 5.6 instead?
.....
SO i looked at my includes and it doesnt start with <SCRIPT language="php">
what else would i need to change as i would like to be running on php version 7
cheers
Jamie
|
Phil
ECT Moderator
United Kingdom
7699 Posts |
Posted - 03/17/2017 : 08:15:00
Edited by - Phil on 03/17/2017 08:17:35
|
timgreen
Advanced Member
108 Posts Pre-sales questions only (More Details...)
|
Posted - 04/13/2017 : 05:56:28
Hi
Please can you provide the correct format for the mysqli command in the db_conn_open.php file please as mine is definitely out of date.
[code]$dbh=mysql_connect($db_host, $db_username, $db_password) or die ('You need to set your database connection in vsadmin/db_conn_open.php.</td></tr></table></body></html>'); mysql_select_db($db_name) or die ('You need to set your database connection in vsadmin/db_conn_open.php.</td></tr></table></body></html>');[/code]
Thanks Tim
|
Andy
ECT Moderator
95440 Posts |
Posted - 04/13/2017 : 05:58:10
Hi Tim The db_conn_open.php file should look like this <?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></head><body><div style="margin:20px;clear:both">Database Connect Error (' . mysqli_connect_errno() . ') ' . mysqli_connect_error() . '</div>'; print('<div style="margin:20px;clear:both">You need to set your database connection in vsadmin/db_conn_open.php</div>'); print '<div style="margin:20px;clear:both">For help setting your database connection please see...<br />'; print '<a href="https://www.ecommercetemplates.com/phphelp/ecommplus/instructions.asp#dbconn" target="_blank">https://www.ecommercetemplates.com/phphelp/ecommplus/instructions.asp#dbconn</a></div>'; print '<div style="margin:20px;clear:both">We also have a support forum here...<br />'; print '<a href="https://www.ecommercetemplates.com/support/" target="_blank">https://www.ecommercetemplates.com/support/</a></div>'; die('</body></html>'); } ?> Andy Please feel free to review / rate our software
|
timgreen
Advanced Member
108 Posts Pre-sales questions only (More Details...)
|
Posted - 04/13/2017 : 06:05:57
Perfect thanks Andy.
If anyone else has any 'gotchas' from moving to PHP7 I'd welcome any tips.
I have updated connection file and includes file.
Cheers Tim
|
Andy
ECT Moderator
95440 Posts |
Posted - 04/13/2017 : 06:11:48
|
OrientalOutpost
Advanced Member
China
302 Posts |
Posted - 05/01/2017 : 23:38:44
Moving to a new server with PHP 7.1.4 and most things do work, except that I can't add anything to the cart due to use of a string as an offset for a variable in inccart.php
Fatal error: Uncaught Error: Cannot use string offset as an array in /home/.../public_html/vsadmin/inc/inccart.php:2161
The offending code from inccart.php line 2161:
$addedprods[$numaddedprods][0]=$theid; $addedprods[$numaddedprods][1]=$thepname; $addedprods[$numaddedprods][2]=$quantity; $addedprods[$numaddedprods][3]=$thepprice; $addedprods[$numaddedprods][4]=$idexists; $addedprods[$numaddedprods][5]='';
Also, intermittent problems with line 284 in incfunctions: Recoverable fatal error: Object of class vrNodeList could not be converted to string in /home/.../public_html/vsadmin/inc/incfunctions.php on line 284 Line 284: $this->childNodes[$this->length]=new vrNodeList($this->nodeValue[$this->length]);
I guess I am stuck leasing two dedicated servers until I can resolve this and move my site/domain to the new server.
I welcome anyone with any insight to these ECT PHP7 issues.
http://www.OrientalOutpost.com
|
Andy
ECT Moderator
95440 Posts |
Posted - 05/02/2017 : 00:24:47
Hi We'll look into that for you if you'd like to subscribe to this thread. For version 6.6.4 I see line 2161 as ect_free_result($result2); so can you just confirm the version your store is running? Andy Please feel free to review / rate our software
|
OrientalOutpost
Advanced Member
China
302 Posts |
Posted - 05/02/2017 : 04:51:21
I'm running ECT 6.7.0 Beta.
http://www.OrientalOutpost.com
|
Vince
Administrator
42831 Posts |
Posted - 05/02/2017 : 08:29:08
|
Vince
Administrator
42831 Posts |
Posted - 05/06/2017 : 02:36:38
|
timgreen
Advanced Member
108 Posts Pre-sales questions only (More Details...)
|
Posted - 05/09/2017 : 02:59:35
Hi Andy
If I leave the db_conn_open.php file as it was I am getting this error showing on the Home page: "PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /<MY SERVER PATH>/vsadmin/db_conn_open.php on line 14"
If I change it to your suggested code the error goes away but when you try and pay with WorldPay it comes back to the site with a message: "Access denied for user "@'localhost' (using password: NO)Access denied for user "@'localhost'(using password: NO)
Cannot find details for order id: 4410
Any ideas?
Thanks Tim
|
Vince
Administrator
42831 Posts |
Posted - 05/09/2017 : 03:57:58
|
timgreen
Advanced Member
108 Posts Pre-sales questions only (More Details...)
|
Posted - 05/09/2017 : 04:05:59
Thanks Vince - I sent a message via forum email.
|
seal
Starting Member
USA
9 Posts Pre-sales questions only (More Details...)
|
Posted - 04/17/2018 : 18:11:00
If changes have been made to one or more files for php version 7.x, why are these files not included in the updaters?
4seals
|
insight
ECT Moderator
USA
4479 Posts |
Posted - 04/17/2018 : 19:55:02
Changes for PHP 7.x ARE included in the updater. However that can't be done in the case of vsadmin/includes.php and vsadmin/db_conn_open.php as both of those will have been customized for your site, so you are not going to be too happy if your changes get overwritten by new files in the updater. These two files are the only exceptions, and will only need editing for older templates, the current template offerings have these changes already and are fully compatible with PHP 7.x. Details here in the first post: https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=107737 Peter ServeLink Professional ecommerce web hosting for ASP & PHP https://servelink.comTake a look at our image upload/resize tool for the ASP cart https://servelink.com/clients/cart?gid=7
Edited by - insight on 04/18/2018 09:22:17
|
|
|