# Missing AJXP\_Plugin Class

**URL:** <https://forum.pydio.com/t/missing-ajxp-plugin-class/1524>\
**Category:** Development\
**Tags:** plugins\
**Created:** [August 28, 2018, 5:08pm UTC](https://forum.pydio.com/t/missing-ajxp-plugin-class/1524 "2018-08-28T17:08:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![distributist](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/distributist/32/503_2.png) [@distributist](https://forum.pydio.com/u/distributist)\
**Post date:** [August 28, 2018, 5:08pm UTC](https://forum.pydio.com/t/missing-ajxp-plugin-class/1524/1 "2018-08-28T17:08:40Z")

</div>

I’ve just performed an update from 6.4.2 to 8.2.1. However, we have a custom plugin, based off an old “hook” plugin, that provides authentication **to** an FTP server (this is not the same as WebFTP).

Unfortunately, the plugin no longer works, as the wrapper it defines is based on a class which seems to have been removed:  
class PureFTPdAuthHook extends AJXP\_Plugin {  
} //END: PureFTPdAuthHook

The plugin defined particular settings in the GUI, and basically just responded to authentication requests from PureFTPd by authenticating them against Pydio’s workspaces. In 6.4.2 it shows up under **Feature Plugins \> Hook**.

I’ve looked through the documentation, but can’t find anything about this change. I’ve also looked for the Hooks listing, which is supposed to be under Developer Resources \> Hooks Definitions in the settings, but can’t find anything.

Any guidance on how to update this plugin to work with Pydio 8 would be greatly appreciated.

Thank you.

---

<div class="post-metadata">

**Author:** ![charles](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/charles/32/3_2.png) [@charles](https://forum.pydio.com/u/charles)\
**Post date:** [August 30, 2018, 3:26pm UTC](https://forum.pydio.com/t/missing-ajxp-plugin-class/1524/2 "2018-08-30T15:26:50Z")

</div>

Hi, The code was indeed refactored to use PHP namespaces, just have a look at any other plugin class, AJXP\_Plugin would be Plugin, with a “use” instruction at the beginning of the file.  
Regarding the hook, which hook were you exactly using?  
Charles

---

<div class="post-metadata">

**Author:** ![distributist](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/distributist/32/503_2.png) [@distributist](https://forum.pydio.com/u/distributist)\
**Post date:** [August 31, 2018, 3:39pm UTC](https://forum.pydio.com/t/missing-ajxp-plugin-class/1524/3 "2018-08-31T15:39:27Z")

</div>

Hi Charles,  
Thank you for the reply. I have no idea which hook I had made use of several years ago, but I’ve begun adapting this to the new system. I am not a PHP developer, but just hack on it badly when I have to, so the namespaces is all new to me.

It was a bit frustrating not to find anything in the documentation that mentioned the refactoring and possible changes to plugins. I did look, but if it was there, I missed it.

Thank you again,  
Hugh
