The personal, minimalist, super-fast, database free, bookmarking service - community repo
ArthurHoaro on npm_and_yarn
ArthurHoaro on master
Bump ssri from 6.0.1 to 6.0.2 … Merge pull request #1743 from s… (compare)
dependabot[bot] on npm_and_yarn
Bump ssri from 6.0.1 to 6.0.2 … (compare)
nodiscc on master
Add '206 not acceptable' to the… Correct HTTP status code 206->4… Merge pull request #1739 from r… (compare)
nodiscc on doc-fix-casing
nodiscc on master
doc: plugins.md: fix link casin… Merge pull request #1738 from s… (compare)
nodiscc on doc-fix-casing
doc: plugins.md: fix link casin… (compare)
nodiscc on master
Documentation: include all PHP … Merge pull request #1734 from A… (compare)
ArthurHoaro on master
Coding style: Apply automatic P… Coding style: manually fix rema… Coding style: update documentat… and 1 more (compare)
ArthurHoaro on master
Change legacy URL route for Add… Merge pull request #1732 from A… (compare)
ArthurHoaro on master
Search highlight: do not use sp… Merge pull request #1731 from A… (compare)
ArthurHoaro on master
Merge pull request #3 from shaa… Update Japanese translation Merge pull request #1728 from y… (compare)
ArthurHoaro on master
Fix a bug When we try to acces… Merge pull request #1725 from a… (compare)
ArthurHoaro on npm_and_yarn
ArthurHoaro on master
Bump y18n from 4.0.0 to 4.0.1 … Merge pull request #1724 from s… (compare)
dependabot[bot] on npm_and_yarn
Bump y18n from 4.0.0 to 4.0.1 … (compare)
nodiscc on doc-apache-directoryindex
nodiscc on master
doc: apache: explicitely ste in… Merge pull request #1718 from s… (compare)
ArthurHoaro on master
Bump WebThumbnailer version to … Merge pull request #1722 from A… (compare)
ArthurHoaro on npm_and_yarn
OK so I just tried, and it's working fine. BUT I had to ajust the nginx rewrite rule from:
location / {
# Slim - rewrite URLs
try_files $uri /index.php$is_args$args;
}
to
location / {
# Slim - rewrite URLs
try_files $uri /shaarli/index.php$is_args$args;
}
.docker/nginx.conf
by changing the root directory from /var/www/shaarli
to /var/www
(and the above change), built the Docker image, and ran it behind my usual reverse proxy.
llaq
On my fresh shaarli installation, i have a error :
llaq
Failed to lock the file.llaq
On my fresh shaarli installation, i have a error :
llaq
Failed to lock the file.llaq
Error : An unexpected error happened, and the error template could not be displayed.
Couldn't load data from the data store file "data/datastore.php". Your data might be corrupted, or your file isn't readable.
llaq
ls -l result : -rw-r--r-- 1 root root 0 Dec 6 19:03 datastore.php
llaq
* ls -l result :hook_pluginname_save_link
function, nothing happens on application side. It's like no error occurred. I guess that the error is catched by Shaarli and sent to the next template rendering function but since the response to POST /shaare is a 302, the user never sees the error.plugin_errors
variable. It prevents plugins from making Shaarli unusable due to (for example) plugin compatibility issue. In the default template it used in page.header.html
.Ah sorry I missed the redirection part of your message. I have recently develop such a feature, similar to Symfony flashbag, here:
We should find a proper way to tie the SessionManager with plugins, BUT if you want to hack your way through, you might get the result you want by using superglobals, e.g. $_SESSION['global_errors'][] = 'Noooo!';
.
@ArthurHoaro my apologies.
So anywho, doing some research of backing up and restoring...I found retrieving the datastore.php is where all of your clippings/saved things are.
I pulled the datastore.php and transferred it to where it was supposed to go (/data/)
But I'm getting this error: https://pastebin.com/NBwv8e8K
That made me think of the initial installation process. I remember seeing something about 'slim' under the php prerequisites
It should read something like this
srvadmin@demo1:~$ sudo ls -l /var/www/links.xinit.se/data/datastore.php
-rw-r--r-- 1 www-data www-data 2379 Apr 11 18:03 /var/www/links.xinit.se/data/datastore.php
www-data
must have rw permissions so if it doesn't: sudo chown www-data /path/to/your/datastore.php; sudo chmod u+rw /path/to/your/datastore.php