kartik-v / mpdf

Fork of the mPDF latest DEV library (unofficial) with composer and packagist support.
GNU General Public License v2.0
40 stars 55 forks source link

extract message i18n fails #3

Open fabiodirosa opened 9 years ago

fabiodirosa commented 9 years ago

Extracting messages from ←[0m←[36mC:\xampp\htdocs\cis.wkt\vendor\kartik-v\mpdf\m pdf.php←[0m... PHP Fatal Error 'yii\base\ErrorException' with message 'Allowed memory size of 1 34217728 bytes exhausted (tried to allocate 36 bytes)'

in C:\xampp\htdocs\cis.wkt\vendor\yiisoft\yii2\console\controllers\MessageContro ller.php:287

Stack trace:

0 [internal function]: yii\base\ErrorHandler->handleFatalError()

1 {main}

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26236573-extract-message-i18n-fails?utm_campaign=plugin&utm_content=tracker%2F7827090&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F7827090&utm_medium=issues&utm_source=github).
fabiodirosa commented 8 years ago

Any news? My i18n is blocked

lukascernydis commented 8 years ago

Hi, you should exclude vendor from messages exctraction.

Run the following command to generate config file: ./yii message/config

Then open the config file and append vendor dir to the except section 'except' => [ '/messages', '/tests', '/vendor' ],

If you insist on search trough all vendor files, you should increase your PHP memory limit - locate file: C:\xampp\php\php.ini

find: memory_limit

and try to increase it to 256M or 512M. Then restart apache via XAMPP control panel.