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

version 3.1.25 causes timeout #56

Closed
xavierpriour opened this issue Jun 17, 2015 · 3 comments
Closed

version 3.1.25 causes timeout #56

xavierpriour opened this issue Jun 17, 2015 · 3 comments

Comments

@xavierpriour
Copy link

Hi,
My code works in 3.1.24, but gets the following error in 3.1.25:

[Wed Jun 17 10:45:31 2015] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in
 /Users/Xavier/xProjects/time-track/.dist/local/20150617T084453Z/vendor/
smarty/smarty/libs/sysplugins/smarty_internal_resource_file.php on line 131
[Wed Jun 17 10:45:31 2015] 127.0.0.1:58693 [500]: /php/login.php - Maximum execution time of 30 seconds exceeded in
/Users/Xavier/xProjects/time-track/.dist/local/20150617T084453Z/vendor/
smarty/smarty/libs/sysplugins/smarty_internal_resource_file.php on line 131

My code is:

  • in initialize.php
$smarty = new Smarty();
$smarty->use_sub_dirs = false;
$smarty->setTemplateDir("$lib/smarty/templates");
$smarty->setCompileDir("$lib/smarty/templates_c");
$smarty->addPluginsDir("$lib/smarty/plugins");
  • in login.php, I require_once initialize.php then
// lots of $smarty->assign
$smarty->display('login.tpl');

I have replaced login.tpl with a very basic html text (no php, no tags), and I still get the timeout.
Any idea what could be the issue?

Also, the smarty.net site seems down

@uwetews
Copy link
Contributor

uwetews commented Jun 17, 2015

How does $lib look like? Does it contain "//." or "."?

@xavierpriour
Copy link
Author

definition is $lib = realpath(dirname(__FILE__) . '/..');

But var_dump($lib) prints out "/home/xavier/xProjects/time-track/.dist/local/20150617T210630Z/lib"

The calling page login.php is located in "/home/xavier/xProjects/time-track/.dist/local/20150617T210630Z/www/php"

uwetews added a commit that referenced this issue Jun 18, 2015
@uwetews
Copy link
Contributor

uwetews commented Jun 18, 2015

The fix is now in release 3.1.27

@uwetews uwetews closed this as completed Jun 18, 2015
think-mcunanan pushed a commit to think-mcunanan/smarty that referenced this issue Mar 22, 2023
…e-php5-to-php7

#5313: [レスポンス改善] サーバーサイドをPHP5→PHP7にアップグレードする
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