Hi all,
I just update the Force_HTTPS to the latest version via the update interface. But after a server reboot, it said:
"sitename" redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
I cleaned all cookies and caches but no luck. How can I temporarily disable the Force_HTTPS entension so that I can access the site? Thank you.
Erio
Offline
erio wrote:
Hi all,
I just update the Force_HTTPS to the latest version via the update interface. But after a server reboot, it said:
"sitename" redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
I cleaned all cookies and caches but no luck. How can I temporarily disable the Force_HTTPS entension so that I can access the site? Thank you.
Erio
Hi erio,
You can delete the plugins/Force_HTTPS folder and it will restore your access.
One question meanwhile:
- do you have HTTPS forced any other way than with the plugin (i mean, do you have a virtual host or .htaccess file file redirects connections from port 80 to 443 ?
In this case, the redirect issue could be solved by commenting line 98 of the main.inc.php of the plugin
default: // force_https_set_header_http();
This issue in this case will be fixed in upcoming version.
Offline
Version 2.0.2 released and available for update. It should fix reported issues.
Enjoy !
Arnaud (bonhommedeneige)
Offline
Thanks! I just removed the folder in the morning and it works again. And now I re-install the F_HTTPS again and it works!
Offline
erio wrote:
Thanks! I just removed the folder in the morning and it works again. And now I re-install the F_HTTPS again and it works!
Great ! Thanks for the feedback, it helps improving the plugin ! Apart from the admin interface which could be enhanced, I think it is not far to be usable for every kind of situation.
Offline
Thanks for making the 301/302 changes, etc., its great to have that fix.
How about the problem with HTTP and HTTPS both being canonical?
e.g. <link rel="canonical" href="/gallery/"> is listed for both pages.
What should happen, is that the full URL to the page, for both versions, should be given with https:// under the canonical. I'm sure Google isn't all that dump, but apparently there is a little penalty for not being perfect about it.
Maybe it's in Piwigo, versus the plug-in, but who to suggest it to...
Offline
gnurob wrote:
How about the problem with HTTP and HTTPS both being canonical?
e.g. <link rel="canonical" href="/gallery/"> is listed for both pages.
I did not inquire in the canonical subject. From what I've seen so far it seems to be handled in the core of Piwigo (index.php and functions.inc.php). There's is a TODO caption in the functions.inc.php get_root_url() 2.9.2 function, maybe that's the key...
function get_root_url() { global $page; if ( ($root_url = @$page['root_path']) == null ) {// TODO - add HERE the possibility to call PWG functions from external scripts $root_url = PHPWG_ROOT_PATH; if ( strncmp($root_url, './', 2) == 0 ) { return substr($root_url, 2); } } return $root_url; }
Offline
Hi,
I have a similar problem as mentioned before. I installed Force_https, I think it said the server was OK, now everything is blocked. The error is "The site cannot deliver a secure connection"
I tried deleting the plugin folder as discussed before. This failed because the owner seems to be not me
unfortunately, it says owner 48. I see all plugins have the same owner "48" where all other folders have owner "39747" How come the plugins have a different owner?
Any ideas about alternatives for deleting the plugin for now?
Of course I can ask my hosting company to delete it and I will. But I wondered if anyone has experienced this before and how to solve it yourself?
Offline
jeroens wrote:
Hi,
I have a similar problem as mentioned before. I installed Force_https, I think it said the server was OK, now everything is blocked. The error is "The site cannot deliver a secure connection"
I tried deleting the plugin folder as discussed before. This failed because the owner seems to be not me
unfortunately, it says owner 48. I see all plugins have the same owner "48" where all other folders have owner "39747" How come the plugins have a different owner?
Any ideas about alternatives for deleting the plugin for now?
Of course I can ask my hosting company to delete it and I will. But I wondered if anyone has experienced this before and how to solve it yourself?
Hi,
To solve the problem you could try deleting the configuration keys in the database
DELETE FROM piwigo_config where param like 'force_https'
or (if you use an older version)
DELETE FROM piwigo_config where param like 'fhp%'
In the admin panel you have a test that you have to do before activating. It can not be ok with the test (the page should be displayed successfully) within the admin and not ok after activation, unless I missed something in the plugin.
When did you install it ?
Hope it will solve your issue
Arnaud (bonhommedeneige)
Offline
Hello Arnaud,
Thank you for your help. It worked, I can now access piwigo once more.
When I go back to the plugin I have a remaining problem see the errors in the attached screenshot.
However I also realize know I was triggered by the message
""Your hosting server does support HTTPS"
This made me think it was OK
Next I enabled the HTTPS boxes for global activation and partial activation. BTW I am not really an expert on this topic I thought this would not harm.
I did not see a test link or button and it still does not show see the screenshot attached.
I installed today and downloaded the latest version.
I am running piwgo 2.9.2
My host domain runs on PHP 5.6 and Fast-CGI. The database is MySQL
Thanks in advance
Jeroen
Offline
Hi
You're right, if it indicates "Your server support HTTPS", then you don't have the test link (i'll add it anyway in an upcoming release), it's then normal that you can't locate it.
Can you repost your screenshot as I can't see it in your previous post ?
Thanks !
Arnaud (bonhommedeneige)
Offline
Hi, I installed this plugin but the browser still tells me the connection is not secure, the plugin config page detects correctly that my server supports HTTPS.
The admin console shows every menu entry as secure and the browser confirms it by marking it secure
Its the public gallery that shows the Not Secure connection, how can I tell where is the problem?
my gallery is at www.peu.net
Thanks
Offline
Hi,
It is because your logo image is loaded through an http request (maybe you indicated it not with a relative path).
I checked at requests on your site and this one is highlighed (the load of PEUlogo.png)
I attached a screenshot to highlight it.
Offline
THANK YOU VERY MUCH ARNAUD !!!
I don't know how tou put it bigger LOL
Cheers from Buenos Aires, Argentina!!
Pablo
Offline
Hi,
Hope it is OK to write here?
My problem is, that my contact-form wont show when ForceHTTPS is active.
Attached two screenshots of the source code.
The first shows source, when ForceHTTPS is on
The second shows source when ForceHTTPS is deactivated.
How do I get rid of the ":80" ?
Offline