Hello, we are receiving this error when we try to export Crossref data
Fatal error: Using $this when not in object context in /var/www/vhosts/wmpllc.org/httpdocs/ojs-2.4.2/plugins/importexport/crossref/CrossRefExportPlugin.inc.php on line 220
There was a bug fix for earlier versions of php, but we are running 5.3.3 which seemed to not have the issue.
We have never run this before. Always did manual crossref uploads external to OJS.
Hello,
Php 5.3 is obsolete and quite unsafe. please upgrade to php 5.6.X.
Yes, remove red and add green lines. But, that is for removing php 5.3 code. I am not sure that this will solve your issue.
Hmmm… That error comes if a non-static method is called statically from an incompatible context, which I do not see here… Hmmm… Strange… Did the patch/fix help? – Maybe there is a conflict with the use of $this in such an anonymous function with your PHP version…
Have you maybe made any other changes in your code?