Hi,
i need help in creating an automatic plugin update code.
i have created a plugin update, and this update adds some language key/value and also alters the database table..
so, i have followed the coding style of the system plugins and have come to this:
1- i have created
/PLUGINNAME/update/BUILD/update.php
/PLUGINNAME/update/BUILD/langs.zip
---> langs.zip/language_en/language.xml
---> langs.zip/language_en/PLUGINNAME.xml
2- i have updated the plugin.xml with the current BUILD number
then, when i go to admin manage plugin folder, i got the notification to update the plugin, but when i click the button, these errors appear
-------------------------------------
OW Debug - Warning
Message: mkdir(): File exists
File: C:\xampp\htdocs\oxwall-1.5.1\ow_system_plugins\base\bol\language_service.php
Line: 753
OW Debug - Warning
Message: rmdir(C:\xampp\htdocs\oxwall-1.5.1\ow_pluginfiles/admin\languages\import\PLUGINNAME): Directory not empty
File: C:\xampp\htdocs\oxwall-1.5.1\ow_utilities\file.php
Line: 181
OW Debug - Warning
Message: Cant remove directory `C:\xampp\htdocs\oxwall-1.5.1\ow_pluginfiles/admin\languages\import\PLUGINNAME`!
File: C:\xampp\htdocs\oxwall-1.5.1\ow_utilities\file.php
Line: 183
...
-------------------------------------
and these errors always redirect the users to 500.html page. can anybody help me with this?