wioncy Posted December 1, 2016 Report Share Posted December 1, 2016 I have a plugin which extends deliveryAdRender and hooks postAdRender for custom macros generation. I need to get a campaign name for this macros. When I try to include lib/OA/Dal.php and call OA_Dal::factoryDO('campaigns'); I see error Fatal error: Cannot redeclare _pear_call_destructors() in /usr/share/pear/PEAR.php on line 771 PHP version is 5.5.38 Maybe I do something wrong with configuration and you have some config option to pass DB object as dependency for my hook? <?xml version="1.0" encoding="ISO-8859-1" ?> <?xml-stylesheet type="text/xsl" href=""?> <plugin> <name>tmCustomMacro</name> <creationDate>2016-12-01</creationDate> <author>123.com</author> <authorEmail>[email protected]</authorEmail> <authorUrl>http://www.example.com</authorUrl> <license><![CDATA[ <a href="http://creativecommons.org/licenses/by-nd/3.0/">Creative Commons Attribution-No Derivative Works 3.0 Unported</a> ]]></license> <description>tmCustomMacro</description> <version>1.0.0</version> <oxversion>2.8.0</oxversion> <extends>deliveryAdRender</extends> <install> <files> <file path="{MODULEPATH}deliveryAdRender/tmCustomMacro/">tmCustomMacro.delivery.php</file> </files> <components> <component> <name>tmCustomMacro</name> <hook>postAdRender</hook> </component> </components> </install> </plugin> Quote Link to comment Share on other sites More sharing options...
andrewatfornax Posted December 15, 2016 Report Share Posted December 15, 2016 Is it the include, or the call, that generates the errors? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.