I am using custom matrix fields within a site that uses SSL and IE (like usual) refuses to execute the page if it sees any http:// in the script source path.
What I am asking is, how do I change it so the code that gets added to the rendered html, is https://
for example:
should be:
In my EE settings, I have site the URL of root directory and themes to be https:// - as seen in http://cl.ly/931356f6740353aad183
I printed out {site_url} and it has https:// in it.
EE 1.6.9
Matrix 2.0.7.1
FieldFrame 1.4.2
UPDATE: set the fieldtypes URL to include https://, originally set to /system/extensions/fieldtypes, now: https://domain.com/system/extensions/...
the problem seems to be with nGen File fieldtype: http://pastie.org/1084644
-
Fieldtypes Folder URL is the correct answer for FF Matrix 1.x; Matrix 2.x uses your Themes Folder URL.
I'm pretty sure nGen File Field uses the Upload Directory's URL. -
-
Created a new field group, consisting of title and matrix, both text boxes (no ngen file fieldtypes): http://cl.ly/7530a7c239dcf2ebc1fe
Still receive IE 7 error when viewing the SAEF http://cl.ly/e73ec48df8dfb8f9f236
If I remove the matrix field from the SAEF template, it displays the page without any errors.
The problem persists without it being a nGen file fieldtype.
I looked thru the code and it refers to all https://, then set it to run on http:// and still receive error.
It seems like it has something to do with matrix, as all the other pages that are SAEF pages w/o matrix fields work fine.
Ever have this problem before w/ IE7? -
-
Yeah that's a separate issue. Fixed for the next release. In the meantime you can try patching it yourself.
Find these lines in ft.matrix.php:
$js = 'var m = new Matrix("'.$field_name.'", '.json_encode($cols_js).', '.json_encode($rows_js).($max_rows ? ', '.$max_rows : '').');' . NL
. 'm.totalNewRows = '.$total_new_rows.';';
And replace them with:
$js = 'jQuery(document).ready(function(){'
. 'var m = new Matrix("'.$field_name.'", '.json_encode($cols_js).', '.json_encode($rows_js).($max_rows ? ', '.$max_rows : '').');' . NL
. 'm.totalNewRows = '.$total_new_rows.';'
. '})';
-
-
Perfect - thanks for the great support you continue to provide
-
-
Replying to an old topic here, just in case someone finds it and wonders if there's a solution to the problem of nGen File Field displaying thumbnails over http rather than https. I fixed it by changing the following line (line 302 in v1.0.2 of the extension):
$thumbnail = $this->upload_prefs['server_url'] . $img_info['thumbnail'];
to:
$thumbnail = $this->upload_prefs['server_uri'] . $img_info['thumbnail'];
(a subtle change from server_url to server_uri).
Simon -
-
Hi Simon,
I’m pretty sure that the server_url is just based on your upload directory’s Server URL setting. Have you tried checking there? -
-
Yes, that's true, but my requirement was to have thumbnails delivered over https because I wanted the control panel to be fully encrypted (if pages have mixed mode security, IE 7/8 gives you a popup warning on every page). The full-size images should be delivered over http as normal. That's why I had to hack nGen File Field.
Simon -
-
If you set the Server URL to just a root-relative URL (starts with a slash, e.g. "/images/uploads/"), then the browser will set the URL to whatever URL protocol (and domain) the current page is using.
-
Loading Profile...


Twitter,
Facebook, or email.

EMPLOYEE
