• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Error 310 (net::ERR_TOO_MANY_REDIRECTS)

Status
Not open for further replies.

clsdesign

Chevereto Member
Hi,

i can´t get it to work, on two different webpackages i get:

Error 310 (net::ERR_TOO_MANY_REDIRECTS)

when i tried to use ist.

Regards
 
Can you provide more information regarding your server setup?
I need to now:

1. Hosting provider
2. Apache and php versions
3. Mod_rewrite implementation

Thanks
 
I see. Is pretty hard to tell what is the error on your setup without really looking inside of it. It could be a general system override, a script failure, a bad server setup, etc.

The only way that I have to fix this is by getting access to your server. If you are ok with that please send me your FTP info in this form: http://chevereto.com/contact (including your forum username) and the URL of your chevereto installation.

If you are not comfortable with sharing this info with me, then you can try this alternatives:

1. Check that your server setups correctly display the $_SERVER variable
2. Check that you don't have any conflict .htaccess override, like a cpanel override.
3. Check on other hosting provider with almost default setup.

Let me know if you need anything.
 
I just bought chevereto and I'm having the same problem here. Testing_tool.php says everything is ok, except for this:

* Apache mod_rewrite can't be checked. It's likely that you already have it but please confirm with your hosting provider.

Maybe that helps. I must say I have no idea of how to check if that's the problem, though. I THINK apache version on my server is 2.2.1.7, but I'm not really sure, if that helps.


By the way, out of the requirements of this page: http://chevereto.com/docs#!server-configuration
I'm pretty sure it's not an issue of PHP version, file_uploads disabled in php.ini nor cURL support either, because I have some other scripts running on my server that use those features just fine.


If you could fix clsdesign's problem, can you please post the solution here? If not, and these hints I posted didn't help, I will send you my ftp info so you can figure it out (if possible).

Thanks for your help.
 
Ouch, I think I made a big mistake... My server runs lighttpd, not apache. I guess there is no way to work around this, is it?

PHP 5.2.6
lighttpd 1.4.20
 
zerank said:
Ouch, I think I made a big mistake... My server runs lighttpd, not apache. I guess there is no way to work around this, is it?

PHP 5.2.6
lighttpd 1.4.20

At the moment the only server that works is apache. If you have special configurations (like the one don demo.chevereto.com with nginx+apache) you can get the script running because it's a compatible configuration.

There are so many server enviroments that should be testest, but they are so many as hosting companies are. The quick workarund is to get htacces and mod_rewrite working on whatever your server is.
 
Ok, this is solved. The problem is that your server is not properly dealing with the $_SERVER variable.

The fix is quite easy, open config.php and find this:
Code:
define('__RELATIVE_ROOT__', str_ireplace($_SERVER['DOCUMENT_ROOT'], '', __ROOT_DIR__));

And change it Into this:
Code:
define('__RELATIVE_ROOT__', str_ireplace($_SERVER['DOCUMENT_ROOT'], '/', __ROOT_DIR__));

😉
 
I was thinking about a mixed installation of lighttpd + apache, like this:
http://www.tail-f.com.ar/servicios/httpd/instalar-lighttpd-apache-22-en-linux.html
If that's possible. I assume you can make chevereto work with apache even if it's listening on another port?

However, if you can be more specific about how to get htaccess and mod_rewrite working on other webservers (and if itsn't harder than installing apache from scratch 😀 ) that would really be of help.

Thank you.
 
zerank said:
I was thinking about a mixed installation of lighttpd + apache, like this:
http://www.tail-f.com.ar/servicios/httpd/instalar-lighttpd-apache-22-en-linux.html
If that's possible. I assume you can make chevereto work with apache even if it's listening on another port?

However, if you can be more specific about how to get htaccess and mod_rewrite working on other webservers (and if itsn't harder than installing apache from scratch 😀 ) that would really be of help.

Thank you.

That depends on the server. I know that nginx has some tricky ways to achieve .htaccess like mod_rewrite but I'm not totally involved in this field with lighttpd. You can open a new thread and we can figure out how to make it work 😉
 
I will definetely do that next week. I guess that will take some time and I'm pretty busy right now, but you can bet I'll be here to bore you to death soon :lol:
 
Thank you for fixing that! This solution fixed the error on the second webspace (All-Inkl) too.

Great script, great support 🙂
 
As I said here:
http://chevereto.com/forums/post4773.html#p4773

I switched to Apache because I was unable to make it work on lighttpd (still thought it was a .httaccess & mod_rewrite thing) but I'm still getting the same error, so I think it might be the same problem clsdesign had.

I'm sending you my FTP data so that you can fix it the same way you did to him, but I would please love to know what it is because I'm just testing Chevereto in this domain and I will eventually install it somewhere else.

Thank you.
 
zerank said:
As I said here:
http://chevereto.com/forums/post4773.html#p4773

I switched to Apache because I was unable to make it work on lighttpd (still thought it was a .httaccess & mod_rewrite thing) but I'm still getting the same error, so I think it might be the same problem clsdesign had.

I'm sending you my FTP data so that you can fix it the same way you did to him, but I would please love to know what it is because I'm just testing Chevereto in this domain and I will eventually install it somewhere else.

Thank you.

Fixed, it was the same issue. This will be official solved on 2.0.2

In includes/config.php replace:
PHP:
define('__RELATIVE_ROOT__', str_ireplace($_SERVER['DOCUMENT_ROOT'], '', __ROOT_DIR__));

with:
PHP:
define('__RELATIVE_ROOT__', str_ireplace(rtrim($_SERVER['DOCUMENT_ROOT'], '/'), '', __ROOT_DIR__));
 
good evening rodolfo

I can not give you access to the FTP Halas it do not belong to me it just ready.

I will continue to try your script. I install the patch V 2.01 more but it's still the same. I tested the $_SERVER it works.

$_SERVER ['DOCUMENT_ROOT'] = /var/www/sites/mysite/public_html/mysite

Url rewriting is problematic on a server pool.

Ftp is Pure-FTPd

PHP Version 5.2.6-1+lenny9

I continurai to follow your plan and do as much testing as it takes to perfect your great project because it is a very nice project


Good night and good luck.
 
Status
Not open for further replies.
Back
Top