-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: tags_str2array(): Return value must be of type array, bool returned #1944
Comments
Hi, please post
|
Do you mean dev (master)? or v0.12.1? (which docker tag did you pull?) Or do you mean the problem is present with both?
Please post the full installation steps (if this is through the Synology GUI, screenshots would be helpful). I am not familiar with this method and I don't think it was ever tested before. I don't think it matters since the app running inside a container should be completely independent from the environment outside it. But maybe it'll give us a clue.
Was the import successful? Did you get any error message while importing? Are there any errors in the server/container logs? |
I assume there is something wrong in the imported data, but it's true that in the line mentioned in the stack trace |
Did you use a EDIT: I could reproduce the issue with this separator. |
Also in case of any other regex error, just return an empty array instead of a fatal error. Fixes #1944
Also in case of any other regex error, just return an empty array instead of a fatal error. Fixes shaarli#1944
I used \| as a separator. I'll reinstall using your latest version and use your default (i.e. I won't use a different separator).
FYI, I'll be using Shaarli a few times on my Chrome browser (iMac) and when Chrome is reopened or the Shaarli page is refreshed, I get the new user screen and have to set all the defaults and re-import all of my bookmarks again. I can't figure out why. The page has every permission, cookies, etc. I'm convinced that it must be a simple fix (in Chrome?) but I'm stumped.
Thanks for your work on this. It's a great app.
\-- Jeff
\-------- Original Message --------
On Mar 18, 2023, 10:20 AM, ArthurHoaro < ***@***.***> wrote:
Did you use a `/` as a tag separator, by any chance?
—
Reply to this email directly, [view it on GitHub][], or [unsubscribe][].
You are receiving this because you authored the thread.![AII7YWO6DFBCXOL3Z6JI3S3W4XHFBA5CNFSM6AAAAAAVIWGQPGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSX5DK7Y.gif][]Message ID: ***@***.***>
[view it on GitHub]: #1944 (comment)
[unsubscribe]: https://github.com/notifications/unsubscribe-auth/AII7YWOLDGJMAMI7RR2CEGTW4XHFBANCNFSM6AAAAAAVIWGQPE
[AII7YWO6DFBCXOL3Z6JI3S3W4XHFBA5CNFSM6AAAAAAVIWGQPGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSX5DK7Y.gif]: https://github.com/notifications/beacon/AII7YWO6DFBCXOL3Z6JI3S3W4XHFBA5CNFSM6AAAAAAVIWGQPGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSX5DK7Y.gif
|
Error opening Shaarli desktop after importing my bookmarks.
Error: tags_str2array(): Return value must be of type array, bool returned
/var/www/shaarli/application/bookmark/LinkUtils.php222
#0 /var/www/shaarli/application/front/controller/visitor/BookmarkListController.php(82): tags_str2array()
#1 [internal function]: Shaarli\Front\Controller\Visitor\BookmarkListController->index()
#2 /var/www/shaarli/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func()
#3 /var/www/shaarli/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke()
#4 /var/www/shaarli/application/front/ShaarliMiddleware.php(55): Slim\Route->__invoke()
#5 [internal function]: Shaarli\Front\ShaarliMiddleware->__invoke()
#6 /var/www/shaarli/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()
#7 [internal function]: Slim\DeferredCallable->__invoke()
#8 /var/www/shaarli/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()
#9 /var/www/shaarli/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->Slim{closure}()
#10 /var/www/shaarli/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack()
#11 /var/www/shaarli/vendor/slim/slim/Slim/App.php(503): Slim\Route->run()
#12 /var/www/shaarli/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke()
#13 /var/www/shaarli/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack()
#14 /var/www/shaarli/vendor/slim/slim/Slim/App.php(297): Slim\App->process()
#15 /var/www/shaarli/index.php(202): Slim\App->run()
#16 {main}
The text was updated successfully, but these errors were encountered: