Go to your php.ini file and increase this settings, you can double default values to
i.e:
max_execution_time = 60 ; Maximum execution time of each script, in seconds memory_limit = 32M ; Maximum amount of memory a script may consume (8MB)
Restart your web server if you needed (php module)
I have some problem.
My php.ini
max_execution_time = 300
max_input_time = 180 memory_limit = 32M
Win2000/Apache2.0.49/PHP4.3.7
On screeen "Finished"
Note: The first time the user or admin site is accessed it will take some time (<b>30 to 60 seconds</b>). This is because eZ publish prepares the site for your machine. ???
The max_execution_time setting in php.ini doesn't matter for template compiling (which is what's happening when you first click those links) because it's overriden anyway unless the timeout value is set to 0. There's a fixed 30 second timeout for each template, so each template has 30 seconds to compile.
The fact that 30 seconds aren't enough indicates another problem that causes template compiling to be extremely slow. Are you using a (very) low end machine?
As an alternative idea, you could use the commandline script to compile templates. It's bin/php/eztc.php, and use the --help option to see what's possible.
I've got the same problem with 3.4.1, even tough I managed to install 3.4 beta (2 I believe) on that machine without any problems. Did the compiler get that heavy recently?
I've increased the max exectiont time up to 3000 seconds and set the memory limit to 64 MB.
I tried 3.4.1 on several machines (PIII 933MHz 512MB Windows XP; PIII 500 MHz 512MB SuSE Linux 9.0; PIV 2.8GHz, 1GB RAM) and only the PIV went okay. I hope PIV isn't the new minimum requirement for ezPublish?
I had the same problem. I modified the htaccess ( http://ez.no/community/forum/developer/if_you_have_problems_as_slow_or_30_sec_solution ) and it worked :)
I had the same problem running 3.4.1 on a PII 200Mhz, but it works now. As mentioned before, the problem is a hardcoded time limit. See also bugreport http://www.ez.no/community/bug_reports/set_time_limit_hardcoded_leading_to_timeout Because I have a slow server the max_execution_time in php.ini is 120, but this didn't solve the problem.
To solve the problem I have modified the file lib/eztemplate/classes/eztemplatecompiler.php. In that file you can find two lines with
@set_time_limit( 30 )
Changing 30 to a higher hardcoded value will solve the problem.
Another option is to change both lines to
@set_time_limit( ini_get( 'max_execution_time' )
to read the max_execution_time value from the php.ini file, so there are no hardcoded values anymore. I have choosen the last option with success.
You must be logged in to post messages in this topic!