Author Topic: cannot get the update script executed  (Read 1297 times)

yonghan

  • Guest
cannot get the update script executed
« on: December 29, 2016, 04:40:39 AM »
Hi admins,

I want to execute an upgrade file in an extension, and when i try to upgrade the extension i get these warnings and the upgrade.php is not executed:

Code: [Select]
warning:  AbanteCart core v.1.2.8 include(C:\xampp\htdocs\testing\ab128\extensions\xxxx): failed to open stream: Permission denied in <b>C:\xampp\htdocs\testing\ab128\core\lib\package_manager.php</b> on line <b>656</b>
warning:  AbanteCart core v.1.2.8 include(): Failed opening 'C:/xampp/htdocs/testing/ab128/extensions/xxxx/' for inclusion (include_path='.;\xampp\php\PEAR') in <b>C:\xampp\htdocs\testing\ab128\core\lib\package_manager.php</b> on line <b>656</b>

I do have the file included in the zipped extension. Do i need to add additional code to get the upgrade file executed? Thanks.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 3156
  • Karma: +149/-0
    • View Profile
Re: cannot get the update script executed
« Reply #1 on: December 29, 2016, 05:41:58 AM »
Hi.
in your error "Permission denied" check file permissions
http://docs.abantecart.com/pages/upgrade/manual.html
“Chuck Norris is so amazing.”
― Mother Teresa

yonghan

  • Guest
Re: cannot get the update script executed
« Reply #2 on: December 29, 2016, 05:48:11 AM »
Hi Basara,

I have the file permissions set to 0777.

Offline eCommerce Core

  • Administrator
  • Hero Member
  • *****
  • Posts: 1546
  • Karma: +85/-1
    • View Profile
Re: cannot get the update script executed
« Reply #3 on: December 29, 2016, 09:27:22 AM »
Check directory permission as well.
“If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.”
― Warren Buffett

yonghan

  • Guest
Re: cannot get the update script executed
« Reply #4 on: December 29, 2016, 10:49:50 AM »
I will try to check the directory permissions too. Have you tried to update an extension that has the update php file before, eCommerce Core?

 

Cheap Prom dresses 2018