Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when content too big preg_replace #417

Closed
anassrakibi opened this issue Dec 14, 2017 · 1 comment
Closed

when content too big preg_replace #417

anassrakibi opened this issue Dec 14, 2017 · 1 comment

Comments

@anassrakibi
Copy link

I get a white page when the content is too big. After Debugging I found that the problem is:

$content .= preg_replace('/(<%|%>|<\?php|<\?|\?>|<script\s+language\s*=\s*[\"\']?\s*php\s*[\"\']?\s*>)/',"<?php echo '\$1'; ?>\n", $curr_split); in smarty_internal_runtime_updatecache.php.A quick fix for this would be to add {nocache} in the template. But for the other preg_replace in smarty_internal_runtime_codeframe.php couldn't find any quick fix. The $output should be split , preg_replaced and finally merged again

@uwetews
Copy link
Contributor

uwetews commented Mar 23, 2018

The fix is now in the master branch and will later be included in 3.1.32

@uwetews uwetews closed this as completed Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants