Hi, all.
I am writing a plugin for extending std doi plugin, and I have a problem that I can’t solve for several hours.
I always get 404 error message when I try to use a custom handler.
I use LinkAction.tpl Screenshot by Lightshot => register callBack handler Screenshot by Lightshot => create handler Screenshot by Lightshot and got 404 error Screenshot by Lightshot
Where and what I should register to force to work this feature.
Hi! Thanks a lot for the link. But the plugin registered normal. In the version table, I have the right row. And main trouble is 404 error when I try to call a handler. Handler registered to, but its inner methods never called.
I would suggest adding some error_log calls to see how far your code is getting. For example, is the hook callback being reached? If so, is the handler class being initialized?
Regards,
Alec Smecher
Public Knowledge Project Team
OK, that does confirm that the plugin is registered correctly. I note that you’re trying to add a new function to an already-existing handler, which is something I haven’t tried; I would suggest checking to see if you can address the handler by its own URL, rather than trying to extend the existing FutureIssueGridHander (see the URL in your first set of screenshots).
Regards,
Alec Smecher
Public Knowledge Project Team
I would suggest looking at e.g. the static pages plugin as an example. The codebase is here, for the 3.1.2 branch (make sure you’re following the branch that corresponds with your version of OJS): GitHub - pkp/staticPages at stable-3_1_2
Regards,
Alec Smecher
Public Knowledge Project Team