Author Topic: Manual Update Instructions ??  (Read 5684 times)

Offline Nimitz1061

  • Full Member
  • ***
  • Posts: 190
  • Karma: +21/-0
  • No matter where you go, there you are...
    • View Profile
Manual Update Instructions ??
« on: July 02, 2012, 10:23:32 AM »
I have not found any instructions for doing a manual upgrade of an existing site.

Given that Abantecart does track install and upgrade activities, there would seem to be more steps than simply uploading the files and running the sql file.  Any pointers???

David

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4152
  • Karma: +251/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Manual Update Instructions ??
« Reply #1 on: July 02, 2012, 05:14:20 PM »
It is simply uploading file over (replacing) and running SQL. That is exactly what happening under the hood, when you do the upgrade in the admin. 

Unfortunately, we do not have instructions for manual upgrade at this time. It is good point to have it and we will create it. 
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline Nimitz1061

  • Full Member
  • ***
  • Posts: 190
  • Karma: +21/-0
  • No matter where you go, there you are...
    • View Profile
Re: Manual Update Instructions ??
« Reply #2 on: July 03, 2012, 10:17:19 AM »
Thanks.  I attempted exactly that. 

Following the file upload I had to modify the SQL, as it had a table prefix which was not present in my 1.0.2 installation.

Once that was done the SQL worked fine - but the DIR_SYSTEM definition is NOT recognized, so all paths are broken.

David



Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4152
  • Karma: +251/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Manual Update Instructions ??
« Reply #3 on: July 03, 2012, 02:59:45 PM »
Please check that FTP does put all files correctly and did not fail in the middle.
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline Nimitz1061

  • Full Member
  • ***
  • Posts: 190
  • Karma: +21/-0
  • No matter where you go, there you are...
    • View Profile
Re: Manual Update Instructions ??
« Reply #4 on: July 04, 2012, 06:59:12 PM »
I can confirm that FTP reported successful completion of the repeat upload twice and the issue remains.

David

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4152
  • Karma: +251/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Manual Update Instructions ??
« Reply #5 on: July 04, 2012, 08:22:59 PM »
Any way we can check what you have ? Can you PM temporary FTP access?
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline Nimitz1061

  • Full Member
  • ***
  • Posts: 190
  • Karma: +21/-0
  • No matter where you go, there you are...
    • View Profile
Re: Manual Update Instructions ??
« Reply #6 on: July 05, 2012, 08:25:34 AM »
I don't think that will be necessary at this time.  I may have found the issue.

In 1.0.3, in lib/error.php a change was made in line 96 from:

Code: [Select]
$log = new ALog('system/logs/error.txt');
to

Code: [Select]
   $log = new ALog(DIR_SYSTEM.'logs/error.txt');

lib/error.php is included into init.php at line 52.

DIR_SYSTEM is defined in init.php at line 275 or so.

So, this would seem to be a valid error, that should be expected on at least some PHP installations in the absence of some undocumented configuration settings..

David

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4152
  • Karma: +251/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Manual Update Instructions ??
« Reply #7 on: July 05, 2012, 11:43:23 AM »
What is strange, that DIR_SYSTEM is not new. It has been there in init.php since the beginning.
I wonder why you had it missing.

Glad you resolved it.

We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline Nimitz1061

  • Full Member
  • ***
  • Posts: 190
  • Karma: +21/-0
  • No matter where you go, there you are...
    • View Profile
Re: Manual Update Instructions ??
« Reply #8 on: July 05, 2012, 02:19:36 PM »
It is NOT missing.

A developer added a new usage of DIR_SYSTEM in the lib/error.php file during the 1.0.3 development cycle.

lib/error.php is included into init.php BEFORE DIR_SYSTEM is defined.  Every new install or upgrade should now have this problem.



David

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4152
  • Karma: +251/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Manual Update Instructions ??
« Reply #9 on: July 06, 2012, 01:22:22 PM »
Yes. This is a valid issue. We will update the code.

Thank you.
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

 

Powered by SMFPacks Social Login Mod