giac hellvecio
 my house near the sea 
Now, about a 1/4 of my hubzilla contacts, posts and comments and likes, appear very late (some more than 10 hours later).
Maybe it's the case of alerting.
And, of course, not just in this channel, but also in other hubs where I have other channels.
#delay
cc @Hubzilla Support Forum+
Camron Bickford
  
Maybe 1/4 Of your contacts hasn't updated their hubz yet. Are you on the latest version?
Tags Categories and Search Questions.

Camron Bickford
 
Moin!

I'm having trouble understanding the difference between tags and categories in Hubzilla.
Both seem to do the same thing: Show post of the person that created the tag/category containing said tag/category
The only difference I see is the option to allow others to tag my posts and in that case the tag will list posts of the person who created the tag.

I would like to search tags in a more general way. Something more like showing posts containing that tag by all my connections.

I'm wondering if I have some settings wrong still?

Trying to use the search function @ https://hubzilla.odat.xyz/search?f=&search=cats&submit=Search   returns no results no matter what I search for. I thought that might be a way to do a more global tag search.  

Any ideas why the search isn't working?
Mike Macgirvin
  
This feature was only turned off in recent versions of mysql. You can set a server option to do it the old (sane) way but it's deprecated so we need a solution regardless.

https://stackoverflow.com/questions/37951742/1055-expression-of-select-list-is-not-in-group-by-clause-and-contains-nonaggr

Note that the solution they use in the article is very difficult here because the item table has a huge number of columns and they would each need to be enumerated. However there are also instructions for configuring the server to do it the old way.
Camron Bickford
  
would this be the instructions to configure the server to do it the sane way?

mysql > SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
Camron Bickford
  
I just tried it and that works for now. :) Until the next reboot I guess. I'll look into it more. Just wanted to let you know the search is working with that fix @mike. Thank you very much! Hope you have a good weekend.
Marshall Sutherland
  
!Hubzilla Support Forum
A few versions ago, I was having quite a few occurrences of blank pages (plus header bar) when I would pick messages from the notification list. That is mostly gone now in 3.0.1. On the few occasions that it still happens, a page refresh seems to cause it to display properly.
Mario Vavti
  
On the few occasions that it still happens, a page refresh seems to cause it to display properly.

Sometimes we fail to fetch the thread or post via ajax. I also see this occasionaly but have not found out yet why...
Can't see all posts from !support in my hub

paulfree14
  
When I'm viewing the !Hubzilla Support Forum channel from my hub it is missing a couple of posts.
When I view the support forum from gravizot I can see all.
...the problem I have with is that from there I can't use the function 'save to folder' or 'community hashtag'.

(it looks as just the posts from the last couple of hours are missing. Will see if they arrive tomorrow)
Hubzilla Support Forum
  
The problem is probably a new clone. This is not very powerful. I remove it again.
paulfree14
 
* also the comments you both made aren't visable from viewing this post from my home hub.
Camron Bickford
  
Yes I have also noticed these delays. I'm not sure how it is with other hubz yet since sofar I've interacted mostly with the Gravizot forum.
Christian Vogeley
  
!Hubzilla Support Forum The new notification widget doesn't show up on my activity (network) page while it is available on the other pages. Is there a setting for that I am missing? It does work on gerzilla.de but not on my personal installation.
Mario Vavti
  
Pubstream notifications can be turned of in notification settings...
cb7f604332cf39
  
Thanks a lot!
Mario Vavti
  
You are welcome!
tonnerkiller
  last edited: Thu, 18 Jan 2018 09:56:15 +0100  
@Hubzilla Support Forum+
This in the browser address line:

https://username:password@hub.debenny.de/api/z/1.0/item/update?&body=foo

working like expected.

Now me trying to get the same result with an ajax call:

$.ajax({
url: 'https://'+username+":"+password+"@"+hub+'/api/z/1.0/item/update',
type: 'POST',
crossDomain: true,
data: {
body:foo
}
});


what do I miss to make the ajax work?

Failing miserably. Bear with me, I'm only beginning with Javascript... Here's a link to the corresponding codepen:
https://codepen.io/tonnerkiller/pen/dJeJRX?editors=1111
tonnerkiller
  
Thank you Mike for your continuing help for a beginner. Please bear with me:

Call me stupid, I can't get this to work:

See the Pen Hubzilla API Call (not yet working) by Benjamin Koppe (@tonnerkiller) on CodePen.

I tried different variations, put username and password into the url, put the url into the form element to the method property etc (actually that at least got me 'deleted empty item' notifications on hubzilla...). I tried $.post with only the url string as argument, adding ?&body=foo at the end...
The nice thing about Javascript is,I don't know how to get comprehensible error codes out of it... There must be one stupid mistake in my code I don't see...
tonnerkiller
  last edited: Sat, 20 Jan 2018 00:39:43 +0100  
I got it working with html form alone, setting action to the api Link and method to post...

But the $.post() inside the click event listener on the button seems to not execute. At least I get so such report from the network analyser in my Firefox developer tools...
tonnerkiller
  
Adding event.preventDefault(); first in the event handler function got me so far, that the ".post was actually executed afterwards. But I got several errors, depending on what I do.

I get a blocking error due to the same-origin-policy.
I get a 401 unauthorized status, supposingly for not giving username and password.
I can get around the same origin thing withthe proxy cors-anywhere.herokuapp.com for the moment. This will be left for later to deal with.
I find it strange that neither of these errors seem to come up if I use plain html form.

Ah, and if I give login credentials either in the url or by adding username and password attributes to the settings object of the $.post() call, the call isn't even executed...
Mike Macgirvin
 High Range, Australia 
!Hubzilla Support Forum A reminder that you should now be able to access most Hubzilla forums with !forumname. This has been in place for several months and will be much more compatible with other federated systems.
tonnerkiller
  
Forum is the channel where one of the forum-categories was picked under channels/settings? I remember there having been more fine-grained settings, but I can't find them any more. Maybe they only remain for single connection definitions...
Mike Macgirvin
  
This choice is usually made when you create a channel (What kind of channel would you like to create?), but you can also change it in your channel settings. See "Security and Privacy Settings".  If you would like to create an additional channel for the purpose of running a forum or some other kind of thing (celebrity or small business page, newsfeed, whatever), see 'Channel Manager' from the dropdown menu with your picture in the top bar. Then select 'Create New'.
tonnerkiller
  
Thank you.
Sean Tilley
 San Francisco, CA (Map) 
@Hubzilla Support Forum+ What's the best way to modify the Avatar and Name field on a remote channel feed connection? I wanted to set up some small bots that pull streams from Github and other sources, but for organizational branding purposes, I'd like to make sure that the name and picture lines up in a way that makes sense. For example, if I'm creating a channel for Github commits, currently it just uses the top-level picture.
Mike Macgirvin
  last edited: Thu, 18 Jan 2018 03:05:26 +0100  
There's no simple way to do this at the moment. You can change the name in the xchan table (xchan_name). This would also be the place to change the photo, except that finding the correct photo for a feed and then importing it  and updating the xchan record is a somewhat complicated process.

Here's how. create a file named mod/test.php (after creating the mod directory).


<?php

require_once('include/photo/photo_driver.php');

function test_content ($a) {

  $hash = 'xyz123abc'; // xchan.xchan_hash of the feed connection
  $url = 'https://some.image.url';

   $photos = import_xchan_photo($url,$hash);
   $r = q("update xchan set xchan_photo_date = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_mimetype = '%s' where xchan_hash = '%s'",
        dbesc(datetime_convert()),
        dbesc($photos[0]),
        dbesc($photos[1]),
        dbesc($photos[2]),
        dbesc($photos[3]),
        dbesc($hash)
    );
}


-------

Once you edit the hash and url and save the file, visit yoursite/test (once only). Then remove or disable the file somehow so others cannot access it.

[edit: you might also edit xchan_name_date and set it to anything more recent than it is currently set to. This will trigger other sites to discover that it changed. ]
Sean Tilley
 San Francisco, CA (Map) 
@Hubzilla Support Forum+ I'm setting up a new hub, and trying to remember one last thing that I haven't had to worry about in a while - sending emails! Specifically, verification emails for accounts.

What's the general best practice with setting up a PHP email-sending library with a Hubzilla installation?
Mike Macgirvin
  
MTAs can get incredibly complicated. I'd probably recommend starting with

apt-get install postfix

and choose 'internet site', unless somebody else has a simpler setup. nullmailer is also dead simple but requires an external smarthost iirc. Exim will make you pull your hair out, especially running under a debian/ubuntu distro. I cut my teeth on the original sendmail and was one of the few people that could write configuration rules for that beast, but it is getting really old and I don't think I would recommend it any more.
Sean Tilley
  
Cool, postfix sounds good enough for me. I'm already part-way through a guide and have a little more fiddling to do before it works.
Mario Vavti
  
msmtp - ArchWiki
msmtp is a very simple and easy to use SMTP client with fairly complete sendmail compatibility. Install the msmtp package. Additionally, install msmtp-mta, which creates a sendmail alias to msmtp. The following is an example of a msmtp configuration (the file is based on the per-user example file located at /usr/share/doc/msmtp/msmtprc-user.example...
Help after install - permissions 777 danger

Camron Bickford
  last edited: Thu, 18 Jan 2018 21:21:52 +0100  
@Hubzilla Support Forum+ During the Hubzilla install the instructions are to "chmod -R 777 store". I do have sufficient
privilege to change this to something better, but I guess I don't have sufficient knowledge to make these directories writeable
only by the webserver. I'm on a Ubuntu16 vps.

Current Properties for the "store" folder are:
owner: root
access: read & write
group: www-data
access: read & write
others: read & write


I really don't want to mess things up playing with things I don't understand.

Should I
sudo chown -R www-data /var/www/
and then
chmod -R 755 /var/www/

(my wordpress also isn't able to install plugins, so I'm thinking the whole server needs permission changes instead of just the Hubzilla directory)
paulfree14
  
Alexandre Hannud Abdo
  
Yeah, usually you want the webserver (www-data) to have read permission to everything.

In the case of WordPress, for auto-updates to work, write permission as well.

For Hubzilla the webserver needs write permissions at least to the /store folder if I recall correctly. The rest can remain read-only.

I personally prefer to keep the files owned by root (or my user), with full access, then have www-data as the group for all files, and give group read/write permissions as needed.
Camron Bickford
 
Thank you both! My Hubzilla is now more secure and my Wordpress can do auto-updates again. Couldn't ask for more. :)
someone can't post into a forum

paulfree14
  
@Hubzilla Support Forum+
I've just setted up a forum for the german speaking new commers under @neu hier (*Willkommen*)

I've now seen a new person that posted into the forum, but their post isn't visable in the forum.
This person is connected to the "channel". And in the settings the channel is choosen to be "forum - mostly public"
I have also tested it by myself, and it worked.
Here's the last post of them:
https://hub.libranet.de/display/2c0c36b09ab92dcf072811e293b39c78790702e665047089165cc0d7c6130d15@mint-n-er.de
 forum
paulfree14
 
* this problem solved itself through just waiting around 24h. Now it works and all older posts are visable in the forum
mrjive
 Map 
@Hubzilla Support Forum+

my usual disaster. I played with branches in my hub and now I have broken the toy.

Situation: hub on dreamhost cloned via git from my github for of hubzilla.
What I did: git checkout dev; git pull; {{some stuff I cant remember}}; git chekout master
Result:  git checkout master
CHANGELOG: needs merge
Zotlabs/Lib/Enotify.php: needs merge
Zotlabs/Module/Owa.php: needs merge
Zotlabs/Module/Ping.php: needs merge
Zotlabs/Module/Wfinger.php: needs merge
Zotlabs/Storage/File.php: needs merge
boot.php: needs merge
include/contact_widgets.php: needs merge
include/photos.php: needs merge
util/hmessages.po: needs merge
vendor/composer/autoload_classmap.php: needs merge
vendor/composer/autoload_static.php: needs merge
view/css/bootstrap-red.css: needs merge
view/de: needs merge
view/es-es/hmessages.po: needs merge
view/es-es/hstrings.php: needs merge
view/js/main.js: needs merge
view/theme/redbasic/css/style.css: needs merge
view/theme/redbasic/js/redbasic.js: needs merge
view/theme/redbasic/schema/dark.css: needs merge
view/tpl/notifications_widget.tpl: needs merge

I'm stuck. Luckily I have this clone :)
Any help appreciated. Or is it the time to start it all again?
mrjive
  
At this point I suppose you don't jump between branches, unless you are a monkey ;)
Mario Vavti
  
At the moment there is no big (breaking) difference between master and dev branch. It can be though...
mrjive
  
So what I did it's all based on my superpowers. Good to know.
mrjive
 Map 
@Hubzilla Support Forum+

When I visiti /chess/new I get this error:


Warning: strlen() expects parameter 1 to be string, array given in /home/hubjive/hub.mrjive.eu/www/include/text.php on line 2918

Warning: strlen() expects parameter 1 to be string, array given in /home/hubjive/hub.mrjive.eu/www/include/text.php on line 2918

Warning: Cannot modify header information - headers already sent by (output started at /home/hubjive/hub.mrjive.eu/www/include/text.php:2918) in /home/hubjive/hub.mrjive.eu/www/boot.php on line 2271

Warning: Cannot modify header information - headers already sent by (output started at /home/hubjive/hub.mrjive.eu/www/include/text.php:2918) in /home/hubjive/hub.mrjive.eu/www/boot.php on line 2276

Warning: Cannot modify header information - headers already sent by (output started at /home/hubjive/hub.mrjive.eu/www/include/text.php:2918) in /home/hubjive/hub.mrjive.eu/www/boot.php on line 2279

My hub runs on dreamhost with php7

Any idea?
Thank you
Mario Vavti
  
should be #fixed in dev
feature idea: ability to mark unsolved questions as unsolved

paulfree14
  last edited: Thu, 18 Jan 2018 14:58:08 +0100  
@Hubzilla Support Forum+
From time to time I scroll through the support channel to see  if there are some questions I would be able to answer

Most of the time I scroll through I only see already answerd once.
And so I came to the idea that following feature could be great for forums in general:

The ability to mark posts as a question and to also mark them 'solved' as soon they are.

This could help to let one only view 'unsolved' or 'unanswerd' to not miss to give them support.
Also one wouldn't need to read through the answers to see if a question got solved or not.
paulfree14
  
Camron Bickford
  
@paulfree14 I don't see an option to view all the not solved questions on desktop either. That would be important though.
links to external pages get zotified

paulfree14
  
@Hubzilla Support Forum+
I've got an issue/ or a feature, that others seem to not be able to reproduce.

Nearly every link that apears in my streamline while being loged in as paulfree14 in hub.libranet.de creates a 'zot link'.
The problem I have with is that every external page that I view from clicking on a link via hubzilla would be able to track me way to easy.

I have tried that via another account on the same hub, there it doesn't 'zotify' the links to external pages.

So that might mean there's a bug, or I've enabled by myself something in settings that I actually don't want xD.

see also:

https://hub.libranet.de/channel/paulfree14/?f=&mid=9499239664871c410b48edb06d149ae23759858df921004f309f8e572a5ba128@hub.libranet.de&zid=paulfree14%40hub.libranet.de




https://hub.libranet.de/channel/paulfree14/?f=&mid=9499239664871c410b48edb06d149ae23759858df921004f309f8e572a5ba128@hub.libranet.de&zid=paulfree14%40hub.libranet.de

Mike Macgirvin
  last edited: Wed, 17 Jan 2018 06:48:55 +0100  
Since this is a really weird bug with bizarre behaviour that should never happen, and since we do have a plugin which can potentially cause this behaviour; I would suggest a sanity check.

Paul only. Everybody else ignore these instructions. Please visit https://gravizot.de/pconfig/feature and see if you can see the word 'sendzid' anywhere on the page.

You are now in the land of sleeping code dragons and you can completely destroy your channel if you do something wrong and wake one of them up.

If you don't see the word 'sendzid' anywhere, great. Close that page from your browser and forget you ever saw it.

*** Do not proceed to the next step if you do not see the word 'sendzid' in any of the entries on that page. ***

If you **do** see the word 'sendzid on the above page, please visit

https://gravizot.de/pconfig/feature/sendzid

If the value shown in the textbox is anything but  the number 0, set the value to the number 0 and submit. Even if it is blank, change it to the number 0, just in case the shown value is actually an invisible space character.  After doing this, wait for the page to refresh and verify that the entry was changed to the number 0. Then close the page from your browser and forget you ever saw it. Let the dragons go back to sleep.
paulfree14
  
>Let the dragons go back to sleep.

xD

Indeed there was sendzid and it was at 1.
I changed it to 0.

I've checked some links. None has those zot links anymore. :)
So that problem seem to be solved.
Just strange that this feature was there in the first place.
Mike Macgirvin
  last edited: Wed, 17 Jan 2018 20:28:42 +0100  
I'm guessing that this was turned on originally in a clone which had that plugin enabled. I'll put on my to-do list that it shouldn't do anything on sites which don't have the plugin installed, regardless of the setting.
Private forum

kris
  last edited: Mon, 15 Jan 2018 21:35:32 +0100  
@Hubzilla Support Forum+

I created a private forum but I have something strange.
I logued as forum and add some contact for invitation. But with my contact I have the message
Channel was deleted and no longer exists.
I connot add my other channel.

If I go to my channel.  I can add the forum

But on the forum side I don't receive any notification and I still don't see that contact.

I forget to say that the version is 3.01 that means I updated yesterday
kris
  
Channel deleted is 0001-01-01 00:00:00 that is ok
channel_moved is nothng (empty)
channel_removed 0
Mike Macgirvin
  
Have just examined, and the deleted indication is coming from the xchan table [xchan_deleted], indicating the channel was deleted elsewhere on the network.
kris
  last edited: Thu, 18 Jan 2018 14:40:06 +0100  
I search with xchan_addr and yes I have xchan_deleted = 1
I put it to 0 and yes now it works. Thank you Mike

---

I don't remember the exact history.
I had a channel on hub A
I clone it to hub B
Then I don't remember if I I delete from /locs  or not
then I delete the channel on the hub A
and I continue using it from the hubB
Adam Robertson
 Copperopolis, California last edited: Thu, 18 Jan 2018 10:43:19 +0100  
@Hubzilla Support Forum+

Is it possible to set Hubzilla to use SMTP to send its mail rather than phpmail?
 mail
Camron Bickford
 
Poor mike ;) He gives awesome support though.
paulfree14
  
paulfree14 tagged Adam Robertson's post with ⋕mail
kris
  
That would be good to keep that somewhere. In the documentation
tyler
 last edited: Thu, 18 Jan 2018 10:43:16 +0100  
Do you take all your channels with you when you 'go nomad' across servers, or is it just a single channel?
mrjive
  
more seriously, maybe because the source HUB knows what are your channels and (I guess) HUB-B doesn't.
Mike Macgirvin
  
Unless there's an API call on HUB-A that lists and/or exports all your channels.
mrjive
  
Ok. :)
Noob questions

Camron Bickford
 
Hubzilla seems great. I love the nomadic identities and cross platform communications.
I have some basic questions as a noob. Please humor me :)

1: Posts and comments
Does a hub periodically fetch posts&comments from the channels it follows or are new posts&comments periodically sent from every hub to it's followers?
In other words: does following work more like RSS or like a mailing list?

2: Speaking of RSS,
I can't find how to follow a user via RSS instead of using Hubzilla. Is it possible to get RSS feeds from Hubzilla?

3: Tor Usage.
I imagine setting up a hubzilla network that federates only on Tor wouldn't be too hard. I'm thinking a sort of hybrid node that can communicate with hubz on Tor and the regular internet can be done with some tweeks. Is there any existing documentation on this other than the mention in the roadmap?
https://project.hubzilla.org/wiki/hubzilla/Hubzilla%2BProject/Project%2BRoadmap

4: Distribution - censorship resistance: Example scenario:
User A and B both follow user C and user A and B are connected
-> User A's hub goes offline for some days or weeks.
-> During this time User C's hub goes permanently offline (he died, lost his keys, was censored etc.)
-> User A's hub comes back online after some technical difficulties.
Would user A be able to get the posts from user C that user B still has on his hub?
cb7f604332cf39
  
@Mike
regarding point 3. Tor usage/connectivity:
I tested a bit with the general proxy settings.
All we need for a first step is something I would call it "a low level router" that routes only .onion addresses to a special proxy.
There's no need for a multihomed server.

When I send all traffic with the general proxy settings to polipo some RSS feeds won't work anymore, cause they don't like tor exit routers. They're protected by some CDNs.

Image/photo
Camron Bickford
  
@Mike Thanks. That does seem to make sense since privacy settings are a main part of Hubzilla. I generally like the idea of having a backup servable by my peers incase my server goes down. IPFS is a nice tool for this. I guess one can always make an IPFS clone of one's latest posts just incase.

@cb7f604332cf39 Very cool. Looks much easier than I thought. with your approach we can have hybrids that communicate with both onion and regular net. I'm thinking communication between onion-only and regular-net channels could even happen in forums that are hosted on hybrid hubz.
could you please tell me in more detail where to find the Hubzilla proxy settings and what your settings were exactly. Were there any special requirements while setting up the hidden hub?
cb7f604332cf39
  
To setup a Hubzilla server as a hidden service is a different story. You have for example to disable sending out email (or you have to ensure that your mail server acts also as a hidden service using the socks interface). There are some hidden and not documented switches inside. Actually I don't know if they're still working, cause they're not in focus of the development.

Right now there's no "low level router". That need a few lines of code. You can forward all traffic to one general proxy.
You may find the general proxy settings >> Admin >> Site >> at the end of the page.
Trying to comment on Gravizot posts

Camron Bickford
  
@Hubzilla Support Forum+ Hi. Thanks to the Hubzilla 3.0.1 Bugfix Release I am able to authenticate on the Gravizot.de site again with my hub. However I'm still not able to post from the Gravizot site or comment on other posts there. My hub shows that we are connected, but I'm guessing there might still be some mix ups with since I've had a few test accounts and tried to reconnect multiple times in the last week.

Any recommendations on what I should do?

Image/photo
Alex
 Coruscant 
I have corrected your permissions on support@gravizot.de.
Please test again.
Alexandre Hannud Abdo
  
It might be that you just don't have permission. Did you check your permissions in the connection edit page, under "Individual permissions"?
Camron Bickford
 
Yes. I can post and comment now. Only issue left is that my hub isn't showing any post from Gravizot at the forum link (https://hubzilla.odat.xyz/network?f=&pf=1&cid=36) but maybe it just needs to catch up now.