Page 1 of 2

Fatal error - /tmp/templates_c/ ... tpl_head

Posted: Thu May 14, 2009 12:26 am
by WebGirl
Hi,

My installation is as follows:

CMS Version
1.5.3

Current PHP Version (phpversion):
5.2.1

Config Information
php_memory_limit:

process_whole_template:
false  {elseif isset($content_obj)}GetURL()}" />{/if}[/quote]

Re Error #2 - Premature end of script headers

This error

Re Error #3 & #4

The only errors I can find are now these two:
(1) Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace

(2) mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary
Can anyone shed some light on these errors, and how I can fix them?  I have access to php.ini etc if needed.

Many thanks in advance!

Re: Fatal error - /tmp/templates_c/ ... tpl_head

Posted: Thu May 14, 2009 12:45 am
by WebGirl
Did i lose the original message somehow?

Re: Fatal error - /tmp/templates_c/ ... tpl_head

Posted: Thu May 14, 2009 12:47 am
by WebGirl
don't know what I did, but I can't see my original msg in the forum  ???
WebGirl wrote: Hi,

My installation is as follows:

CMS Version
1.5.3

Current PHP Version (phpversion):
5.2.1

Config Information
php_memory_limit:

process_whole_template:
false  {elseif isset($content_obj)}GetURL()}" />{/if}
Re Error #2 - Premature end of script headers

This error seems to have also stopped.

Re Error #3 & #4

The only errors I can find are now these two:
(1) Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace

(2) mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary
Can anyone shed some light on these errors, and how I can fix them?  I have access to php.ini etc if needed.

Many thanks in advance!
[/quote]

Re: Fatal error - /tmp/templates_c/ ... tpl_head

Posted: Thu May 14, 2009 1:02 am
by viebig
upgrade to 1.5.4, should solve the issue

Re: Fatal error - /tmp/templates_c/ ... tpl_head

Posted: Thu May 14, 2009 1:05 am
by WebGirl
Viebig, if that fixes all this, I'll feel like kissing you  ;)

Will keep you posted!

An ever-hopeful Webgirl

Re: Fatal error - /tmp/templates_c/ ... tpl_head

Posted: Thu May 14, 2009 1:11 am
by viebig
I hope that it works! If you can't deliver the kiss in person.. just applaud me!

If it not work, I'll run to your kiss anyway, CMSMS needs more girls!

Post here the results, then if anything more is wrong I will try to help you!

Regards,

G

Re: Fatal error - /tmp/templates_c/ ... tpl_head

Posted: Thu May 14, 2009 1:19 am
by WebGirl
thanks Viebig (G)

I've always wanted to go to Brazil :)  I try to get to Paris each year, so maybe we could both meet there - a CMSMS Meetup! haha that would be fun!

I need a break, so will get back to this later today and will have all my fingers and toesies crossed for good luck!

Thanks so much for your offer to help, it is greatly appreciated.

:)

Re: Fatal error - /tmp/templates_c/ ... tpl_head

Posted: Thu May 14, 2009 10:59 am
by WebGirl
Hi - did the upgrade, and woohoo! the Fatal Errors are gone!

This is what I now see lots of in the Error Log:
[Thu May 14 10:28:08 2009] [error] [client 81.57.251.158] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary., referer: http://www.google.co.uk/search?source=i ... meta=lr%3D
[Thu May 14 10:28:08 2009] [error] [client 81.57.251.158] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://www.google.co.uk/search?source=i ... meta=lr%3D
Is this something I can fix easily?

Thanks in advance! :)

Re: Fatal error - /tmp/templates_c/ ... tpl_head

Posted: Thu May 14, 2009 1:43 pm
by Maarten
Can you paste your configuration file here. The part beneath

#------------
#URL Settings
#------------

I think there is an error there. And please post the contents of you htaccess file

Re: Fatal error - /tmp/templates_c/ ... tpl_head

Posted: Thu May 14, 2009 5:17 pm
by viebig
I need your htaccess

Re: Fatal error - /tmp/templates_c/ ... tpl_head

Posted: Thu May 14, 2009 10:22 pm
by WebGirl
Hi there,

Here is the code requested - I need Pretty URLs and canonical 'www' for this site (the last 4 lines in the .htaccess which I got from the forum last week).

I tried the .htaccess in the /docs/ folder but kept getting 500 error, so I am using one which worked in previous installations:

===== .htaccess =====

#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off

# Make sure you have Options FollowSymLinks
# and Allow on
RewriteEngine On

#Rewrites page.shtml as index.php?page
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]

RewriteCond %{HTTP_HOST} ^websitename.com$ [NC]
RewriteRule ^(.*)$ http://www.websitename.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^.*websitename.com [NC]
RewriteRule (.*) http://www.websitename.com/$1 [R=301,L]

===========

======= and the config.php info for Pretty URLs =======

#------------
#URL Settings
#------------

#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = true;

#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';

#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism?  This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;

#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy?  (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = false;

#If using none of the above options, what should we be using for the query string
#variable?  (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';

========================

Thanks Viebig and Maarten!!  If I can get this sorted I'll be able to do the same for all my client sites in future.

Re: Fatal error - /tmp/templates_c/ ... tpl_head

Posted: Sun May 17, 2009 3:46 am
by viebig

Code: Select all

RewriteCond %{HTTP_HOST} ^websitename.com$ [NC]
RewriteRule ^(.*)$ http://www.websitename.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^.*websitename.com [NC]
RewriteRule (.*) http://www.websitename.com/$1 [R=301,L]
what are you trying to do here? you can achieve this by just editing config.php

or just

Code: Select all

RewriteCond %{HTTP_HOST} ^domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

Re: Fatal error - /tmp/templates_c/ ... tpl_head

Posted: Sun May 17, 2009 4:27 am
by WebGirl
Viebig, hi,

I have deleted the 4 lines from htaccess

Thank you! Can you please let me know how I would alter config.php to achieve this?

Muchas gracias!

Re: Fatal error - /tmp/templates_c/ ... tpl_head

Posted: Sun May 17, 2009 5:36 am
by viebig
Muchas Gracias is Spanish!, I prefer Obrigado  :)

ok...

Code: Select all

$config['root_url'] = 'http://www.domain.com';
to

Code: Select all

$config['root_url'] = 'http://domain.com';
note that the site will be acessible from both www and non-www, (most hosts are configured that way)

You have to give a good reason to force/redirect the domain always to non-www, like:

- www.domain.com is a different site (the only coerent one)

What do I can imagine why you were doing that.

- search engine duplicated urls? dont worry, search engines can handle that.
- if your site is already indexed, at least with google webmaster tools you can choose between www and non-www, if they're the same the ranks are preserved.

Don't be paranoid about SEO... be paranoid at a good content for the visitor.

Regards

G

Re: Fatal error - /tmp/templates_c/ ... tpl_head

Posted: Sun May 17, 2009 8:46 am
by Jean le Chauve
Ola rapaz,
viebig wrote: You have to give a good reason to force/redirect the domain always to non-www, like:
- www.domain.com is a different site (the only coerent one)

What do I can imagine why you were doing that.

- search engine duplicated urls? dont worry, search engines can handle that.
- if your site is already indexed, at least with google webmaster tools you can choose between www and non-www, if they're the same the ranks are preserved.
-All search engines are not so "intelligent".
-The PR is not diluted.
-You can have some problems with XMLHttpRequest() : uncaught exception: Access to restricted URI denied (NS_ERROR_DOM_BAD_URI) :
jquery-howto.blogspot.com
Module Chat
http://ventoharagano.com.br/ click on Tour virtual don't work without www ;)