[TYPO3-dev] Powermail hook: Fatal error

Gutfeldt Matthias mgutfeldt at yahoo.com
Wed Oct 27 11:19:47 CEST 2010


Howdy

I've read the docs for typo3 hooks and powermail hooks, but I just don't get it 
to work at all. I have a Powermail form and want do add a select element filled 
with option values from a db table. But all I get is a fatal error:

Fatal error: Call to a member function PM_FieldWrapMarkerHookInner() on a 
non-object in /path/to/typo3conf/ext/powermail/pi1/class.tx_powermail_html.php 
on line 1212

What am I doing wrong? Here's my setup

Typo3 4.4.4, powermail 1.5.5

1) I've added this to my typo3conf/localconf.php:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['powermail']['PM_FieldWrapMarkerArrayHookInner'][]
 = 'fileadmin/scripts/class.tx_frphotels.php:frp_hotels';

2) I've added this to my Template Setup:
includeLibs.stellen_hotels = fileadmin/scripts/class.tx_frphotels.php:frp_hotels

3) class.tx_frphotels.php looks like this at the moment (I'm trying to get this 
to run with a minimal test case)
<?php
class frp_hotels {
    public function PM_FieldWrapMarkerHookInner($uid, $xml, $type, $title, 
&$markerArray, $piVarsFromSession, $form) {
        print_r($markerArray);
        return $markerArray;
    } // function
} // class
?>


So what am I missing, what do I need to do to avoid this fatal error? Thanks for 
any pointers.


Matthias



      



More information about the TYPO3-dev mailing list