Project

General

Profile

Actions

Bug #76567

closed

"Error - reference to main window is not set properly" on NGINX when using deprecated entry point browser.php

Added by Juan Manuel Vergés Solanas almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-06-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hello guys,

I propose 2 different solutions here, the easy one and the good one.

The easy one is modify https://typo3.org/typo3-cms/overview/requirements/ and put a bold note telling 7LTS is not working with Nginx, or better say only code without deprecation will work with 7LTS and Nginx (yeah)

The good one could be to deliver a Nginx config.

As far as I could get:

browser.php is not there since https://github.com/TYPO3/TYPO3.CMS/commit/f00efef1bd93181fe1c594bf169cd8ccb6eb7f63

when you use nginx, once you apply:

```
location ~* ^(?<bpath>.*/)(ajax|alt_clickmenu|alt_db_navframe|alt_doc|alt_file_navframe|browser|db_new|dummy|init|login_frameset|logout|mod|move_el|show_item|tce_db|tce_file|thumbs)\.php$ {
include fastcgi_params;
fastcgi_param TYPO3_CONTEXT Development;
#fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-fpm-vagrant.socket; #take care of your socket here
fastcgi_read_timeout 600;
fastcgi_param SCRIPT_FILENAME $document_root${bpath}deprecated.php;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
}

```

or this:
`
rewrite ^(.*/)(ajax|alt_clickmenu|alt_db_navframe|alt_doc|alt_file_navframe|browser|db_new|dummy|init|login_frameset|logout|mod|move_el|show_item|tce_db|tce_file|thumbs)\.php$ $1deprecated.php$is_args$args last;

`

in nginx the browser.php window appears again.

However, once you select the file you want, a prompt is displayed saying:

![image](https://cloud.githubusercontent.com/assets/2902073/15923110/9ac01ad0-2e2b-11e6-98bb-34976730a687.png)

Error - reference to main window is not set properly!

I can confirm the following:
-Apache .htaccess is working and window.opener is not lost, so works properly.
-Nginx conf I delivered is half working as the browser.php window is shown but window.opener (or something) is lost there.
The first one image is Nginx the second one is Apache, they look equal. both TYPO3 7.6.9 only apache is working:

![image](https://cloud.githubusercontent.com/assets/2902073/15927315/311cb5aa-2e41-11e6-8d6f-23a5a26bb401.png)

Nginx is telling me:
![image](https://cloud.githubusercontent.com/assets/2902073/15927354/79e4d9ca-2e41-11e6-8f58-1edfd16400ad.png)

This line (at least in javascript, at least at this point): https://github.com/TYPO3/TYPO3.CMS/blob/6706d3853224097e752b0cb3e1a5c001e9e8f157/typo3/sysext/recordlist/Resources/Public/JavaScript/ElementBrowser.js#L186
is the one is having a difference between both Nginx and Apache

Any thoughts and feedback is as welcomed as always.

Affected community repos by this probably: https://github.com/webdevops/TYPO3-docker-boilerplate , https://github.com/FluidTYPO3/FluidTYPO3-Vagrant , https://github.com/Tuurlijk/TYPO3.Homestead ( I can confirm the first two )

I hope any of you find useful all this info.

Best wishes,
Juan Manuel.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #54316: Provide a Nginx server configurationClosed2013-12-11

Actions
Actions

Also available in: Atom PDF