Mike Mitterer
Mike Mitterer

Reputation: 7180

TYPO3 main-function of extension not called

On my local testserver with T3 4.5.6 the extension works without any problems but on the productionserver the main function will not be called anymore after I upgraded from 4.2 to 4.5.6.

Any hints?

Upvotes: 1

Views: 848

Answers (4)

Siva
Siva

Reputation: 509

Please check your php error log also . It might help you to figure out the problem .Also try to add this plugin.tx_yourextension_pi1 = USER_INT then check

Upvotes: 0

Mike Mitterer
Mike Mitterer

Reputation: 7180

css_styled_content was installed in the Extension-Directory and came also with the 4.5 update. Deleting the installation in typo3con/ext/ solved the weird problem.

Upvotes: 2

Mateng
Mateng

Reputation: 3734

You are probably referring to the function main() in your extension class. Can you try to print some debug output to the frontend by adding t3lib_div::debug() inside the function?:

class tx_myextesnion_pi1 extends tslib_pibase {

    function main($content,$conf)   {
        t3lib_div::debug($conf);
        t3lib_div::debug("Lorem Ipsum...");
        [ your standard php code continues here... ]

    }

Are you sure no fatal php or mysql errors occur? (try $TYPO3_CONF_VARS['SYS']['displayErrors'] = '1' in localconf.php).

Did you also include your extensions typoscript configuration?

It's hard to guess, because main() is the standard function that is always called for a frontend plugin within an extension. So from here, we can only make educated guesses. You should try to investigate how far the processing of your extension actually goes, i.e. where it exactly stops. Then share it here.

Upvotes: 0

Bear
Bear

Reputation: 432

Did you make sure the extension is installed in the Extension Manager on you production server?

You can also check this by editing the file typo3conf/localconf.php (on the prod. server) and see if your extension is listed there under $TYPO3_CONF_VARS['EXT']['extList'] and/or $TYPO3_CONF_VARS['EXT']['extList_FE']. (Always check the latest entry, there could be more.)

Upvotes: 1

Related Questions