Tribe Support

In this group #Anahita Tribe members provide support and help each other out. All posts should be public in this group. #support

Stories

Rastin Mehr

Rastin Mehr commented on the topic

Mobile App

Hello, I am looking for a resource/documentation that provides directions on how to use Anahita to create a mobile app with a social networking feature. #MobileApps

Hi Beenish, the main resource is right here. You can build mobile apps using technologies of your choice and use Anahita as the back-end API.

We're developing the Anahita-React app which has examples of basic end ... Read More
Hi Beenish, the main resource is right here. You can build mobile apps using technologies of your choice and use Anahita as the back-end API.

We're developing the Anahita-React app which has examples of basic end points for authentication and managing actor profiles. https://github.com/anahitasocial/anahita-react

https://github.com/anahitasocial/anahita-react/tree/master/src/api

A lot of concepts are similar to mobile apps developed in React Native or Swift.

Otherwise you can post your questions here and there is always someone to answer them for you. Read Less

Beenish Chaudhry started a topic

Mobile App

Hello, I am looking for a resource/documentation that provides directions on how to use Anahita to create a mobile app with a social networking feature. #MobileApps

Rastin Mehr

Rastin Mehr shared a note

Has anybody upgraded their #Anahita installations to the latest 4.4.0 Birth release? If you've had any issues, please start a topic so we can help you. #support
Rastin Mehr

Rastin Mehr shared a note

Looks like there is an issue in the video player's styling in the most recent package. It is a known issue and we're going to fix it.
Rastin Mehr

Rastin Mehr shared a note

A new maintenance release is on the way to fix issues in Anahita working with php 7.2.8. There will be another maintenance release after that to make Anahita compliant with MySql 5.7

George Nicolae and 2 others commented on the topic

Nginx rewrite issue

Got Anahita succesfully installed on a second attempt. Forgot to point my domain to the installation directory. Did that too and when i thought that was it, bumped in the Nginx rewrite issue. I get...

Read More

Got Anahita succesfully installed on a second attempt. Forgot to point my domain to the installation directory. Did that too and when i thought that was it, bumped in the Nginx rewrite issue. I get the homepage but no styling attached to it and 404 not found on any other page.

I really like to get it working and I have no clue to solve this.

Read Less
George Nicolae
September 07 2018 Permalink
An Nginx config file from someone who installed Anahita would also help. I feel bad that I managed to install it and I'm out of luck to use it.
Nick Swinford
Nick Swinford
September 07 2018 Permalink
@Rastin, getAnahita.com is running on Nginx right? I don't have any experience with it.
Rastin Mehr
Rastin Mehr
September 07 2018 Permalink
Yes, we're using Nginx. My first suspicion here is directory permissions. Anahita is trying to recreate a new js and css files but doesn't have the right directory permission. Could you try setting all directory permi... Read More
Yes, we're using Nginx. My first suspicion here is directory permissions. Anahita is trying to recreate a new js and css files but doesn't have the right directory permission. Could you try setting all directory permissions to 755? Read Less
George Nicolae
September 07 2018 Permalink
@Rastin added
try_files $uri $uri/;
rewrite ^(.*)$ /index.php?p=$1 last;
to that config file under location, and from the plain HTML and no CSS or JS I got to the point where at last en-GB.lib_anahita.js an... Read More
@Rastin added
try_files $uri $uri/;
rewrite ^(.*)$ /index.php?p=$1 last;
to that config file under location, and from the plain HTML and no CSS or JS I got to the point where at last en-GB.lib_anahita.js and site.js were loaded in the footer( only on front page) and the register form worked to register my admin account. Nothing more. Read Less
Rastin Mehr
Rastin Mehr
September 07 2018 Permalink
Does this example help?
Loading ...
George Nicolae
September 07 2018 Permalink
I guess around that I should work. Unfortunatelly same thing.

But now triyng to open in browser the adress of the shiraz/css/style1/style.css gets me "{"code":500,"message":"Component com_templates not found"}" in... Read More
I guess around that I should work. Unfortunatelly same thing.

But now triyng to open in browser the adress of the shiraz/css/style1/style.css gets me "{"code":500,"message":"Component com_templates not found"}" instead of: 404, not found.

And the page source when logged in starts with div class=row
With no header at all. Read Less
Rastin Mehr
Rastin Mehr
September 07 2018 Permalink
Alright, can you set the error reporting to maximum in your php config file and $error_reporting = '30719' in anahita configuration.php file. The idea is to get a meaningful error. It's possible that a php extensions ... Read More
Alright, can you set the error reporting to maximum in your php config file and $error_reporting = '30719' in anahita configuration.php file. The idea is to get a meaningful error. It's possible that a php extensions isn't installed on your server. Read Less
George Nicolae
September 07 2018 Permalink
Actually every file I open from the page source gets me the 500 error. For site.js is: component com_media not found.


Enabling error reporting I get:
Warning: file_put_contents(/home/admin/web/my-website/public_... Read More
Actually every file I open from the page source gets me the 500 error. For site.js is: component com_media not found.


Enabling error reporting I get:
Warning: file_put_contents(/home/admin/web/my-website/public_html/myproject/www/cache/site.js.0c5af962301f4bbd48db55face48c4b9): failed to open stream: Permission denied in /home/admin/web/my-website/public_html/myproject/src/libraries/default/base/template/helper/javascript/file.php on line 119 Read Less
Rastin Mehr
Rastin Mehr
September 07 2018 Permalink
chmod 755 www/cache perhaps?
Rastin Mehr
Rastin Mehr
September 07 2018 Permalink
or

find www -type d -exec chmod 755 {} \;

in the root directory where Anahita is installed. Also your website root is the www directory not the one above. You probably know that already, but I wanted to point i... Read More
or

find www -type d -exec chmod 755 {} \;

in the root directory where Anahita is installed. Also your website root is the www directory not the one above. You probably know that already, but I wanted to point it out. Read Less
Nick Swinford

Nick Swinford and George Nicolae commented on the topic

Nginx rewrite issue

Got Anahita succesfully installed on a second attempt. Forgot to point my domain to the installation directory. Did that too and when i thought that was it, bumped in the Nginx rewrite issue. I get...

Read More

Got Anahita succesfully installed on a second attempt. Forgot to point my domain to the installation directory. Did that too and when i thought that was it, bumped in the Nginx rewrite issue. I get the homepage but no styling attached to it and 404 not found on any other page.

I really like to get it working and I have no clue to solve this.

Read Less
Nick Swinford
Nick Swinford
September 06 2018 Permalink
Those two errors wouldn't cause this issue. You can generally still run Anahita without any issues with them.

Can you check your php error log and see if there's anything in there?

Yeah, your nginx file might help.
George Nicolae
September 06 2018 Permalink
The most errors I see in the log look like this

2018/09/05 15:09:05 [error] 13309#13309: *1 open() "/home/admin/web/mysite/public_html/myproject/www/templates/shiraz/css/style1/style.css" failed (13: Permission de... Read More
The most errors I see in the log look like this

2018/09/05 15:09:05 [error] 13309#13309: *1 open() "/home/admin/web/mysite/public_html/myproject/www/templates/shiraz/css/style1/style.css" failed (13: Permission denied), client: **.**.**.***, server: mysite, request: "GET /templates/shiraz/css/style1/style.css HTTP/1.1", host: "mysite", referrer: "http ://mysite/" Read Less
George Nicolae
September 06 2018 Permalink
This is my nginx config part minus the header with server directives:

location / {

location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
}

location ~... Read More
This is my nginx config part minus the header with server directives:

location / {

location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
}

location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}

fastcgi_pass 127.0.0.1:9002;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}

error_page 403 /error/404.html;
error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html;

location /error/ {
alias /home/admin/web/mywebsite/document_errors/;
}

location ~* "/\.(htaccess|htpasswd)$" {
deny all;
return 404;
} Read Less
Nick Swinford

Nick Swinford and George Nicolae commented on the topic

Nginx rewrite issue

Got Anahita succesfully installed on a second attempt. Forgot to point my domain to the installation directory. Did that too and when i thought that was it, bumped in the Nginx rewrite issue. I get...

Read More

Got Anahita succesfully installed on a second attempt. Forgot to point my domain to the installation directory. Did that too and when i thought that was it, bumped in the Nginx rewrite issue. I get the homepage but no styling attached to it and 404 not found on any other page.

I really like to get it working and I have no clue to solve this.

Read Less
Nick Swinford
Nick Swinford
September 05 2018 Permalink
In your configuration.php file set $debug to 1 and $error_reporting to E_ALL and see what errors you get.
Rastin Mehr liked this
George Nicolae
September 05 2018 Permalink
This is what I get:

Warning: file_put_contents(/home/admin/web/mywebsite/public_html/myproject/www/cache/site.js.0c5af962301f4bbd48db55face48c4b9): failed to open stream: Permission denied in /home/admin/web/myweb... Read More
This is what I get:

Warning: file_put_contents(/home/admin/web/mywebsite/public_html/myproject/www/cache/site.js.0c5af962301f4bbd48db55face48c4b9): failed to open stream: Permission denied in /home/admin/web/mywebsite/public_html/myproject/src/libraries/default/base/template/helper/javascript/file.php on line 119 Read Less
George Nicolae
September 05 2018 Permalink
Maybe I should post the content of my Nginx file? I got this kind of problem with wordpress too but using vestacp on top I just selected the Nginx template for wordpress rewrite

George Nicolae started a topic

Nginx rewrite issue

Got Anahita succesfully installed on a second attempt. Forgot to point my domain to the installation directory. Did that too and when i thought that was it, bumped in the Nginx rewrite issue. I get...

Read More

Got Anahita succesfully installed on a second attempt. Forgot to point my domain to the installation directory. Did that too and when i thought that was it, bumped in the Nginx rewrite issue. I get the homepage but no styling attached to it and 404 not found on any other page.

I really like to get it working and I have no clue to solve this.

Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Anahita API documentation support

Hi @rastin

Our team will most likely make the first version of our Anahita mobile app using Xamarin because we're using visual studio and for the sake of early-stage efficiency. Do you happen to ...

Read More

Hi @rastin

Our team will most likely make the first version of our Anahita mobile app using Xamarin because we're using visual studio and for the sake of early-stage efficiency. Do you happen to have any primers or guidance on what APIs we can use with Anahita out of the box? I remember several years ago there was https://www.getanahita.com/api - the link has been removed.Any help or guidance would be greatly appreciated!! :-)

Read Less
Rastin Mehr
Rastin Mehr
August 27 2018 Permalink
That link is outdated and the best way is reading the code and looking at the apps as examples anyway. You can post your questions here or contact me for private consulting.

You can see some of the examples of api... Read More
That link is outdated and the best way is reading the code and looking at the apps as examples anyway. You can post your questions here or contact me for private consulting.

You can see some of the examples of api endpoints here: https://github.com/anahitasocial/anahita-react/tree/master/src/api

Make sure you've got your CORS setup done correctly. I'll post some updates about the direction we are heading to this week which you may find useful. Basically the React App will be the client app and the Anahita php code will be reduced to APIs only. This way one back-end can be used with mobile, web, or desktop apps. Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Twitter connect issue

Hi everyone, 

I've been trying to set up twitter connect for my anahita app - and for some reason I can't seem to get it to work. My steps:

(1) Set up a new app under twitter dev: https://apps.twi...

Read More

Hi everyone, 

I've been trying to set up twitter connect for my anahita app - and for some reason I can't seem to get it to work. My steps:

(1) Set up a new app under twitter dev: https://apps.twitter.com/app/

(2) In the 'Connect' app in Anahita add the twitter consumer key (api key) and consumer secret key and enable the connect plugins

(3) I added Callback URLs in twitter under the app (based on the read-only examples) in the 'Connect app'

When i try to enable it i get an null error - ( ! ) Notice: Trying to get property of non-object in C:\wamp64\www\hwarp-app-prod\packages\Connect\src\components\com_connect\oauths\services\abstract.php on line 299Any help or ideas would be greatly appreciated. I may be using the wrong call-back URLs? Read Less
Have you added callback urls with localhost or whatever your local WAMP is using? I've noticed that OAuth doesn't play nice if you are hosting Anahita on a subdirectory so make sure Anahita is accessed via localhost d... Read More
Have you added callback urls with localhost or whatever your local WAMP is using? I've noticed that OAuth doesn't play nice if you are hosting Anahita on a subdirectory so make sure Anahita is accessed via localhost directly.

Good idea about subscription app. You can host it on Github and distribute it using composer. Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Twitter connect issue

Hi everyone, 

I've been trying to set up twitter connect for my anahita app - and for some reason I can't seem to get it to work. My steps:

(1) Set up a new app under twitter dev: https://apps.twi...

Read More

Hi everyone, 

I've been trying to set up twitter connect for my anahita app - and for some reason I can't seem to get it to work. My steps:

(1) Set up a new app under twitter dev: https://apps.twitter.com/app/

(2) In the 'Connect' app in Anahita add the twitter consumer key (api key) and consumer secret key and enable the connect plugins

(3) I added Callback URLs in twitter under the app (based on the read-only examples) in the 'Connect app'

When i try to enable it i get an null error - ( ! ) Notice: Trying to get property of non-object in C:\wamp64\www\hwarp-app-prod\packages\Connect\src\components\com_connect\oauths\services\abstract.php on line 299Any help or ideas would be greatly appreciated. I may be using the wrong call-back URLs? Read Less
Can you inspect the request in your browser to see what happens when you click on the enable button?
Inspect > Network tab in Chrome
Could you turn use mod_write to Yes in the Site Settings so it'd remove the index.php from the url? I know OAuth services are quite picky about the urls passed on to them.
When you enable Twitter, it obtains an access token from twitter and stores it in Anahita for the viewer. The access token is later used as a way for twitter to recognize the requests as valid. Looks like Twitter is r... Read More
When you enable Twitter, it obtains an access token from twitter and stores it in Anahita for the viewer. The access token is later used as a way for twitter to recognize the requests as valid. Looks like Twitter is refusing to give you an access token. Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Twitter connect issue

Hi everyone, 

I've been trying to set up twitter connect for my anahita app - and for some reason I can't seem to get it to work. My steps:

(1) Set up a new app under twitter dev: https://apps.twi...

Read More

Hi everyone, 

I've been trying to set up twitter connect for my anahita app - and for some reason I can't seem to get it to work. My steps:

(1) Set up a new app under twitter dev: https://apps.twitter.com/app/

(2) In the 'Connect' app in Anahita add the twitter consumer key (api key) and consumer secret key and enable the connect plugins

(3) I added Callback URLs in twitter under the app (based on the read-only examples) in the 'Connect app'

When i try to enable it i get an null error - ( ! ) Notice: Trying to get property of non-object in C:\wamp64\www\hwarp-app-prod\packages\Connect\src\components\com_connect\oauths\services\abstract.php on line 299Any help or ideas would be greatly appreciated. I may be using the wrong call-back URLs? Read Less
Is there a way to get an error message either from Anahita or Twitter?
Rastin Mehr

Rastin Mehr commented on the topic

Extending com_groups question

Hi @rastin et all, 

I have a question about extending groups without changes the core of anahita. 

In \components\com_groups\domains\entities\component.php there is:

class ComGroupsDomainEntityCompo...

Read More

Hi @rastin et all, 

I have a question about extending groups without changes the core of anahita. 

In \components\com_groups\domains\entities\component.php there is:

class ComGroupsDomainEntityComponent extends ComActorsDomainEntityComponent

How would I create a custom component that extends ComGroupsDomainEntityComponent and associates an actor ID (of type person) to an actor ID (of type organization)?

Read Less
Extend com_actors instead. com_groups is an app. It is meant to be a dispatchable component and final. com_actors however, is a base component and is meant to be extended. Use com_groups as a blueprint for your new ac... Read More
Extend com_actors instead. com_groups is an app. It is meant to be a dispatchable component and final. com_actors however, is a base component and is meant to be extended. Use com_groups as a blueprint for your new actors component.

What is the nature of person to actor association in your case? Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Anahita rookie looking for some guidance

Hey @rastin et all, I'm in the process of using #anahita to help me experiment with a few specific use-cases around building better retail health experiences. The goal is to let health organizatio...

Read More

Hey @rastin et all, I'm in the process of using #anahita to help me experiment with a few specific use-cases around building better retail health experiences. The goal is to let health organizations have their own personalized/branded anahita experience based on specific actor IDs that are of type organization. Health consumers can follow or be invited to these organizations. These organizations commonly do onsite health-related workshops, typically have paying monthly members and they want to extend their interactions and engage with their members outside of their facility. Health consumers will be able to build their own health interest graph (ie. social graph) and follow other things of interest like people, topics, etc (see similar experience: https://medium.com/me/following/suggestions). Organizations will have their own apps that they will be able to enable/disable based on their needs. Health consumers will have the same. 

Two questions:

(1) need advice on how an organization can be it's own entity within anahita. As an example, one goal would be to enable these organizations to run onsite workshops but have the ability to engage members online before and after the workshop in a custom group and extend their relationships, promote upcoming workshops and keep an ongoing line of communication with customers.  

(2) What would be the best way to allow health consumers to have a unique actor entity that enables us to hyper-personalize their experience (based on that aforementioned interest graph) 

Even a high-level system suggestion would be a appreciated!

Read Less
1. organizations are custom actors. How they are customized depends on the function and purpose of organization. For example: does an organization publish content for mental health, cancer patients, or cardiac health?... Read More
1. organizations are custom actors. How they are customized depends on the function and purpose of organization. For example: does an organization publish content for mental health, cancer patients, or cardiac health? Do they provide a support line? Do they conduct surveys, organize events, seminars, etc.? Then build the tools they need to empower them. We will need organization actors who can create their own events and groups. That requires some modifications in the core code and we can collaborate with you on those perhaps. Those are enhancements that we want to have in Anahita actors architecture.

2. If by hyper-personalization you mean a recommendation engine, you are going to need enough nodes and graphs for the recommendations to be statically viable. By that I mean at least tens of thousands of users and 50~100 organizations who are active. Then you can build a recommendation engine that runs an algorithm and provides suggestions. For a newly launched network, a good option is to have a simple recommendation app that helps new users follow some initial actors. The algorithm can check with existing parameters such as actors recommended by you, hashtags, locations, or a curated list of actors. You'd still need to seed your network with a number of active actors, otherwise there would be nothing to recommend.

The most challenge startups have is reaching to the first 1000 and then 10,000 users who are engaged and active. One approach to make this happen is to build a network and service that provides a single utility or function that organizations want to provide and people need to access. Flickr and Instagram made it easy for people to upload and share photographs. OKCupid started as an online personality quiz services. Github is still mostly focused on the utility aspects of project management and code management even though they are technically a social network. Preferably build a service that doesn't rely on social features and focuses on connecting organizations and health consumers. A good start would be helping people find all the health related facilities nearby for counselling, mental health, cardiac health, nutrition, etc. and contact those organizations. Then you can work on enriching those services such as facilitating booking appointments, registering for workshops and seminars, accessing their publications, download and fill-out forms before showing up, scientific calculators, applying to volunteer, etc.

My point is, building a generic social network and expecting people to join and behave a certain way, isn't going to work. You need to build and customize to solve a specific problem and gradually edit (add and remove) apps and services as you observe and listen to users both consumers or organizations.

Did I answer your question? Read Less
2 people liked this
Whatever you build, please don't let your network to become a breeding ground of health and wellness alternative facts. It's your responsibility to help health consumers receive science and evidence based information.
Unknown Person liked this
Rastin Mehr

Rastin Mehr and Nick Swinford commented on the topic

Get all instances of an app

Topics used to have a page where you could view all of the topics for all of the nodes that someone was following, but it was removed.

How would I go about replicating that functionality? For my for...

Read More

Topics used to have a page where you could view all of the topics for all of the nodes that someone was following, but it was removed.

How would I go about replicating that functionality? For my forums component, I'm planning on changing things around so that forums can be added to actor nodes, but still want to incorporate those forums into a full forums listing.

I looked at the 2.2.3 code base on Github, but it looks like that was after the feature was removed. Is there any copies of the code left over from the SVN?

Read Less
I thought it was more like a listing of all the boards that topics used to have for all the topics app. I know that the boards were removed. Did it function the same way, just a leaders filter?
This is how it’s been all along. The topics are filtered by their owners which is the list of viewer’s leaders.
Nick Swinford liked this
Nick Swinford

Nick Swinford started a topic

Get all instances of an app

Topics used to have a page where you could view all of the topics for all of the nodes that someone was following, but it was removed.

How would I go about replicating that functionality? For my for...

Read More

Topics used to have a page where you could view all of the topics for all of the nodes that someone was following, but it was removed.

How would I go about replicating that functionality? For my forums component, I'm planning on changing things around so that forums can be added to actor nodes, but still want to incorporate those forums into a full forums listing.

I looked at the 2.2.3 code base on Github, but it looks like that was after the feature was removed. Is there any copies of the code left over from the SVN?

Read Less
Rastin Mehr

Rastin Mehr shared a note

We ask you to make all your questions publicly available in this group. Most questions posted here are of technical nature anyway. If you'd like to discuss business ideas or enjoy a bit of privacy ... Read More
We ask you to make all your questions publicly available in this group. Most questions posted here are of technical nature anyway. If you'd like to discuss business ideas or enjoy a bit of privacy you can follow the Lounge group which is created for this purpose. https://www.getanahita.com/groups/10951-the-lounge #networking #ideas #privacy #startup #lounge Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Bypassing default Anahita registration/authentication

Hello Rastin

We need some help with creation of users in our Anahita installation bypassing the default registration/authentication process.

Our users are currently created/authenticated by phone num...

Read More

Hello Rastin

We need some help with creation of users in our Anahita installation bypassing the default registration/authentication process.

Our users are currently created/authenticated by phone number only through Twilio authy two-factor authentication (https://www.twilio.com). 

The created/authenticated phone number + token are put into a Mongo DB table. 

We would like to create Anahita users using these "already-authenticated phone numbers," bypassing the native Anahita registration/authentication service.

What would you suggest?

Read Less
You need to somehow create Anahita sessions for the authenticated users so when they go to the Anahita installation, they are already logged in. I can't think of any detailed solution now, this requires some thought. ... Read More
You need to somehow create Anahita sessions for the authenticated users so when they go to the Anahita installation, they are already logged in. I can't think of any detailed solution now, this requires some thought.

You also need an Anahita user plugin that logs them out from both systems if users decided to logout from Anahita. An extreme example, you can custom develop com_people and place it as an app in the packages directory. Anahita will installing your custom com_people instead of linking the default one. I haven't tried this myself, but in theory it should work.

Moments like this I wish we had a fully functioning native OAuth producer/consumer in Anahita. It's already on the roadmap. Read Less
2 people liked this
Ildemaro  Martinez Jr

Ildemaro Martinez Jr started a topic

Bypassing default Anahita registration/authentication

Hello Rastin

We need some help with creation of users in our Anahita installation bypassing the default registration/authentication process.

Our users are currently created/authenticated by phone num...

Read More

Hello Rastin

We need some help with creation of users in our Anahita installation bypassing the default registration/authentication process.

Our users are currently created/authenticated by phone number only through Twilio authy two-factor authentication (https://www.twilio.com). 

The created/authenticated phone number + token are put into a Mongo DB table. 

We would like to create Anahita users using these "already-authenticated phone numbers," bypassing the native Anahita registration/authentication service.

What would you suggest?

Read Less

Photos View All

Articles View All

Topics View All

Powered by Anahita