Undefined method getFilePath in OJS 3.3

Describe the issue or problem
Using the EmbedGalley in OJS 3.3.0.13 raises a fatal error.

PHP Fatal error: Uncaught Error: Call to undefined method SubmissionFile::getFile() in /srv/www/htdocs/test/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php:167\nStack trace:\n#0 /srv/www/htdocs/test/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php(147): EmbedGalleyPlugin->_parseXml()\n#1 /srv/www/htdocs/test/lib/pkp/classes/plugins/HookRegistry.inc.php(107): EmbedGalleyPlugin->embedHtml()\n#2 /srv/www/htdocs/test/lib/pkp/classes/template/PKPTemplateManager.inc.php(1518): HookRegistry::call()\n#3 /srv/www/htdocs/test/cache/t_compile/7eace633da4006bf045fb0bd05e6ec4dfe5da1df^1c372c95cd85572e0fbc9a53d0323a0b229cfc78_0.app.frontendpagesarticle.tpl.php(43): PKPTemplateManager->smartyCallHook()\n#4 /srv/www/htdocs/test/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6376205bf35f04_17534846()\n#5 /srv/www/htdocs/test/lib/pkp/lib/vendor/smarty/smarty/libs/sys in /srv/www/htdocs/test/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php on line 167

This points to this position: embedGalley/EmbedGalleyPlugin.inc.php at e578343ceff4b9e0f6d6a84ca99dbd398faa4708 · ajnyga/embedGalley · GitHub
(yeah! I know, the line number is not the same, but I use a slightly modified plugin version).

@asmecher : Could you tell me which method to call to the plugin running again?

What application are you using?
OJS 3.3.0.13

Hi @GrazingScientist

The plugin isn’t maintained any more, I am afraid, and the version that is available is not compatible with OJS 3.3.

What you probably want to do is update the _parseHtmlContents method with how this now works in 3.3 using the Services API. For instance, the regular HTML Galley plugin:

Best
Jason