From dfed9b2dd58cfb82a334f4c9433bfce84426cd34 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Thu, 21 May 2020 13:26:04 +0200 Subject: [PATCH] doc: troubleshooting: improve compatibility with PHP 5.6/FTP upload limits ref. https://github.com/shaarli/Shaarli/issues/1469 --- doc/md/Troubleshooting.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/doc/md/Troubleshooting.md b/doc/md/Troubleshooting.md index 3f75719d..f0cf4e97 100644 --- a/doc/md/Troubleshooting.md +++ b/doc/md/Troubleshooting.md @@ -38,18 +38,21 @@ Shaarli redirections will not work properly. To solve this, assign a local domai ### Old PHP versions -On **free.fr**: free.fr now supports php 5.6.x([link](http://les.pages.perso.chez.free.fr/migrations/php5v6.io)) -and so support now the tag autocompletion but you have to do the following. - -At the root of your webspace create a `sessions` directory and a `.htaccess` file containing: +- On hosts (such as **free.fr**) which only support PHP 5.6, Shaarli [v0.10.4](https://github.com/shaarli/Shaarli/releases/tag/v0.10.4) is the maximum supported version. At the root of your webspace create a `sessions` directory and a `.htaccess` file containing: ```xml php56 1 + +Order allow,deny +Deny from all +Satisfy all + +Options -Indexes ``` -- If you have an error such as: `Parse error: syntax error, unexpected '=', expecting '(' in /links/index.php on line xxx`, it means that your host is using php4, not php5. Shaarli requires php 5.1. Try changing the file extension to `.php5` +- If you have an error such as: `Parse error: syntax error, unexpected '=', expecting '(' in /links/index.php on line xxx`, it means that your host is using PHP 4, not PHP 5. Shaarli requires PHP 5.1. Try changing the file extension to `.php5` - On **1and1** : If you add the link from the page (and not from the bookmarklet), Shaarli will no be able to get the title of the page. You will have to enter it manually. (Because they have disabled the ability to download a file through HTTP). - If you have the error `Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /…/index.php on line xxx`, it means that your host has disabled the ability to fetch a file by HTTP in the php config (Typically in 1and1 hosting). Bad host. Change host. Or comment the following lines: @@ -59,9 +62,11 @@ php56 1 //if (strpos($status,'200 OK')) $title=html_extract_title($data); ``` -- On hosts which forbid outgoing HTTP requests (such as free.fr), some thumbnails will not work. +- On hosts (such as **free.fr**) which forbid outgoing HTTP requests, some thumbnails will not work. +- On hosts (such as **free.fr**) which limit the number of FTP connections, setup your FTP client accordingly (else some files may be missing after upload). - On **lost-oasis**, RSS doesn't work correctly, because of this message at the begining of the RSS/ATOM feed : ``. To fix this, remove this message from `php-include/prepend.php` + ### Dates are not properly formatted Shaarli tries to sniff the language of the browser (using `HTTP_ACCEPT_LANGUAGE` headers) -- 2.41.0