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
 All Forums
 General
 Design issues
 upgrating from 6.1.1
Author « Topic »  

squadri
Advanced Member

Canada
235 Posts

Posted - 06/04/2018 :  13:03:06  
Hi, I have an old ECT site running on PHP 6.1.1. I would like to upgrade it to the latest version 6.9.2.
Can i directly apply the latest updater or there would be a sequence to follow for updating. Please advice

Andy
ECT Moderator

95440 Posts

Posted - 06/04/2018 :  14:15:50  
Hi

You can update directly to the latest but just make sure that each store has its own updater. Updaters are cumulative so there's no sequence or anything like that - also remember that you will need the ectcart.css file uploaded and that needs to be called from all the public store pages.

Andy

Please feel free to review / rate our software

squadri
Advanced Member

Canada
235 Posts

Posted - 06/04/2018 :  23:36:53  
Hi,

I have upgraded my website from PHP 6.1.1 to PHP6.9.2. Getting the following error:


Fatal error: Uncaught Error: Class 'mysqli' not found in /home/gee0pld6ctqp/public_html/vsadmin/db_conn_open.php:14 Stack trace: #0 /home/gee0pld6ctqp/public_html/updatestore.php(24): include() #1 {main} thrown in /home/gee0pld6ctqp/public_html/vsadmin/db_conn_open.php on line 14

Please advice:

Thanks

Server information:
Godaddy.com
PHP Cpanel

db_conn_open:

<?php

// You host should be able to provide you with these settings if you do not know them already

$db_username = "xxxxx"; // Your database login username
$db_password = "xxxxxx"; // Your database login password
$db_name = "xxxxxxxxx"; // 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
ECT Moderator

95440 Posts

Posted - 06/04/2018 :  23:58:57  
Can you check what version of PHP is running on the server, it needs to be a minimum of PHP5.6.

If that is correct, can you look at the thread here and specifically the post from Vince https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=106753

Andy

Please feel free to review / rate our software

V45
Advanced Member

United Kingdom
416 Posts

Pre-sales questions only
(More Details...)

Posted - 06/05/2018 :  04:49:02  
Hi Squadri

I would remove the database connection details from your earlier post. Posting that on an open forum is asking for trouble

$db_username = "xxxxxxx"; // Your database login username
$db_password = "xxxxxxxx"; // Your database login password
$db_name = "xxxxxx"; // The name of the database you wish to use
$db_host =



Will
Bolton Manchester UK

squadri
Advanced Member

Canada
235 Posts

Posted - 06/05/2018 :  22:36:40  
Hi Andy,

I reinitialized the godaddy shared server and installed the site back on. This time it's connected and working fine. However, I noticed that at back-end "Product Admin" and "categories Admin" pages throwing strange errors that I could not understand. I can't even update information on these pages.

I have checked the PHP version on my godaddy Cpanel Hosting, it is currently running on 7.2. I even change it back to 5.6 but the error persist.

Currently on Updater 6.9.2 PHP

I can send you the login information if required.

Error on Product admin page:

'; var scrwid=screen.width; var scrhei=screen.height; var newwin=window.open("","uploadimage",'menubar=no,scrollbars=yes,width='+winwid+',height='+winhei+',left='+((scrwid-winwid)/2)+',top=100,directories=no,location=no,resizable=yes,status=no,toolbar=no'); newwin.document.open(); newwin.document.write(prnttext); newwin.document.close(); newwin.focus(); } function imagemanager(){ if(document.getElementById('extraimages').style.display=='none'){ document.getElementById('extraimages').style.display=''; document.getElementById('lessimages').style.display='none'; document.getElementById('lessimages2').style.display='none'; document.getElementById('but_pImage').value="Close Image Mgr."; document.getElementById('pImage').disabled=true; document.getElementById('smallimup').style.display='none'; document.getElementById('moreimages').style.display=''; }else{ document.getElementById('extraimages').style.display='none'; document.getElementById('lessimages').style.display=''; document.getElementById('lessimages2').style.display=''; document.getElementById('but_pImage').value="Image Mgr."; document.getElementById('pImage').disabled=false; document.getElementById('smallimup').style.display=''; document.getElementById('moreimages').style.display='none'; } } function moreimagefn(){ var thetable=document.getElementById('extraimagetable'); var currmax=parseInt(document.getElementById('maximgindex').value); for(imindx=currmax; imindx '; newcell=newrow.insertCell(1); newcell.style.whiteSpace='nowrap'; newcell.innerHTML='
'; newcell=newrow.insertCell(2); newcell.style.whiteSpace='nowrap'; newcell.innerHTML='
'; } document.getElementById('maximgindex').value=imindx; } function setstatic(setting){ if(setting==0){ document.getElementById('staticpagediv').style.display=''; document.getElementById('staticurldiv').style.display='none'; }else{ document.getElementById('staticpagediv').style.display='none' document.getElementById('staticurldiv').style.display=''; } } function displaymultilangname(){ for(var index=2;index<=3;index++){ if(document.getElementById('pName'+index))document.getElementById('pName'+index).style.display='block'; } } function getectobj(objid){ return(document.getElementById(objid)); } function expandckeditor(objtxt,editornumber){ for(index=1;index<=3;index++){ if(document.getElementById('editordiv'+objtxt.substr(0,4)+index))document.getElementById('editordiv'+objtxt.substr(0,4)+index).style.display=''; } if(document.getElementById('editordiv'+objtxt.substr(0,4)+editornumber)){ document.getElementById('editordiv'+objtxt.substr(0,4)+editornumber).style.border='none'; document.getElementById('editordiv'+objtxt.substr(0,4)+editornumber).style.padding=0; } getectobj('descshort').style.width=objtxt.substr(0,4)=='pDes'?'60%':'40%'; getectobj('desclong').style.width=objtxt.substr(0,4)=='pDes'?'40%':'60%'; } function displaymultilangdescs(islongdesc,thisobj){ var setobj; for(var index=2;index<=3;index++){ if(document.getElementById('pDescription'+index))document.getElementById('pDescription'+index).style.display='block'; if(document.getElementById('pLongDescription'+index))document.getElementById('pLongDescription'+index).style.display='block'; } for(var index=1;index<=3;index++){ if(!islongdesc){ if(setobj=getectobj('pDescription'+(index==1?'':index)))setobj.style.width='500px'; if(setobj=getectobj('pLongDescription'+(index==1?'':index)))setobj.style.width='300px'; if(index==thisobj){ if(setobj=getectobj('pDescription'+(index==1?'':index)))setobj.style.height='200px'; if(setobj=getectobj('pLongDescription'+(index==1?'':index)))setobj.style.height='100px'; }else{ if(setobj=getectobj('pDescription'+(index==1?'':index)))setobj.style.height='100px'; if(setobj=getectobj('pLongDescription'+(index==1?'':index)))setobj.style.height='100px'; } } if(islongdesc){ if(setobj=getectobj('pDescription'+(index==1?'':index)))setobj.style.width='300px'; if(setobj=getectobj('pLongDescription'+(index==1?'':index)))setobj.style.width='500px'; if(index==thisobj){ if(setobj=getectobj('pDescription'+(index==1?'':index)))setobj.style.height='100px'; if(setobj=getectobj('pLongDescription'+(index==1?'':index)))setobj.style.height='200px'; }else{ if(setobj=getectobj('pDescription'+(index==1?'':index)))setobj.style.height='100px'; if(setobj=getectobj('pLongDescription'+(index==1?'':index)))setobj.style.height='100px'; } } } } function checkrequiredfields(){ document.getElementById('newid').style.borderColor=(document.getElementById('newid').value.replace(/ /g,'')==''?'red':''); document.getElementById('pName').style.borderColor=(document.getElementById('pName').value.replace(/ /g,'')==''?'red':''); document.getElementById('pPrice').style.borderColor=(document.getElementById('pPrice').value.replace(/ /g,'')==''?'red':''); document.getElementById('psection').style.borderColor=(document.getElementById('psection').selectedIndex==0?'red':''); } function createextrapbrow(tnum){ var rownum=parseInt(document.getElementById('pricebreakrows').value); if(rownum==tnum){ rownum++; document.getElementById('pricebreakrows').value=rownum; var newdiv=document.createElement('div'); newdiv.style.display='table-row'; newdiv.style.fontSize='11px'; newdiv.innerHTML='
' + '
' + '' + '
' + ''; document.getElementById('pricebreaktable').appendChild(newdiv); } } /* ]]> */
Use this page to update your store products.


Error on Category admin page:
'; var scrwid=screen.width; var scrhei=screen.height; var newwin=window.open("","uploadimage",'menubar=no,scrollbars=yes,width='+winwid+',height='+winhei+',left='+((scrwid-winwid)/2)+',top=100,directories=no,location=no,resizable=yes,status=no,toolbar=no'); newwin.document.open(); newwin.document.write(prnttext); newwin.document.close(); newwin.focus(); } function expandckeditor(divid){ document.getElementById(divid).style.border='none'; document.getElementById(divid).style.padding=0; } /* ]]> */

Andy
ECT Moderator

95440 Posts

Posted - 06/06/2018 :  00:00:41  
Those are Godaddy stats, there's a post here showing how to get rid of that "feature" https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=109587

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.03 seconds. Snitz Forums 2000