Tribe Support

In this group #Anahita Tribe members provide support and help each other out. All the posts must be public on this group. #support

Stories

Rastin Mehr

Rastin Mehr and Gassen Niels commented on the topic

Cannot upload image

Hello,it's me again, working with rackspace.I managed to make everything work and install anahita. Then sign up using http://yoursite/index.php/people/signup (and not just http://yoursite/people/si... Read More
Hello,it's me again, working with rackspace.I managed to make everything work and install anahita. Then sign up using http://yoursite/index.php/people/signup (and not just http://yoursite/people/signup, because it was throwing a not found error). At first it seemed ok, but when I add an avatar, it does not work, I just have my name display in the place of the photo. I am running Ubuntu 14.04 LTS (PHP stack template); nginx 1.4.6; PHP 7.0.27-1; MySQL 5.6 and also installed OPcache and APCU.Did you already encounter this issue ? Thanks Niels

Read Less
Files are stored in the www/assets directory so system has to have write permissions for that directory otherwise Anahita won't be able to save any files in that directory.

That said, it is almost always better to... Read More
Files are stored in the www/assets directory so system has to have write permissions for that directory otherwise Anahita won't be able to save any files in that directory.

That said, it is almost always better to use an S3 bucket for storing files. Which region have you selected for your bucket. Is it outside US? Read Less
Hello, thanks for your answer.

My bucket is in Europe right now. I will try to create one in america.
You're welcome. That's probably the reason. Let me know if changing the location works.
Yep, it work with a California one !

Thanks again !
Rastin Mehr liked this
Gassen Niels

Gassen Niels commented on the topic

Cannot upload image

Hello,it's me again, working with rackspace.I managed to make everything work and install anahita. Then sign up using http://yoursite/index.php/people/signup (and not just http://yoursite/people/si... Read More
Hello,it's me again, working with rackspace.I managed to make everything work and install anahita. Then sign up using http://yoursite/index.php/people/signup (and not just http://yoursite/people/signup, because it was throwing a not found error). At first it seemed ok, but when I add an avatar, it does not work, I just have my name display in the place of the photo. I am running Ubuntu 14.04 LTS (PHP stack template); nginx 1.4.6; PHP 7.0.27-1; MySQL 5.6 and also installed OPcache and APCU.Did you already encounter this issue ? Thanks Niels

Read Less
I want to precise that in my amazon bucket, nothing has been upload.

And I have got this error:
PHP Warning: S3::putObject(): [InvalidRequest] The authorization mechanism you have provided is not supported. Pleas... Read More
I want to precise that in my amazon bucket, nothing has been upload.

And I have got this error:
PHP Warning: S3::putObject(): [InvalidRequest] The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256. in /var/www/vhosts/soyaspice.com/httpdocs/m/vendor/anahita/anahita/src/plugins/storage/s3lib.php on line 374

When disabling amazon plugin, i have got this one:
PHP Warning: mkdir(): Permission denied in /var/www/vhosts/soyaspice.com/httpdocs/m/vendor/anahita/anahita/src/plugins/storage/local.php on line 80 Read Less
Gassen Niels

Gassen Niels started a topic

Cannot upload image

Hello,it's me again, working with rackspace.I managed to make everything work and install anahita. Then sign up using http://yoursite/index.php/people/signup (and not just http://yoursite/people/si... Read More
Hello,it's me again, working with rackspace.I managed to make everything work and install anahita. Then sign up using http://yoursite/index.php/people/signup (and not just http://yoursite/people/signup, because it was throwing a not found error). At first it seemed ok, but when I add an avatar, it does not work, I just have my name display in the place of the photo. I am running Ubuntu 14.04 LTS (PHP stack template); nginx 1.4.6; PHP 7.0.27-1; MySQL 5.6 and also installed OPcache and APCU.Did you already encounter this issue ? Thanks Niels

Read Less
Gassen Niels

Gassen Niels commented on the topic

.gitignore Anahita

Hello !I am trying to set a git development routine ( local server git live test server ).I did everything like usual (git init etc...) but when I pulled the repository on my computer I notic...

Read More

Hello !I am trying to set a git development routine ( local server git live test server ).I did everything like usual (git init etc...) but when I pulled the repository on my computer I noticed that the vendor folder was missing and the www was empty.By checking the generated .gitignore file, I figure out that it was made on purpose by the Anahita team.My question is: Why ? :)I get that the configuration file should be ignore, but why ignore the vendor folder ? And why ignore the www folder ?I currently working on the template located in www\templates and the parameters file is in the www\language\en-GB so I don't get it :)Thanks for your help.Niels(Am I suppose to use openshift instead of using git only ?)

Read Less
Hello,

thanks for your help.

So I will create new topic because I have some issue using rackspace. Separate issue, separate topic.

Thanks

Niels
Rastin Mehr

Rastin Mehr commented on the topic

.gitignore Anahita

Hello !I am trying to set a git development routine ( local server git live test server ).I did everything like usual (git init etc...) but when I pulled the repository on my computer I notic...

Read More

Hello !I am trying to set a git development routine ( local server git live test server ).I did everything like usual (git init etc...) but when I pulled the repository on my computer I noticed that the vendor folder was missing and the www was empty.By checking the generated .gitignore file, I figure out that it was made on purpose by the Anahita team.My question is: Why ? :)I get that the configuration file should be ignore, but why ignore the vendor folder ? And why ignore the www folder ?I currently working on the template located in www\templates and the parameters file is in the www\language\en-GB so I don't get it :)Thanks for your help.Niels(Am I suppose to use openshift instead of using git only ?)

Read Less
the www and vendor folders are built during the installation. The repository only provides the material needed and the instructions on how to build an instance. When you use Anahita commands, an Anahita instance is bu... Read More
the www and vendor folders are built during the installation. The repository only provides the material needed and the instructions on how to build an instance. When you use Anahita commands, an Anahita instance is built in the www directory by a combination of symlinking files from the core components and real files such as configuration.php which contain information unique to your installation. Neither www or configuration.php file should be part of the git repository, that's why they are added in the git ignore file.

The best way to build yourself a project is to fork and then install Anahita using the anahita standard project: https://github.com/anahitasocial/anahita-standard

Then develop your custom apps and components in the packages directory. This way you can maintain your own Anahita project that contains your custom extensions while obtaining all the Anahita files from our main repository. Read Less
Our openshift integration is outdated. I know only one person using it. The best way is either using a Docker image or installing Anahita on a standard Linux, Nginx, phpfpm, and MySql machine on Amazon or Rackspace.
... Read More
Our openshift integration is outdated. I know only one person using it. The best way is either using a Docker image or installing Anahita on a standard Linux, Nginx, phpfpm, and MySql machine on Amazon or Rackspace.

Building an Anahita Docker image is on my todo list. Read Less
Gassen Niels

Gassen Niels started a topic

.gitignore Anahita

Hello !I am trying to set a git development routine ( local server git live test server ).I did everything like usual (git init etc...) but when I pulled the repository on my computer I notic...

Read More

Hello !I am trying to set a git development routine ( local server git live test server ).I did everything like usual (git init etc...) but when I pulled the repository on my computer I noticed that the vendor folder was missing and the www was empty.By checking the generated .gitignore file, I figure out that it was made on purpose by the Anahita team.My question is: Why ? :)I get that the configuration file should be ignore, but why ignore the vendor folder ? And why ignore the www folder ?I currently working on the template located in www\templates and the parameters file is in the www\language\en-GB so I don't get it :)Thanks for your help.Niels(Am I suppose to use openshift instead of using git only ?)

Read Less
Rastin Mehr

Rastin Mehr and Gassen Niels commented on the topic

Changes do not appear immediatly

Hello everyone, happy new year.

I post a note yesterday about an issue I had on Anahita, leaving it for the night shown me that the issue is different from what I tought.

Actually, the changes (add a...

Read More

Hello everyone, happy new year.

I post a note yesterday about an issue I had on Anahita, leaving it for the night shown me that the issue is different from what I tought.

Actually, the changes (add a new avatar, create a new group etc...) just takes a lot of time to appears> Should I run a cron job or something ?

But I also still have the issue where when I change the configuration in the site setting, the configuration.php file permission are changed to 0444, what do I do ?

Thanks

Niels

Read Less
Hi Gassen, does that mean when you post something or upload an avatar, it'll take a few refreshes before it shows?

What is the issue with site settings?
Hello,

thanks for your quick answer.

No, refreshing do not do anything, I have to wait hours (EDIT: about 20 min) for it to be updated.

About the site settings, each time I tried to change them, the configura... Read More
Hello,

thanks for your quick answer.

No, refreshing do not do anything, I have to wait hours (EDIT: about 20 min) for it to be updated.

About the site settings, each time I tried to change them, the configuration.php file permissions are changed to 0444 on the server (instead of 0664).

Niels Read Less
Could you please tell me more about your server and setup? Looks like some heavy caching is happening.

Also if you update site settings using Anahita, it edits configuration.php file and sets the permissions to 044... Read More
Could you please tell me more about your server and setup? Looks like some heavy caching is happening.

Also if you update site settings using Anahita, it edits configuration.php file and sets the permissions to 0444 because it is more secure that way. Is that the case? Read Less
I installed anahita using the template project, so no customization.
My server information :
Hosting Package vps
cPanel Version 68.0 (build 23)
Apache Version 2.4.29
PHP Version 5.6.32
MySQL Version 10.2.12... Read More
I installed anahita using the template project, so no customization.
My server information :
Hosting Package vps
cPanel Version 68.0 (build 23)
Apache Version 2.4.29
PHP Version 5.6.32
MySQL Version 10.2.12-MariaDB

Yes it does exactly that, I do not know if it is normal. Are you telling me it is ?

Niels Read Less
The configuration.php 0444 file permissions is intentional. What it basically does that the file can only be read.

Your other issue however looks like a heavy caching which is refreshed every 20 minutes or any int... Read More
The configuration.php 0444 file permissions is intentional. What it basically does that the file can only be read.

Your other issue however looks like a heavy caching which is refreshed every 20 minutes or any interval that you are experiencing. That means instead of loading html pages created by Anahita, it is loading the old pages from the cache. This concept is good if you are hosting a CMS website, but not for a social network. I'd look in the php.ini file and cPanel to see of there are any caching that need to be disabled. Also contact your hosting provider and see if they leave a caching on by default.

Also you'd get twice as fast performance with php7 and Nginx. Use only OPCache and APCu cache for caching and disable everything else. Read Less
Thank you for your answer, I will contact them and update this thread afterward.
Rastin Mehr liked this
So my server is actually already running Nginx, put I had to change the setting and change the Default Refresh Time from 4 hours to 5 seconds (for now).
And I set my server to php 7.2 using WHM multiPHP manager tool... Read More
So my server is actually already running Nginx, put I had to change the setting and change the Default Refresh Time from 4 hours to 5 seconds (for now).
And I set my server to php 7.2 using WHM multiPHP manager tool.

Thanks again for your help, everything is fine now.

Niels Read Less
Rastin Mehr liked this
You're welcome, keep us posted about your progress please. Happy 2018!
Gassen Niels

Gassen Niels started a topic

Changes do not appear immediatly

Hello everyone, happy new year.

I post a note yesterday about an issue I had on Anahita, leaving it for the night shown me that the issue is different from what I tought.

Actually, the changes (add a...

Read More

Hello everyone, happy new year.

I post a note yesterday about an issue I had on Anahita, leaving it for the night shown me that the issue is different from what I tought.

Actually, the changes (add a new avatar, create a new group etc...) just takes a lot of time to appears> Should I run a cron job or something ?

But I also still have the issue where when I change the configuration in the site setting, the configuration.php file permission are changed to 0444, what do I do ?

Thanks

Niels

Read Less
Nick Swinford

Nick Swinford and Rastin Mehr commented on the topic

Component Events

I have a component called network that adds a dashboard with all publicly view-able stories and media. In the network template file, I change the filter to network and then look for that filter in ...

Read More

I have a component called network that adds a dashboard with all publicly view-able stories and media. In the network template file, I change the filter to network and then look for that filter in the plugin where I override the query.

Loading ...

This was working fine until the upgrade. I've check and double checked everything and can't seem to see why it's not working. Could this be because of some of the controller changes?

You can view the instructions here: https://github.com/anahitasocial/anahita/blob/master/src/plugins/anahita/default.php

Read Less
Here's the repo (https://github.com/NicholasJohn16/network) for testing. All you should need to do is uncomment the different sections in the plugin's onAfterDispatch function (https://github.com/NicholasJohn16/networ... Read More
Here's the repo (https://github.com/NicholasJohn16/network) for testing. All you should need to do is uncomment the different sections in the plugin's onAfterDispatch function (https://github.com/NicholasJohn16/network/blob/master/src/plugins/system/network.php) and test to see what happens. I left some comments about to help explain things.

Also, I noticed that my username override plugin (https://github.com/NicholasJohn16/plg-username) suddenly stopped working. I updated it to 4.3 two months ago and tested it. Everything was fine then, but when I upgraded to the latest Anahita, it's not working. Read Less
Rastin Mehr liked this
Thank you Nick! Happy New Year!
Nick Swinford

Nick Swinford and Rastin Mehr commented on the topic

Assignment query is slow

So I'm in the process of migrating over to a new host and after testing the migration, I've run into an issue. There's one query that's taking about 3-5 seconds and slowing down my TTFB.

This is the...

Read More

So I'm in the process of migrating over to a new host and after testing the migration, I've run into an issue. There's one query that's taking about 3-5 seconds and slowing down my TTFB.

This is the assignments query from here (https://github.com/anahitasocial/anahita/blob/master/src/components/com_actors/domains/entitysets/component.php#L38).

Loading ...

Here's the EXPLAIN:

From what it looks like, it's checking every row in the database to see if it matches the criteria which is taking a long time as my nodes table has over 100k records.

Any ideas on how to speed it up? I've checked that my table looks okay and tried some basic ways to speed it up, but not sure where to continue. Read Less
@rastin, thanks for pushing this for me.

The equals binary fails for the same reason that like does. It doesn't find any of the indexes and searches row by row. Not sure why equals seems to find the indexes. Would ... Read More
@rastin, thanks for pushing this for me.

The equals binary fails for the same reason that like does. It doesn't find any of the indexes and searches row by row. Not sure why equals seems to find the indexes. Would the slight loss of a few milliseconds be worth it for future compatibility?

I was going to create an alias for AnDomainQueryBuilder with overrides for _links and where, but I can't seem to get it to work. Does this look right to you?

KService::setAlias('anahita:domain.query.builder','com:network.domain.query.builder');

That points to a class that I've extended from AnDomainQueryBuilder and included the necessary code.

In the new year, I'm going to investigate this more and see if I can get some more info on the main MySQL forums. Read Less
Rastin Mehr liked this
Question: are you testing the query with migrated data?
Yup.
Rastin Mehr

Rastin Mehr commented on the topic

Assignment query is slow

So I'm in the process of migrating over to a new host and after testing the migration, I've run into an issue. There's one query that's taking about 3-5 seconds and slowing down my TTFB.

This is the...

Read More

So I'm in the process of migrating over to a new host and after testing the migration, I've run into an issue. There's one query that's taking about 3-5 seconds and slowing down my TTFB.

This is the assignments query from here (https://github.com/anahitasocial/anahita/blob/master/src/components/com_actors/domains/entitysets/component.php#L38).

Loading ...

Here's the EXPLAIN:

From what it looks like, it's checking every row in the database to see if it matches the criteria which is taking a long time as my nodes table has over 100k records.

Any ideas on how to speed it up? I've checked that my table looks okay and tried some basic ways to speed it up, but not sure where to continue. Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Assignment query is slow

So I'm in the process of migrating over to a new host and after testing the migration, I've run into an issue. There's one query that's taking about 3-5 seconds and slowing down my TTFB.

This is the...

Read More

So I'm in the process of migrating over to a new host and after testing the migration, I've run into an issue. There's one query that's taking about 3-5 seconds and slowing down my TTFB.

This is the assignments query from here (https://github.com/anahitasocial/anahita/blob/master/src/components/com_actors/domains/entitysets/component.php#L38).

Loading ...

Here's the EXPLAIN:

From what it looks like, it's checking every row in the database to see if it matches the criteria which is taking a long time as my nodes table has over 100k records.

Any ideas on how to speed it up? I've checked that my table looks okay and tried some basic ways to speed it up, but not sure where to continue. Read Less
Rastin Mehr
Rastin Mehr
December 23 2017 Permalink
I know I haven't done it yet. Christmas activities make it hard to code these days.
Nick Swinford

Nick Swinford and Rastin Mehr commented on the topic

Assignment query is slow

So I'm in the process of migrating over to a new host and after testing the migration, I've run into an issue. There's one query that's taking about 3-5 seconds and slowing down my TTFB.

This is the...

Read More

So I'm in the process of migrating over to a new host and after testing the migration, I've run into an issue. There's one query that's taking about 3-5 seconds and slowing down my TTFB.

This is the assignments query from here (https://github.com/anahitasocial/anahita/blob/master/src/components/com_actors/domains/entitysets/component.php#L38).

Loading ...

Here's the EXPLAIN:

From what it looks like, it's checking every row in the database to see if it matches the criteria which is taking a long time as my nodes table has over 100k records.

Any ideas on how to speed it up? I've checked that my table looks okay and tried some basic ways to speed it up, but not sure where to continue. Read Less
Nick Swinford
Nick Swinford
December 21 2017 Permalink
@Rastin, can I see the code you had to fix this? I might need to just do an override for myself until this is resolved completely. OpenShift v2 ends on the 31st and I have until then to completely move to DigitalOcean... Read More
@Rastin, can I see the code you had to fix this? I might need to just do an override for myself until this is resolved completely. OpenShift v2 ends on the 31st and I have until then to completely move to DigitalOcean. This is one of the two main issues blocking that. Read Less
Rastin Mehr
Rastin Mehr
December 21 2017 Permalink
I'll push it into a branch tomorrow
Nick Swinford liked this
Rastin Mehr

Rastin Mehr shared a note

It's that wonderful time of the year this weekend so there won't be an #Anahita #Hackathon. We have been working on the React App on regular business days though, since it is needed for projects th... Read More
It's that wonderful time of the year this weekend so there won't be an #Anahita #Hackathon. We have been working on the React App on regular business days though, since it is needed for projects that we will be working on in 2018. Read Less
2 people liked this
James Imani

James Imani and Rastin Mehr commented on the note

Reminder that Friday to Sunday are the weekly #Anahita #Hackathon days. This week's focus will be Anahita React app. Follow the project group to get updates, help us out, or work on your own Anahit... Read More
Reminder that Friday to Sunday are the weekly #Anahita #Hackathon days. This week's focus will be Anahita React app. Follow the project group to get updates, help us out, or work on your own Anahita project alongside. Read Less
James Imani
James Imani
December 14 2017 Permalink
How is the react app going? Does it have already a proper shape?
Rastin Mehr
Rastin Mehr
December 14 2017 Permalink
Moving forward slower than I like, but moving forward nevertheless.
Unkown Person liked this
Nick Swinford

Nick Swinford and Rastin Mehr commented on the topic

Assignment query is slow

So I'm in the process of migrating over to a new host and after testing the migration, I've run into an issue. There's one query that's taking about 3-5 seconds and slowing down my TTFB.

This is the...

Read More

So I'm in the process of migrating over to a new host and after testing the migration, I've run into an issue. There's one query that's taking about 3-5 seconds and slowing down my TTFB.

This is the assignments query from here (https://github.com/anahitasocial/anahita/blob/master/src/components/com_actors/domains/entitysets/component.php#L38).

Loading ...

Here's the EXPLAIN:

From what it looks like, it's checking every row in the database to see if it matches the criteria which is taking a long time as my nodes table has over 100k records.

Any ideas on how to speed it up? I've checked that my table looks okay and tried some basic ways to speed it up, but not sure where to continue. Read Less
Nick Swinford
Nick Swinford
December 13 2017 Permalink
This unfortunately didn't work for me in 5.7. It's just as slow if not slower.

I tried using = instead of LIKE in 5.5 and 5.7 and it was faster for me over all. It's odd that it was slower for you on 5.6 as the dif... Read More
This unfortunately didn't work for me in 5.7. It's just as slow if not slower.

I tried using = instead of LIKE in 5.5 and 5.7 and it was faster for me over all. It's odd that it was slower for you on 5.6 as the differences for me on 5.5 to 5.7 were nominally. Read Less
Rastin Mehr
Rastin Mehr
December 13 2017 Permalink
So = BINARY is slow but = is fast. I don't know what's happening. Binary comparison is supposed to be faster than string comparison.
Nick Swinford
Nick Swinford
December 13 2017 Permalink
Have you tested any of this on MySQL 5.7?
Rastin Mehr
Rastin Mehr
December 13 2017 Permalink
No, because MAMP doesn't come with 5.7 yet. I need to install 5.7 as a different instance on my machine. I can test the queries via cli or Sequel Pro.
Rastin Mehr

Rastin Mehr shared a note

Reminder that Friday to Sunday are the weekly #Anahita #Hackathon days. This week's focus will be Anahita React app. Follow the project group to get updates, help us out, or work on your own Anahit... Read More
Reminder that Friday to Sunday are the weekly #Anahita #Hackathon days. This week's focus will be Anahita React app. Follow the project group to get updates, help us out, or work on your own Anahita project alongside. Read Less
Unkown Person liked this
Rastin Mehr

Rastin Mehr commented on the topic

Assignment query is slow

So I'm in the process of migrating over to a new host and after testing the migration, I've run into an issue. There's one query that's taking about 3-5 seconds and slowing down my TTFB.

This is the...

Read More

So I'm in the process of migrating over to a new host and after testing the migration, I've run into an issue. There's one query that's taking about 3-5 seconds and slowing down my TTFB.

This is the assignments query from here (https://github.com/anahitasocial/anahita/blob/master/src/components/com_actors/domains/entitysets/component.php#L38).

Loading ...

Here's the EXPLAIN:

From what it looks like, it's checking every row in the database to see if it matches the criteria which is taking a long time as my nodes table has over 100k records.

Any ideas on how to speed it up? I've checked that my table looks okay and tried some basic ways to speed it up, but not sure where to continue. Read Less
Rastin Mehr
Rastin Mehr
December 10 2017 Permalink
Nick, did you try the query with = BINARY? I have the code ready to commit, but I need your feedback first.
Rastin Mehr

Rastin Mehr shared a note

Reminder that Friday to Sunday are the weekly #Anahita #Hackathon days. This week's focus is Anahita React app and working on some improvements for the 4.3.11 release. Follow the Anahita Project gr... Read More
Reminder that Friday to Sunday are the weekly #Anahita #Hackathon days. This week's focus is Anahita React app and working on some improvements for the 4.3.11 release. Follow the Anahita Project group to get updates, help out, or work on your own Anahita project alongside. Read Less
Rajkumar Mundel

Rajkumar Mundel and Rastin Mehr commented on the topic

Why ADD LOCATION Pop-up ?

Simple perspective of ADD LOCATION is that ... just ADD LOCATION with simple Google Places API and mark on MAPS...and make them searchable if anyone wants to know who lives near meI still trying to...

Read More

Simple perspective of ADD LOCATION is that ... just ADD LOCATION with simple Google Places API and mark on MAPS...and make them searchable if anyone wants to know who lives near meI still trying to understand what is the main reason behind the ADD LOCATION pop-up #Location #Doubt

Read Less
Rajkumar Mundel
Rajkumar Mundel
December 07 2017 Permalink
It is not about social media pages but simple attribute of the actor/ media node and you have provided that attribute but in different way.
But why we are creating our own Location data ? It might be too huge data s... Read More
It is not about social media pages but simple attribute of the actor/ media node and you have provided that attribute but in different way.
But why we are creating our own Location data ? It might be too huge data set :). Seems like startup with good team and strong vision can always make use of this data like FB is doing now.

In 2013, 1st version of letsride ( not Anahita), we were storing the location in database entered by people but later we felt of no use. So that's i raise question with curiosity.

I have closed letsride because of less traction. I always think of Anahita as POC for any startup/idea. In the market, right now there is not even a single platform/product where non coding person can do POC. But Anahita can become with simple and little modifications. #OneOfTheBestOpenSource Read Less
Rastin Mehr liked this
Rastin Mehr
Rastin Mehr
December 07 2017 Permalink
The geolocation data isn't taking up more space than the hashtags, mentions, likes, notifications, and social graph. We need to have the location nodes and graphs in Anahita so we can search them or query them.

Photos View All

Articles View All

Topics View All

Powered by Anahita