symphonists / emailtemplatefilter Goto Github PK
View Code? Open in Web Editor NEWSend advanced HTML emails using Symphony.
Home Page: http://www.getsymphony.com/download/extensions/view/20743/
License: Other
Send advanced HTML emails using Symphony.
Home Page: http://www.getsymphony.com/download/extensions/view/20743/
License: Other
When I submit the form look the message I've got.
<br />
<b>Fatal error</b>: Call to private method FrontendPage::__processDatasources() from context 'Extension_EmailTemplateFilter' in <b>C:\htdocs\globex_mm\extensions\emailtemplatefilter\extension.driver.php</b> on line <b>328</b><br />
I am getting this undefined method error. This method is obviously undefined in the class, and it has never been part of the Symphony's Extension parent class. I went back in history for all the releases of Symphony and all the releases of this extension, and it is not defined anywhere.
I just started using this extension for the first time. It's really great and seems to work just fine except for the fact that I only manage to send blank emails.
Is there anything special I might have forgotten or is anybody else experiencing this issue?
The suggested patch in the README is for 2.0.1. I've diff'd this with the function in 2.0.4 and came up with this:
public function __processDatasources($datasources, &$wrapper, $params = array()){
if(trim($datasources) == '') return;
$datasources = preg_split('/,\s*/i', $datasources, -1, PREG_SPLIT_NO_EMPTY);
$datasources = array_map('trim', $datasources);
if(!is_array($datasources) || empty($datasources)) return;
$this->_env['pool'] = $params;
$pool = $params;
$dependencies = array();
foreach($datasources as $handle){
$this->_Parent->Profiler->seed();
$pool[$handle] =& $this->DatasourceManager->create($handle, NULL, false);
$dependencies[$handle] = $pool[$handle]->getDependencies();
unset($ds);
}
$dsOrder = $this->__findDatasourceOrder($dependencies);
foreach($dsOrder as $handle){
$this->_Parent->Profiler->seed();
$dbstats = $this->_Parent->Database->getStatistics();
$queries = $dbstats['queries'];
$ds = $pool[$handle];
$ds->processParameters(array('env' => $this->_env, 'param' => $this->_param));
if($xml = $ds->grab($this->_env['pool'])):
if(is_object($xml)) $wrapper->appendChild($xml);
else $wrapper->setValue($wrapper->getValue() . self::CRLF . ' ' . trim($xml));
endif;
$dbstats = $this->_Parent->Database->getStatistics();
$queries = $dbstats['queries'] - $queries;
$this->_Parent->Profiler->sample($handle, PROFILE_LAP, 'Datasource', $queries);
unset($ds);
}
}
Essentially the change was:
Is that all that is required?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.