Jump to content

Compiling tpl files - error


gray

Recommended Posts

Editing and saving a tpl file and with Force Compile set.

 

In refreshing the shop it only displays only part of the shop. It seems to time out, and thus  it does not do a complete compile.

 

Any ideas where I can extend the time period for a compile ?

 

PS 1.4.8.2

Edited by gray (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

Sorry for the delay.

 

In running the 'force compile' with error reporting on.

 

I get the following php error

 

max execution time of 60 secs.......etc..... smarty/internals/core.write_files.php

 

However there is no time limits setup within that php code.

Link to comment
Share on other sites

it looks like you exceeded limitations related to your hosting account.

if you've got possibilities - try to increase script max execution time in php.ini

 

  Quote

 

 

Using the max_execution_time directive

By default, the maximum execution time for PHP scripts is set to 30 seconds. If a script runs for longer than 30 seconds, PHP stops the script and reports an error. You can control the amount of time PHP allows scripts to run by changing the max_execution_time directive in your php.ini file.

To change the maximum execution time, use a text editor to modify the max_execution_timedirective in your php.ini file. For example, to set the maximum execution time to 10 seconds, use the following setting:

max_execution_time = 10
Link to comment
Share on other sites

I have rechecked php.ini it is definitely

 

max_execution_time = 160

 

I have switched off and on computer to ensure php.ini is being run

 

Forcing a compile I still get the following fatal error, even when nothing has changed.

 

Fatal error: Maximum execution time of 60 seconds exceeded in C:\wamp\www\prestashop\tools\smarty_v2\internals\core.write_file.php on line 27
 

Link to comment
Share on other sites

  On 12/10/2014 at 9:03 PM, gray said:

Sorry for the delay.

 

In running the 'force compile' with error reporting on.

 

I get the following php error

 

max execution time of 60 secs.......etc..... smarty/internals/core.write_files.php

 

However there is no time limits setup within that php code.

 

 

where and what is your hosting package?

Link to comment
Share on other sites

phpinfo does not show ini_set by prestashop, grasshopper

 

you can load this free module and display you php info, including path to php.ini and paths that server will look for 'other' phpini..

 

http://www.prestashop.com/forums/topic/278164-free-module-display-php-environment-phpinfo-back-office/

 

and answer all questions in the post....don't be selective....happy day, el

Link to comment
Share on other sites

Hi - This is really weird, as in using the module in previous message, it shows that the max execution time is set to 60 secs (local and master values). But my php.ini definitely is set to 160secs.

 

Also paths from the above module are

 

Configuration File (php.ini) Path - C:\Windows
Loaded Configuration File - C:\wamp\bin\apache\Apache2.2.17\bin\php.ini
Scan this dir for additional .ini files - (none)
Additional .ini files parsed - (none)

 

Having checked, there is no other php.ini anywhere on my computer, only in the php directory. Where its got the path to the apache directories i just do not know.

 

It must be reading some default settings from somewhere else ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...