aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/md
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2020-05-21 13:26:04 +0200
committernodiscc <nodiscc@gmail.com>2020-09-12 14:31:45 +0200
commitdfed9b2dd58cfb82a334f4c9433bfce84426cd34 (patch)
tree14c0b1732fca0baf36d0b57a9a1a5594d7de4280 /doc/md
parent881bd96f151f9eefdac6264e432e573a657fc82b (diff)
downloadShaarli-dfed9b2dd58cfb82a334f4c9433bfce84426cd34.tar.gz
Shaarli-dfed9b2dd58cfb82a334f4c9433bfce84426cd34.tar.zst
Shaarli-dfed9b2dd58cfb82a334f4c9433bfce84426cd34.zip
doc: troubleshooting: improve compatibility with PHP 5.6/FTP upload limits
ref. https://github.com/shaarli/Shaarli/issues/1469
Diffstat (limited to 'doc/md')
-rw-r--r--doc/md/Troubleshooting.md17
1 files 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
38 38
39### Old PHP versions 39### Old PHP versions
40 40
41On **free.fr**: free.fr now supports php 5.6.x([link](http://les.pages.perso.chez.free.fr/migrations/php5v6.io)) 41- 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:
42and so support now the tag autocompletion but you have to do the following.
43
44At the root of your webspace create a `sessions` directory and a `.htaccess` file containing:
45 42
46```xml 43```xml
47<IfDefine Free> 44<IfDefine Free>
48php56 1 45php56 1
49</IfDefine> 46</IfDefine>
47<Files ".ht*">
48Order allow,deny
49Deny from all
50Satisfy all
51</Files>
52Options -Indexes
50``` 53```
51 54
52- 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` 55- 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`
53- 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). 56- 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).
54- 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: 57- 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:
55 58
@@ -59,9 +62,11 @@ php56 1
59//if (strpos($status,'200 OK')) $title=html_extract_title($data); 62//if (strpos($status,'200 OK')) $title=html_extract_title($data);
60``` 63```
61 64
62- On hosts which forbid outgoing HTTP requests (such as free.fr), some thumbnails will not work. 65- On hosts (such as **free.fr**) which forbid outgoing HTTP requests, some thumbnails will not work.
66- 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).
63- On **lost-oasis**, RSS doesn't work correctly, because of this message at the begining of the RSS/ATOM feed : `<? // tout ce qui est charge ici (generalement des includes et require) est charge en permanence. ?>`. To fix this, remove this message from `php-include/prepend.php` 67- On **lost-oasis**, RSS doesn't work correctly, because of this message at the begining of the RSS/ATOM feed : `<? // tout ce qui est charge ici (generalement des includes et require) est charge en permanence. ?>`. To fix this, remove this message from `php-include/prepend.php`
64 68
69
65### Dates are not properly formatted 70### Dates are not properly formatted
66 71
67Shaarli tries to sniff the language of the browser (using `HTTP_ACCEPT_LANGUAGE` headers) 72Shaarli tries to sniff the language of the browser (using `HTTP_ACCEPT_LANGUAGE` headers)