-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The BASE_URL
config seem to be broken in at least 6.x
#184
Comments
Hi, might be, I'm not using LS in my day to day. Last time I checked the LS documentation on these variables mostly points to the Yii Framework docs. Since there are a bazillion config options in the Framework which we can't have as Env Variables in the Image, it's usually best to just mount a config.php. So you are saying the hostInfo needs to be set instead of baseUrl? Or both? If you have a working example we can include it in the repo. |
I only set |
I'll try to replicate things and update the docs then. |
@fkrauthan I think I got the same problem. I can not upload pictures because the buttons are just not working, everything else seems to work fine. I have a running Traefik setup with the following docker-compose
config.php <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
return array(
'components' => array(
'db' => array(
'connectionString' => 'mysql:host=lime-db;port=3306;dbname=limesurvey;',
'emulatePrepare' => true,
'username' => 'limesurvey',
'password' => 'XXX',
'charset' => 'utf8mb4',
'tablePrefix' => 'lime_',
),
//'session' => array (
// 'class' => 'application.core.web.DbHttpSession',
// 'connectionID' => 'db',
// 'sessionTableName' => '{{sessions}}',
//),
'urlManager' => array(
'urlFormat' => 'path',
'rules' => array(),
'showScriptName' => true,
),
'request' => array(
'baseUrl' => '',
'hostInfo' => 'https://XXX.de/',
),
),
'config'=>array(
'publicurl'=>'',
'debug'=>0,
'debugsql'=>0,
'mysqlEngine' => 'MyISAM',
)
); I create a config.php and used the hostInfo entry like you said, however I still can't upload any pictures as I have the same problem as before, how did you fix it? |
@strickes I haven't tried image uploads itself. But at least for me my settings are slightly different.
Maybe try that modifications and see if it solves it? |
thank you so much! This absolutely did the trick and worked like a charm. Now I can finally upload pictures and attachments to the surveys |
Hey, I had the same issue (limesurvey 6.4 to 6.5). It seems like the only needed modification for me is removing 'baseUrl', no need to set publicurl/hostInfo or set showScriptName to false. My config.php is as follows :
|
Thanks for the example. I'll have a look at it and update the examples/defaults |
It seems like the
BASE_URL
env variable currently maps to:request
->baseUrl
inconfig.php
.However when I didn't modify it I had a bunch of links broken as well as question preview images did not load correctly (I am using traefik and the apache image).
However changing that to
request
->hostInfo
while appending a trailing/
solved all issues for me. So maybe that config has changed and theentrypoint.sh
needs to be updated?The text was updated successfully, but these errors were encountered: