TYPO3 and IOS: can't open the page - php

My situation:
I have 10 typo3-websites running on two servers:
First Server (apache with php 5.6.32):
typo3 versions: 6.2.3, 6.2.4 and 6.2.14
Second Server (apache with php 7.0.26):
typo3 versions: 7.6.14 and 8.7.1.
I'm not able to open the page on an iPhone or iPad with osx 10.x or above. I tested it on safari, chrome and firefox, but I get always an error like:
"[browser] can't open the page (...) because the server unexpectedly dropped the connection. (...)"
On a mac (osx 10), I get the error only in safari 11.0.2, but not in firefox or chrome.
I can open the pages without any problems, if I'm logged in at the typo3-backend with the same browser.
A Wordpress-Page is also running on the second server without any problems.
I have no problems on windows, android or other linux machines.
I tried the following without success:
clearing the typo3 cache
using the default .htaccess
using an empty .htaccess
The solutions from this site (german!): http://www.typo3forum.net/discussion/79617/ios-10-3-1-laedt-seite-nicht
Any ideas?

Have you tried to set the header content-length to 0?
https://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Config/Index.html#enablecontentlengthheader
Try to set the following lines to your TypoScript
config.enableContentLengthHeader = 0
You say you can open the page if you are logged in that matches the following description:
If the Backend user is logged in, this is disabled. The reason is that
the content length header cannot include the length of these objects
and the content-length will cut off the length of the document in some
browsers.

Related

Xdebug 3 / PHP / VS Code / Win10 - Not opening in browser properly - any ideas what's wrong?

I've installed XAMPP (control panel 3.3.0) on my Windows 10 PC. I then installed VS Code (v1.74.3)
I ran the phpinfo() and pasted the results into the Xdebug wizard and followed the instructions on that page (downloaded php_xdebug-3.2.0-8.2-vs16-x86_64.dll, renamed as php_xdebug.dll and saved to C:\xampp\php\ext)
I then added the following to C:\xampp\php\php.ini file.
zend_extension = xdebug
I restarted the Apache server and VS Code. I also installed the PHP Debug (v1.30) extension to VS Code.
When I load up a test PHP file and try to debug it, it seems to work as expected in VS Code (it stops at breakpoints, I can step through, the variables pane updates, and echo'd text appears in the debug console. This is when I do "launch currently open script").
But when I do "launch built-in web server", to see what it looks like in a browser, it opens Chrome to http://localhost:62xxx/ (the number changes each time) and the page says:
Not Found
The requested resource / was not found on this server.
I've probably just missed a setup/config step somewhere. How do I get it to open a browser that shows what the script is outputting?

PHP script running in XAMPP and not working in IIS 8.5

I have a problematic PHP script.
The script is working fine in XAMPP but I need it in IIS 8.5 and there are several errors (some of them I've managed to handle).
I've tested on same Win Server 2012 R2 and if script is in C:/Xampp/htdocs/ProjectFolder/send.php and I run it at localhost:88/ProjectFolder/send.php (XAMPP is on port 88) is working fine. If same script that is now C:/inetput/wwwroot/ProjectFolder/send.php and I run it at localhost:80/ProjectFolder/send.php (IIS is on port 80) is not working.
The script is here (PHP script)
When run the script in IIS, this is first error:
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
Full screen of error here (First error in IIS)
I added 2 Handlers in IIS, at server level: Handler Mappings-->Add Module Mapping
- first handler request path is *.html and module FastCgiModule, with executable php-cgi (see image html handler ) and Request Restrictions (Mapping Invoke Handler unchecked - see image Mapping tab, Verbs all verbs - see image Verbs tab, and Access None - see image Access tab)
- second - same for php (see image - html and php Handlers added)
I run the script again (after IIS restart) and I got following error:
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Error 2 - see image Second error in IIS I cannot handle
Here I got stacked. Please advice. Thank you very much!

Can't open wp-admin in Safari - "server unexpectedly dropped the connection"

Hi I have installed a Wordpress theme in my MACBOOK pro successfully (after downloading MAMP & creating wordpress database of course).
When i open localhost:8888/wordpress - it all looks good. I am now trying to open this link: localhost:8888/wordpress/wp-admin to be able to customise the theme. I encounter error.
The error in safari says: "Safari can't open the page because the server unexpectedly dropped the connection).
Here is the image
I have tried all trouble shooting guides i found and they DID NOT WORK:
- Changing the speed in my apache setting
- Remove cache in my safari (Safari > Preferences > Privacy > Remove all website data)
- Clean up my MacBook to free up 4gb of RAM
- In my terminal command: sudo purge
Please help! My goal is to be able to open: localhost:8888/wordpress/wp-admin and customize the theme in my local computer.
Here are steps to fix this...
In Safari
Menu bar > Preferences > Privacy > Remove all website data
On prompt select
Remove Now
All cookies will be cleaned up & now test your website is working or not.
It should start working as normal.
Hope this helps.

Google PHP API library example: user-example: Firefox can't establish a connection to the server at localhost

Running Windows 7 Ultimate / Apache 2.4.9 / PHP 5.5.11 / FireFox 29.
When I try running the Google PHP API example user-example (using FireFox) I am able to connect and receive the approval page for the URL Shortener. However, when I click on the Accept button I receive the message:
"Firefox can't establish a connection to the server at localhost"
netstat showed that only Apache was listening on port 80. So, thinking that this might be a call-back issue, I ran a REST script (using the same credentials) that did pretty much the same thing, i.e. queried OAuth etc. This worked successfully.
NB: IE11 fails at the same point with a "This page can’t be displayed"
message, the offending URL being https://accounts.google.com.
Any assistance greatly appreciated.
Not sure if this will help, and its to big for a comment but try this
Changing the following PHP.ini settings:
Uncomment the extension=php_openssl.dll - necessary for 'https' URLs;
Set the time-zone. Google is fussy about times, so this might have affected the outcome.
I finally resolved the issue, much to my chagrin.
With all the other URI's in the example being "https://" I inadvertently set the call-back's URI to
https://localhost/etc
The solution was to set the call-back's URI to an 'http', i.e.
http://localhost/etc

Apache2 with PHP - Pages Not Loading Without Bypassing Cache

I have a weird issue where my PHP pages being served by Apache2 will not load on the page without having to bypass the browser cache (Ctrl+Shift+R).
If I got to mypage.com/test.php I get a browser erro page: The connection was reset (Firefox)
or Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data. (Chrome)
If I do a Ctrl+Shift+R on the page then the test.php which is just a call to phpinfo(), then the page loads normally and I see the PHP output.
I'm running on Ubuntu with a virtual host for the specific site using PHP 5.3.2. If I do a curl on the mypage.com/test.php on the server it loads the page fine. But not on PC browsers on or off the network.
Does anyone know why this is happening or how to get Apache to serve the page without the CTRL+Shift+R?
Try use something like https://addons.mozilla.org/ru/firefox/addon/live-http-headers/ to get full text of requests and answers in browser.

Categories