1 of 2
1
Stuck again. Local to Server issues.
Posted: 21 November 2008 06:01 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  63
Joined  05-19-2008

Hello,

Just decided it was time to go in and move local copy of EE to my clients server.

Everything took its time as this was my first but a few people and this forum gave me a hand, everything is fine and working in the control panel.

But the site is not working on the url.
“Fatal error: Maximum execution time of 90 seconds exceeded in /home/rogermby/public_html/styl/new-design/system/core/core.template.php on line 960”

And also in the CP when i try to view the site I get the url from the old database added to the current url.

http://styl.eti.me/new-design/index.php/index.php?URL=http://localhost/styltime/index.php

Any ideas? I am tearing my hair out over this.

Regards Ryan.

 Signature 

I design, I blog, and I Twitter

Profile
 
 
Posted: 22 November 2008 06:35 AM   [ Ignore ]   [ # 1 ]  
Grad Student
Rank
Total Posts:  63
Joined  05-19-2008

Had a look around the forums. I have made a support test in the templates and it shows the text.
http://styl.eti.me/new-design/index.php/support/index.html

but when I try to get to my other templates it times out http://styl.eti.me/new-design/index.php/site/index.html

 Signature 

I design, I blog, and I Twitter

Profile
 
 
Posted: 22 November 2008 08:23 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  63
Joined  05-19-2008

New problem on the main page


Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2845 bytes) in /home/rogermby/public_html/styl/new-design/system/core/core.template.php on line 744”

 Signature 

I design, I blog, and I Twitter

Profile
 
 
Posted: 22 November 2008 11:11 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  16153
Joined  05-15-2004

You are running out of memory here. 32MB should be sufficient for most purposes, but it seems not to be in your case here. Try to up that limit.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 22 November 2008 11:16 AM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  63
Joined  05-19-2008

Hi Ingmar,

How would I go about doing this?

 Signature 

I design, I blog, and I Twitter

Profile
 
 
Posted: 22 November 2008 12:11 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  331
Joined  02-02-2007

Hi Ryan,

If your host allows, you can increase PHP memory by editing php.ini file. If your host does not allow editing php.ini file, then you can find another one which allows editing it.

 Signature 

Full list of plugins here

Child Categories
Browser Sniff
Category Id
Entries List

Profile
 
 
Posted: 23 November 2008 01:46 PM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRank
Total Posts:  2550
Joined  05-07-2007

In your .htaccess file, you could put something like:

php_value memory_limit 64M

This could give you a 500 error if your host doesn’t allow you to override the settings.  Regardless, give it a shot and let’s see what it gives you.

-greg

 Signature 
Profile
MSG
 
 
Posted: 23 November 2008 02:00 PM   [ Ignore ]   [ # 7 ]  
Grad Student
Rank
Total Posts:  63
Joined  05-19-2008

yeah it gave me a 500 error, I contacted my clients host and they said I can make my own php.ini file? How would I go about this.

 Signature 

I design, I blog, and I Twitter

Profile
 
 
Posted: 23 November 2008 03:03 PM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRank
Total Posts:  2550
Joined  05-07-2007

Make a file called php.ini.  Do a quick google search on the syntax for setting a memory limit in php.ini.  You can check to see if it takes by going to Admin -> Utilities -> PHP Info, and looking for the memory limit.

-greg

 Signature 
Profile
MSG
 
 
Posted: 24 November 2008 12:24 AM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  331
Joined  02-02-2007

Hi,

Read Wiki article Moving servers - ExpressionEngine site to the new host.

According that article you should type

memory_limit=128M;

or whatever memory amount you need.

 Signature 

Full list of plugins here

Child Categories
Browser Sniff
Category Id
Entries List

Profile
 
 
Posted: 24 November 2008 10:39 AM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12755
Joined  04-29-2002

Ryan, did any of these suggestions help?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 04 December 2008 07:44 AM   [ Ignore ]   [ # 11 ]  
Grad Student
Rank
Total Posts:  63
Joined  05-19-2008

Hi,

Thanks but none of these worked. I created a php.ini file with the code

memory_limit=128M;

and still getting the same error. I started a fresh install on the server and it was all working right until it seemed to be getting there the error came up again.

 Signature 

I design, I blog, and I Twitter

Profile
 
 
Posted: 04 December 2008 07:56 AM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12755
Joined  04-29-2002

Ryan, does the site have an .htaccess file?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 04 December 2008 08:32 AM   [ Ignore ]   [ # 13 ]  
Grad Student
Rank
Total Posts:  63
Joined  05-19-2008

Yes it does.

 Signature 

I design, I blog, and I Twitter

Profile
 
 
Posted: 04 December 2008 08:34 AM   [ Ignore ]   [ # 14 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  16153
Joined  05-15-2004

The error message remains the same? If so, you’re still running out of memory. It’s not certain that your host will let your override this limit, though, so you’d have to talk to them about it.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 04 December 2008 02:18 PM   [ Ignore ]   [ # 15 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  331
Joined  02-02-2007

Hi,

I created a php.ini file with the code

memory_limit=128M;


and still getting the same error.

Exact code should be

<?php
memory_limit = 128M;
?>

Have you included opening and closing <php ?> tags?

Have you tried to type

<?php
memory_limit
= 258M;
?>

or

<?php
memory_limit
= 516M;
?>

in your php.ini file?

 Signature 

Full list of plugins here

Child Categories
Browser Sniff
Category Id
Entries List

Profile
 
 
Posted: 04 December 2008 02:25 PM   [ Ignore ]   [ # 16 ]  
Grad Student
Rank
Total Posts:  63
Joined  05-19-2008
Laisvunas - 04 December 2008 02:18 PM

Hi,

I created a php.ini file with the code

memory_limit=128M;


and still getting the same error.

Exact code should be

<?php
memory_limit = 128M;
?>

Have you included opening and closing <php ?> tags?

Have you tried to type

<?php
memory_limit
= 258M;
?>

or

<?php
memory_limit
= 516M;
?>

in your php.ini file?

Yes I have and just upped it to 516m and still getting the error.

Fatal error: Maximum execution time of 90 seconds exceeded in /home/rogermby/public_html/styl/admin/core/core.template.php on line 966

 Signature 

I design, I blog, and I Twitter

Profile
 
 
Posted: 04 December 2008 02:44 PM   [ Ignore ]   [ # 17 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  331
Joined  02-02-2007

Hi,

You get this error message not because of the lack of PHP memory, but because of the in-built EE feature - limiting execution of scripts to 90 seconds.

Here is the line from 1.6.5 version changelog:

Modified the script time limit override from infinite to five minutes for the CP, and 90 seconds for front-end requests, to be a good neighbor if something goes awry.

If you need to allow for the scripts to run longer than 90 seconds, you should hack some line in some of EE core files.

 Signature 

Full list of plugins here

Child Categories
Browser Sniff
Category Id
Entries List

Profile
 
 
Posted: 04 December 2008 02:51 PM   [ Ignore ]   [ # 18 ]  
Grad Student
Rank
Total Posts:  63
Joined  05-19-2008

Laisvunas,

Sorry but what will need to be done regarding this? I have never come across this before.

 Signature 

I design, I blog, and I Twitter

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66389 Total Logged-in Users: 40
Total Topics: 84714 Total Anonymous Users: 20
Total Replies: 454692 Total Guests: 194
Total Posts: 539406    
Members ( View Memberlist )