define or die

Permalink
Hi,

I'm uploading a new addon to the marketplace, but I still get the error about some files missing a 'define or die' statement.
However, all the mentioned files are beginning with:

<?php
defined('C5_EXECUTE') or die(t('Access denied'));
.....


What is missing? Is it a type that I don't see? (I might be in need of some fresh coffee).
What am I doing wrong?

4Concrete5
 
mnakalay replied on at Permalink Reply
mnakalay
You could try to run the tests again or upload the package again, delete the one already uploaded, and see what happens. maybe change the version first to 0.9.8
Mnkras replied on at Permalink Reply
Mnkras
Remove the t() from around access denied, t() isn't available there.
mnakalay replied on at Permalink Reply
mnakalay
@Mnkras you know that was my first thought, t() is throwing the error but then I noticed he was also using t() in all his defined or die but the error was only thrown for views, not for controllers or anywhere else.

Isn't that strange?