AbanteCart Community

AbanteCart Development => Development Help Needed => Topic started by: yonghan on December 29, 2016, 04:40:39 AM

Title: cannot get the update script executed
Post by: yonghan 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.
Title: Re: cannot get the update script executed
Post by: Basara 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
Title: Re: cannot get the update script executed
Post by: yonghan on December 29, 2016, 05:48:11 AM
Hi Basara,

I have the file permissions set to 0777.
Title: Re: cannot get the update script executed
Post by: eCommerce Core on December 29, 2016, 09:27:22 AM
Check directory permission as well.
Title: Re: cannot get the update script executed
Post by: yonghan 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?