Closed FloSeas closed 10 years ago
With further invastigation seams that the request was performed over http but i'm on a https scheme.
I'll look up if i can imporve scheme dectection
Although, i Tweaked a bit the vendor and saw that i can also access my generated url but the porte detected was 403 ans i was on 80. So i just write it for my purpose dicrectily in code as I work on cloud9.
on a ubtuntu vm machine. and then I call the genreated url into my web browser and the response is ok.
Further more i get another Exception About unserializing. But i tried on an aline unserializer to deserialyse the code and it when good.
When i deactivate exception for my purpose in vendor it dont work either step 1 pass but step2 don't
Hi!
Ok, a mix between https and http might be the source of the problem.
Just to be sure I understand, you are accessing Mouf via an HTTPS url, right? Your HTTPS port is the standard 443 port and you also have a HTTP port on port 80? Or is the only port open the HTTPS one?
Mouf is performing a lot of requests via Curl on itself and we have already faced problems where Mouf cannot call itself. Just give me as much details possible about your setup and I'll try to reproduce the problem.
Just wait a moment i have an idea.
(for info i tried both http and https). But maybe it's another problem, i'll do some tests and come back to you
Re, yeah i'm accessing trought https, but the https scheme is not detected but the port it right detected 443.
The url requested buy mouf is look like 'http://.....:443/...
And my tests did not work
ok, I get it. Just give me a few minutes, I'll check it.
Mmmmm... this is getting weird... The code that detects whether we are in HTTPS or HTTP is here:
The getLocalUrlToProject
method should return the URL to Mouf (so that Mouf can call the URL using Curl).
If this method is failing, it means that $_SERVER['HTTPS']
is empty. Any idea why it might be empty? Is the HTTPS decoding perfomed by Apache or are you using some kind of appliance in front of Apache that does the HTTPS decoding?
Yep was checking this class too
Just pushed a fix. Can you update and let me know if it works?
According to http://stackoverflow.com/questions/10951325/how-can-serverhttps-be-empty-when-accessing-over-https.
Setting the env vars in conf resolve the first problem of https empty
But stiil buggy
ok need to add explicitly
for the first part of the problem
next message
Fatal error: Uncaught exception 'Exception' with message 'Unable to unserialize message:
<br/>URL in error: <a href='https://-/vendor/mouf/mouf/../../../vendor/mouf/mouf/src/direct/get_class_map.php?selfedit=false'>https://-/vendor/mouf/mouf/../../../vendor/mouf/mouf/src/direct/get_class_map.php?selfedit=false</a>' in /home/ubuntu/workspace/vendor/mouf/mouf/src/Mouf/Reflection/MoufReflectionProxy.php:207
Stack trace:
#0 /home/ubuntu/workspace/vendor/mouf/mouf/src/Mouf/MoufClassExplorer.php(69): Mouf\Reflection\MoufReflectionProxy::getClassMap(false)
#1 /home/ubuntu/workspace/vendor/mouf/mouf/src/Mouf/MoufClassExplorer.php(193): Mouf\MoufClassExplorer->analyze()
#2 /home/ubuntu/workspace/vendor/mouf/mouf/src/Mouf/Moufspector.php(35): Mouf\MoufClassExplorer->getClassMap()
#3 /home/ubuntu/workspace/vendor/mouf/mouf/src/direct/get_validators_list.php(72): Mouf\Moufspector::getComponentsList('Mouf\Validator\...', false)
#4 {main}
thrown in /home/ubuntu/workspace/vendor/mouf/mouf/src/Mouf/Reflection/MoufReflectionProxy.php on line 207
I deleted the domaine name for confidentiality
My url was not accessible from mouf
sory for disturb and ty for help
I'm trying to troubleshoot installation i have this error during mouf installation, invastigationg on what could be the cause.
Pretty new to framework. If you already have the kind of error...
I'm on ubuntu