Source: https://github.com/oxpus/Download-32-Ex ... -498327691.oxpus wrote:Mon Jun 03, 2019 6:23 pmColons are missing by twig style convertor extension
{L_CONTACT}{L_COLON}
{L_CONTACT}:
Which says?????
Code: Select all
Fatal error: Uncaught TypeError: Argument 1 passed to lexer_0f47be9::tokenize() must be an instance of Twig\Source, string given, called in /srv/disk1/2868406/www/xxx.atspace.cc/ext/kasimi/twigconverter/controller/main.php on line 267 and defined in /srv/disk1/2868406/www/xxx.atspace.cc/cache/production/container_dbdbe80dc7030ae9bd39ee30cca82130.php:4857 Stack trace: #0 /srv/disk1/2868406/www/xxx.atspace.cc/ext/kasimi/twigconverter/controller/main.php(267): lexer_0f47be9->tokenize('<!-- INCLUDECSS...', 'ext/kirk/stylec...') #1 /srv/disk1/2868406/www/xxx.atspace.cc/ext/kasimi/twigconverter/controller/main.php(245): kasimi\twigconverter\controller\main->convert_files(Array) #2 /srv/disk1/2868406/www/xxx.atspace.cc/ext/kasimi/twigconverter/controller/main.php(116): kasimi\twigconverter\controller\main->run('kirk/stylechang...', Array) #3 /srv/disk1/2868406/www/xxx.atspace.cc/ext/kasimi/twigconverter/acp/main_module.php(28): kasimi\twigconverter\controlle in /srv/disk1/2868406/www/xxx.atspace.cc/cache/production/container_dbdbe80dc7030ae9bd39ee30cca82130.php on line 4857
Code: Select all
Fatal error: Uncaught TypeError: Argument 1 passed to lexer_0f47be9::tokenize() must be an instance of Twig\Source, string given, called in C:\xampp\htdocs\quickinstall-1.3.6\boards\3.3.0b2_style_tb\ext\kasimi\twigconverter\controller\main.php on line 257 and defined in C:\xampp\htdocs\quickinstall-1.3.6\boards\3.3.0b2_style_tb\cache\production\container_dbdbe80dc7030ae9bd39ee30cca82130.php:4430 Stack trace: #0 C:\xampp\htdocs\quickinstall-1.3.6\boards\3.3.0b2_style_tb\ext\kasimi\twigconverter\controller\main.php(257): lexer_0f47be9->tokenize('\n<!-- BEGIN for...', 'styles/Graphit/...') #1 C:\xampp\htdocs\quickinstall-1.3.6\boards\3.3.0b2_style_tb\ext\kasimi\twigconverter\controller\main.php(235): kasimi\twigconverter\controller\main->convert_files(Array) #2 C:\xampp\htdocs\quickinstall-1.3.6\boards\3.3.0b2_style_tb\ext\kasimi\twigconverter\controller\main.php(120): kasimi\twigconverter\controller\main->run('Graphit', Array) #3 C:\xampp\htdocs\quickinstall-1.3.6\boards\3.3.0b2_style_tb\ext\kasimi\twigconverter\acp\main_mo in C:\xampp\htdocs\quickinstall-1.3.6\boards\3.3.0b2_style_tb\cache\production\container_dbdbe80dc7030ae9bd39ee30cca82130.php on line 4430
Code: Select all
$source = $this->lexer->tokenize(new \Twig_Source($contents, $filename))->getSourceContext();
$converted_syntax[$filename] = $source->getCode();
Worked for me to tyrxu wrote: Thu Nov 28, 2019 3:52 pm The following worked for me:
replacing 2 rows here https://github.com/kasimi/phpbb-ext-twi ... #L267-L268 withCode: Select all
$source = $this->lexer->tokenize(new \Twig_Source($contents, $filename))->getSourceContext(); $converted_syntax[$filename] = $source->getCode();
It seems to work well, Спасибоrxu wrote: Thu Nov 28, 2019 3:52 pm The following worked for me:
replacing 2 rows here https://github.com/kasimi/phpbb-ext-twi ... #L267-L268 withCode: Select all
$source = $this->lexer->tokenize(new \Twig_Source($contents, $filename))->getSourceContext(); $converted_syntax[$filename] = $source->getCode();
Failed to create zip file.