I think there is a bug in plugin installation when using OSClass in Windows (I am using XAMPP, i.e. Apache).
Before being able to install a plugin, it must be registered, this is done by:
osc_registerPlugin(__FILE__, 'realstate_call_after_install');
from the index.php file in the plugin directory.
However, PHP's __FILE__ constant is the full path and filename of the file. Then when we actually want to install the plugin, admin/plugin.php does it by:
case 'install':
$pn = $_GET['plugin'];
$pnfix = str_replace("/",DIRECTORY_SEPARATOR,ABS_PATH.'oc-content/plugins/'.$pn); // This fixes the run hook to work on Windows.
osc_activatePlugin($pn);
//Re-load the plugins
osc_loadActivePlugins();
//run this after installing the plugin
osc_runHooks('install_'.$pnfix); // We are now running the fixed plugin name.
osc_addFlashMessage(__('Plugin installed.'));
osc_redirectTo('plugins.php');
break;
As you can see, the above code is already "fixed", but what happened was that $_GET['plugin'] will be 'PLUGIN_DIR/index.php', so when trying to run its 'install_' hook, it would never find it, so the plugin was registered and marked as installed, but never actually "installed".
The bug actually consists of two issues:
1. $_GET['plugin'] is not the full path, or the registeration of plugins should change.
2. The directory separator in Windows is "\", so by using PLUGIN_DIR/index.php, even if the full path was sent, in windows it would never find it.
Sorry if this is the wrong place or way to post this. I hope I was able to help some.
Note: I am using OSClass 1.2 Delta and the plugin in used was "Real Estate Attributes".
Regards,
e2.