Ok once again I'm having an issue with a plugin controller. It was working once upon a time but stopped sometime in the past year.
I have stripped the plugin down to bare, so there is no reason it shouldn't be working.
File Structure:
craft/plugins/
--webmentionreceiver/
----controllers/
------WebMentionReceiver_EndpointController.php
----WebMentionReceiverPlugin.php
craft/plugins/webmentionreceiver/controllers/WebMentionReceiver_EndpointController.php:
<?php
namespace Craft;
class WebMentionReceiver_EndpointController extends BaseController {
protected $allowAnonymous = array("actionReceive");
public function actionReceive() {
$this->redirect('/');
}
}
?>
So the plugin name is WebMentionReceiver
, the controller is Endpoint
and the action is Receive
. So index.php?p=actions/webmentionreceiver/endpoint/receive
should be the URL. But it 404s.
Any ideas? It is driving me mad!