Enter a IPv4 like "192.168.79.200" is not posible.
Using Floccus to sync this IPv4 bookmarks there is a error in Nextcloud
[index] Error: Error: Call to undefined function gmp_init() at <
POST /apps/bookmarks/bookmark
Operating system:
Debian/Raspbian 10 Buster
Apache 2.4.25, with HTTP2 enabled
PHP 7.3
MariaDB 10
Nextcloud 16.0.3
Bookmarks version: (see Nextcloud apps page)
1.0.8
Updated from an older Nextcloud or fresh install:
fresh install
Hey, you will need to install the gmp extension: https://github.com/nextcloud/bookmarks#install
Hello, I have the same problem. I have the PHP extension installed. Nevertheless, the error in the log and I can not syncronize bookmarks.
[index] Error: Error: Call to undefined function gmp_init() at <
GET /index.php/apps/bookmarks/public/rest/v2/bookmark?url=https%3A%2F%2F192.168.178.130%2Fmanagement%2Fadmin%2Fjsp%2FSiteMain.jsp
from 217.92.230.20 by rudolfschuba at 2019-08-27T09:33:15+00:00
I could see the same issue here, even with php-gmp installed. To me it looks as if it mostly affects the URLs containing a colon, like https://127.0.0.1:8080/foo/bar:
{"reqId":"4vj7tfSpk81iJlE9yzer","level":3,"time":"2019-09-09T19:41:04+00:00","remoteAddr":"x.x.x.x","user":"myUser","app":"index","method":"GET","url":"\/nextcloud\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark?url=http%3A%2F%2F127.0.0.1%3A8080%2Ffoo%2Fbar","message":{"Exception":"Error","Message":"Call to undefined function gmp_init()","Code":0,"Trace":[{"file":"\/nextcloud\/apps\/bookmarks\/vendor\/rowbot\/url\/src\/IPv4Address.php","line":94,"function":"parseIPv4Number","class":"Rowbot\\URL\\IPv4Address","type":"::","args":["127",false]},{"file":"\/nextcloud\/apps\/bookmarks\/vendor\/rowbot\/url\/src\/Host.php","line":105,"function":"parse","class":"Rowbot\\URL\\IPv4Address","type":"::","args":["127.0.0.1"]},{"file":"\/nextcloud\/apps\/bookmarks\/vendor\/rowbot\/url\/src\/BasicURLParser.php","line":860,"function":"parse","class":"Rowbot\\URL\\Host","type":"::","args":["127.0.0.1",false]},{"file":"\/nextcloud\/apps\/bookmarks\/vendor\/rowbot\/url\/src\/BasicURLParser.php","line":301,"function":"hostState","class":"Rowbot\\URL\\BasicURLParser","type":"->","args":[":"]},[...]
sync went through after deleting this bookmark.
(floccus 3.4.0.5 on firefox-esr 60.9.0 Linux amd64; Nextcloud 16.0.4 on debian 10 with default php7.3, php-gmp v7.3.4-2)
Make sure your php.ini contains the following: extension=php_gmp.so
Also, after completing the install restart apache:
sudo service apache2 reload
sudo service apache2 restart
Most helpful comment
Hey, you will need to install the gmp extension: https://github.com/nextcloud/bookmarks#install