[12-Oct-2019 10:45:17 UTC] PHP Notice: Only variables should be assigned by reference in OJS/plugins/importexport/copernicus/CopernicusExportPlugin.inc.php on line 242
[12-Oct-2019 10:45:17 UTC] PHP Notice: Undefined property: Smarty_Internal_Undefined::$objMap in OJS//lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 132
[12-Oct-2019 10:45:17 UTC] PHP Fatal error: Uncaught → Smarty: undefined extension class ‘Smarty_Internal_Method_Assign_By_Ref’ ←
thrown in OJS/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php on line 62
@salman20054, to help you I need an addition information. What version of OJS do you use? Also I need information about version of smarty library for php. Could you provide phpinfo() for your server. Thank you.
Dear @salman20054,
There are a lot of difficulties to identify the problem. It looks like you have specific combination of OJS and PHP versions. To find answer I need to know the version of smarty. It could be obtained from phpinfo() or from control panel of the hosting server.
OJS 3.1.1 and prior use Smarty v2 and OJS 3.1.2 uses Smarty v3. There are some convention changes between the two, e.g. the assign_by_ref function becomes assignByRef. These changes would need to be made in the plugin code before the plugin will be compatible with OJS 3.1.2 (and newer).
Regards,
Alec Smecher
Public Knowledge Project Team
i had installed the plugin which is mentioned in “plugin gallery” the github link which was mentioned by @a-vodka is different. i had gone through the difference between two file of CopernicusExportPlugin.inc.php i had seen some additions of “assign_by-ref”.
This doesn’t work. If I install from your link, I get the message that I need to update it. If I update from plugin gallery I receive the message “Plugin already installed, and is newer than the version available in the gallery.”.