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 shared a note

Reminder that Friday to Sunday are the weekly #Anahita #Hackathon days and this week's focus is development of Anahita #ReactJS app which will be used as the client side of Anahita. Follow the Anah... Read More
Reminder that Friday to Sunday are the weekly #Anahita #Hackathon days and this week's focus is development of Anahita #ReactJS app which will be used as the client side of Anahita. Follow the Anahita Project group to help out, stay updated, or work on your own Anahita project alongside. Read Less
Nick Swinford

Nick Swinford and Rastin Mehr commented on the topic

Error after upgrade

I just updated a install from 4.2 to 4.3 after upgrading from PHP 5.5 to 5.6 and now I'm getting the below error. Been debugging it for a few days and can't figure out what the issue is.

1: Call to ...

Read More

I just updated a install from 4.2 to 4.3 after upgrading from PHP 5.5 to 5.6 and now I'm getting the below error. Been debugging it for a few days and can't figure out what the issue is.

1: Call to undefined function searchbox() in on line 151: Call to undefined function searchbox() in /var/www/demo/www/templates/base/html/tmpl/navbar.php on line 15

There's no errors in the error log and nothing else that jumps out as the cause. If I go to a page that doesn't have the searchbox, such as /people/session, the page displays without any styling.

Any help would be appreciated. Thanks.

Read Less
@Rastin, what version of MySQL is Anahitapolis running on?

I've created a new server and I'm getting a new error:

Exception in ComStoriesControllerStory : Expression #8 of SELECT list is not in GROUP BY clause a... Read More
@Rastin, what version of MySQL is Anahitapolis running on?

I've created a new server and I'm getting a new error:

Exception in ComStoriesControllerStory : Expression #8 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'demo.story.name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by of the following query : SELECT DISTINCT IF (story.body '' AND story.body IS NOT NULL,story.id,IF(story.story_comment_id IS NOT NULL AND story.story_object_id IS NOT NULL , CONCAT_WS(',',story.name,story.component,DATE(story.created_on), story.story_object_id), CONCAT_WS(',',story.name,story.component,DATE(story.created_on),CASE TRUE WHEN CONCAT(story.name,story.component) LIKE 'cover_editcom_people' THEN CONCAT(story.story_target_id) WHEN CONCAT(story.name,story.component) LIKE 'avatar_editcom_people' THEN CONCAT(story.story_target_id) WHEN story.name LIKE "avatar_edit" THEN IF(story.story_subject_id = story.story_target_id, "", story.id) WHEN story.name LIKE "actor_follow" THEN story.story_subject_id ELSE CONCAT(story.story_target_id,story in /var/www/demo/vendor/anahita/anahita/src/libraries/default/base/controller/resource.php on line 210

The new server comes with an upgraded version of MySQL, 5.7.19, which has the ONLY_FULL_GROUP_BY sql_mode on by default (https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_only_full_group_by) and seems to be causing some issues. Read Less
Rastin Mehr liked this
Version 5.6. We haven't tested with version 5.7 yet. Thank you for reporting this
here is where the query is being constructed: https://github.com/anahitasocial/anahita/blob/master/src/components/com_stories/domains/behaviors/aggregatable.php#L74 I need to go through and debug it for MySql 5.7 or l... Read More
here is where the query is being constructed: https://github.com/anahitasocial/anahita/blob/master/src/components/com_stories/domains/behaviors/aggregatable.php#L74 I need to go through and debug it for MySql 5.7 or later. If you found the issue first, please do a PR Read Less
Nick Swinford

Nick Swinford and Rastin Mehr commented on the topic

Error after upgrade

I just updated a install from 4.2 to 4.3 after upgrading from PHP 5.5 to 5.6 and now I'm getting the below error. Been debugging it for a few days and can't figure out what the issue is.

1: Call to ...

Read More

I just updated a install from 4.2 to 4.3 after upgrading from PHP 5.5 to 5.6 and now I'm getting the below error. Been debugging it for a few days and can't figure out what the issue is.

1: Call to undefined function searchbox() in on line 151: Call to undefined function searchbox() in /var/www/demo/www/templates/base/html/tmpl/navbar.php on line 15

There's no errors in the error log and nothing else that jumps out as the cause. If I go to a page that doesn't have the searchbox, such as /people/session, the page displays without any styling.

Any help would be appreciated. Thanks.

Read Less
I've disabled all the caching and I've upgraded to 7. I'm still getting the error. Gonna try to create a new server from scratch and see if I can get it to work.
That's really strange. I can't think of anything that could cause that. Keep me posted please!
Yup, same here.

What's really odd is I have the same site setup with all the components installed locally on 5.6 and it's working fine. It's gotta be some configuration issue on the server, just can't think of wha... Read More
Yup, same here.

What's really odd is I have the same site setup with all the components installed locally on 5.6 and it's working fine. It's gotta be some configuration issue on the server, just can't think of what it could be. Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Error after upgrade

I just updated a install from 4.2 to 4.3 after upgrading from PHP 5.5 to 5.6 and now I'm getting the below error. Been debugging it for a few days and can't figure out what the issue is.

1: Call to ...

Read More

I just updated a install from 4.2 to 4.3 after upgrading from PHP 5.5 to 5.6 and now I'm getting the below error. Been debugging it for a few days and can't figure out what the issue is.

1: Call to undefined function searchbox() in on line 151: Call to undefined function searchbox() in /var/www/demo/www/templates/base/html/tmpl/navbar.php on line 15

There's no errors in the error log and nothing else that jumps out as the cause. If I go to a page that doesn't have the searchbox, such as /people/session, the page displays without any styling.

Any help would be appreciated. Thanks.

Read Less
Any updates on this issue Nick? Also have you tried php7? PHP5 has officially reached its end of life https://secure.php.net/supported-versions.php
Rastin Mehr

Rastin Mehr and Nick Swinford commented on the topic

Error after upgrade

I just updated a install from 4.2 to 4.3 after upgrading from PHP 5.5 to 5.6 and now I'm getting the below error. Been debugging it for a few days and can't figure out what the issue is.

1: Call to ...

Read More

I just updated a install from 4.2 to 4.3 after upgrading from PHP 5.5 to 5.6 and now I'm getting the below error. Been debugging it for a few days and can't figure out what the issue is.

1: Call to undefined function searchbox() in on line 151: Call to undefined function searchbox() in /var/www/demo/www/templates/base/html/tmpl/navbar.php on line 15

There's no errors in the error log and nothing else that jumps out as the cause. If I go to a page that doesn't have the searchbox, such as /people/session, the page displays without any styling.

Any help would be appreciated. Thanks.

Read Less
Are any of the filters starting with @ symbol working or is it only the searchbox() ?
It looks like none of them are working.
Could it be a php configuration issue?
I went line by line comparing the php.ini files for the PHP 5.5 and 5.6 and the only difference was the log file. I fixed the log file and now the above error is successfully logging to it, but no additional informati... Read More
I went line by line comparing the php.ini files for the PHP 5.5 and 5.6 and the only difference was the log file. I fixed the log file and now the above error is successfully logging to it, but no additional information is given.

I'm at a loss. Read Less
ComBaseTemplateFilterAlias::__construct is being executed.

EDIT: To be able to determine the code was running, I put error_log("ComBaseTemplateFilterAlias::__construct"); at the begging of the constructor and check... Read More
ComBaseTemplateFilterAlias::__construct is being executed.

EDIT: To be able to determine the code was running, I put error_log("ComBaseTemplateFilterAlias::__construct"); at the begging of the constructor and checked the log file for it's presence after refreshing the page. Oddly, it logged it 5 times. Read Less
yes they may run multiple times as layouts are being combined. Can you make a fresh Anahita installation and see if everything is working there or not?
Technically, this is a fresh install of Anahita. Every time I push a commit to the server, composer loads a fresh version of anahita and the cli links everything up together. Do you mean like without any apps or a new... Read More
Technically, this is a fresh install of Anahita. Every time I push a commit to the server, composer loads a fresh version of anahita and the cli links everything up together. Do you mean like without any apps or a new database? Read Less
yes a fresh installation of pure Anahita, not an upgrade of your codebase. You can install a couple of apps too.
I've removed all my apps and switch to a new database and I'm getting the same issue.

Its almost like the @ operator isn't functioning properly.
Rastin Mehr

Rastin Mehr and Nick Swinford commented on the topic

Error after upgrade

I just updated a install from 4.2 to 4.3 after upgrading from PHP 5.5 to 5.6 and now I'm getting the below error. Been debugging it for a few days and can't figure out what the issue is.

1: Call to ...

Read More

I just updated a install from 4.2 to 4.3 after upgrading from PHP 5.5 to 5.6 and now I'm getting the below error. Been debugging it for a few days and can't figure out what the issue is.

1: Call to undefined function searchbox() in on line 151: Call to undefined function searchbox() in /var/www/demo/www/templates/base/html/tmpl/navbar.php on line 15

There's no errors in the error log and nothing else that jumps out as the cause. If I go to a page that doesn't have the searchbox, such as /people/session, the page displays without any styling.

Any help would be appreciated. Thanks.

Read Less
Yeah, I know, but why would it be calling it as an actual function instead of running it as a filter?

All the files are there and are linked properly. I just don't know why the template stack isn't running properly.
Nick Swinford

Nick Swinford started a topic

Error after upgrade

I just updated a install from 4.2 to 4.3 after upgrading from PHP 5.5 to 5.6 and now I'm getting the below error. Been debugging it for a few days and can't figure out what the issue is.

1: Call to ...

Read More

I just updated a install from 4.2 to 4.3 after upgrading from PHP 5.5 to 5.6 and now I'm getting the below error. Been debugging it for a few days and can't figure out what the issue is.

1: Call to undefined function searchbox() in on line 151: Call to undefined function searchbox() in /var/www/demo/www/templates/base/html/tmpl/navbar.php on line 15

There's no errors in the error log and nothing else that jumps out as the cause. If I go to a page that doesn't have the searchbox, such as /people/session, the page displays without any styling.

Any help would be appreciated. Thanks.

Read Less
Umesh

Umesh and Rastin Mehr commented on the topic

SSL Setup

Can someone please share how to setup SSL with anahita?

Apart from setting webserver (nginx in my case) on 443 port (along with SSL certificates), is there anything else I need to do. Any changes in...

Read More

Can someone please share how to setup SSL with anahita?

Apart from setting webserver (nginx in my case) on 443 port (along with SSL certificates), is there anything else I need to do. Any changes in configuration.php required? #SSL 

Read Less
Umesh
Umesh
August 27 2017 Permalink
Thanks for the tip @Rastin.

I'm going to make modifications in vendor/nooku/libraries/koowa/request/request.php : scheme function - to try solution mentioned in stackoverflow thread
No don't make changes to the that file. Instead add the stackoverflow suggestion to this method and test it. If it worked, do a PR and I'll merge it.
https://github.com/anahitasocial/anahita/blob/master/src/libraries... Read More
No don't make changes to the that file. Instead add the stackoverflow suggestion to this method and test it. If it worked, do a PR and I'll merge it.
https://github.com/anahitasocial/anahita/blob/master/src/libraries/anahita/functions.php#L45 Read Less
Umesh

Umesh and Rastin Mehr commented on the topic

SSL Setup

Can someone please share how to setup SSL with anahita?

Apart from setting webserver (nginx in my case) on 443 port (along with SSL certificates), is there anything else I need to do. Any changes in...

Read More

Can someone please share how to setup SSL with anahita?

Apart from setting webserver (nginx in my case) on 443 port (along with SSL certificates), is there anything else I need to do. Any changes in configuration.php required? #SSL 

Read Less
Umesh
Umesh
August 26 2017 Permalink
@Rastin - I tried first with Cloudflare flexible SSL in order to avoid setting up SSL on anahita server. That didnt work as several URL (CSS JS files) getting served from non-SSL domain, because anahita itself running... Read More
@Rastin - I tried first with Cloudflare flexible SSL in order to avoid setting up SSL on anahita server. That didnt work as several URL (CSS JS files) getting served from non-SSL domain, because anahita itself running on port 80. I was hoping to get relative URL in HTTP response and without any reference to domain

Looks like only way to get it working is install SSL on anhita. The reason I was trying to avoid installing SSL on anhita is, I'm trying a scalable setup .

Here is the sequence in which I would like the flow to work
1. Cloudflare with FULL SSL
2. Nginx with SSL certificate but acting as reverse proxy
3. Varnish running on port 80 ..so essentially Varnish serving pages to first NGINX
4. Anahita server behind varnish running on non SSL port


I may not go in production with this. It is still an experimental setup at this point in time.

If this doesnt work I'll try following setup
1. Cloudflare with FULL SSL
2. NGINX as load balancer . I might need SSL termination here
3. Multiple Anahita server connected to first NGINX

However here I might face same problem of absolute URL for CSS and JS instead of relative URL. In this case, I might have to manipulate HTTP response at first NGINX however that would be too slow and would defeat the purpose Read Less
Rastin Mehr
Rastin Mehr
August 26 2017 Permalink
Interesting, I never considered the scenario where Cloudflare SSL is used. Anahita checks the server configuration to determine if SSL is available or not. If Anahita is still on port 80, it wont detect the ssl to be ... Read More
Interesting, I never considered the scenario where Cloudflare SSL is used. Anahita checks the server configuration to determine if SSL is available or not. If Anahita is still on port 80, it wont detect the ssl to be on. There must be a way to detect Cloudflare ssl too https://stackoverflow.com/questions/23533029/php-https-check-with-flexible-ssl-cloudflare-how-to-do try it and let me know.

Looks like you need to try Varnish with port 443. In the https mode, even if one URL on your page isn't using https, it will throw an error in the browser.

You must have a high traffic site with such an elaborate setup. Read Less
Rastin Mehr

Rastin Mehr commented on the topic

SSL Setup

Can someone please share how to setup SSL with anahita?

Apart from setting webserver (nginx in my case) on 443 port (along with SSL certificates), is there anything else I need to do. Any changes in...

Read More

Can someone please share how to setup SSL with anahita?

Apart from setting webserver (nginx in my case) on 443 port (along with SSL certificates), is there anything else I need to do. Any changes in configuration.php required? #SSL 

Read Less
Rastin Mehr
Rastin Mehr
August 25 2017 Permalink
When you setup ssl on your server, Anahita detects it and switches to ssl mode. Are you experiencing difficulties?
Umesh

Umesh started a topic

SSL Setup

Can someone please share how to setup SSL with anahita?

Apart from setting webserver (nginx in my case) on 443 port (along with SSL certificates), is there anything else I need to do. Any changes in...

Read More

Can someone please share how to setup SSL with anahita?

Apart from setting webserver (nginx in my case) on 443 port (along with SSL certificates), is there anything else I need to do. Any changes in configuration.php required? #SSL 

Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Anahita Connect ... to Anahita ?

Thinking lately about using Anahita for a strictly "personal brand" -type project... curious, how much of a stretch would it be to configure the Connect app to accept Anahita-based sites ( multiple...

Read More

Thinking lately about using Anahita for a strictly "personal brand" -type project... curious, how much of a stretch would it be to configure the Connect app to accept Anahita-based sites ( multiple domain[s] specified separately ) as well as Facebook / Twitter / LinkedIn ?

Read Less
Rastin Mehr liked this
Any web or mobile app with OAuth2 will be able to authenticate their users if those users have an account on an Anahita installation. For start we could build a wordpress plugin for start.

Yes the outside apps requ... Read More
Any web or mobile app with OAuth2 will be able to authenticate their users if those users have an account on an Anahita installation. For start we could build a wordpress plugin for start.

Yes the outside apps require to build an extension to do OAuth with an Anahita installation. Read Less
Unkown Person liked this
Rastin Mehr

Rastin Mehr commented on the topic

Anahita Connect ... to Anahita ?

Thinking lately about using Anahita for a strictly "personal brand" -type project... curious, how much of a stretch would it be to configure the Connect app to accept Anahita-based sites ( multiple...

Read More

Thinking lately about using Anahita for a strictly "personal brand" -type project... curious, how much of a stretch would it be to configure the Connect app to accept Anahita-based sites ( multiple domain[s] specified separately ) as well as Facebook / Twitter / LinkedIn ?

Read Less
Rastin Mehr liked this
It is possible and it is on the roadmap. What we want and you are referring too is Anahita being both an OAuth provider and consumer. Once we have that in the system every app can authenticate their users if a user al... Read More
It is possible and it is on the roadmap. What we want and you are referring too is Anahita being both an OAuth provider and consumer. Once we have that in the system every app can authenticate their users if a user already has an account on an Anahita installation. In this scenario Anahita is the provider and the other app is the consumer. So mobile apps, wordpress, joomla, drupal, eCommerce apps, etc can have a login using your Anahita (or your network's name) account.

Also Anahita can use the same OAuth mechanism for authenticating her own users.

We will also need a com_tokens library component which generates tokens for different components such as OAuth and Invites with standard token management features.

This feature has no dependency on the current milestone which is Mobile First and single page app version of Anahita with improved RESTful API endpoints. It means someone with a good knowledge of Anahita and OAuth protocol can branch the code and implement it. If you are that person, please go ahead and make it happen. It would cross off one more feature from the roadmap.

Or if someone could fund the development ahead of schedule and agree that the code become part of Anahita codebase, that would work too. That's how we got a lot of new features implemented in Anahita. Read Less
Unkown Person liked this
Nick Swinford

Nick Swinford commented on the topic

Anahita Connect ... to Anahita ?

Thinking lately about using Anahita for a strictly "personal brand" -type project... curious, how much of a stretch would it be to configure the Connect app to accept Anahita-based sites ( multiple...

Read More

Thinking lately about using Anahita for a strictly "personal brand" -type project... curious, how much of a stretch would it be to configure the Connect app to accept Anahita-based sites ( multiple domain[s] specified separately ) as well as Facebook / Twitter / LinkedIn ?

Read Less
Rastin Mehr liked this
I don't think it'd be possible right now. Connect is based on OAuth and Anahita's login system doesn't support it yet. Though, I believe the long-term plan is to support OAuth for login.
Nick Swinford

Nick Swinford and Rastin Mehr commented on the topic

How can I display the login for in a template file?

I want to display the login form in a template file in a custom component, but every thing I've tried so far has given me an error. Currently, I have:

Loading ...

If you don't set the format, you get...

Read More

I want to display the login form in a template file in a custom component, but every thing I've tried so far has given me an error. Currently, I have:

Loading ...

If you don't set the format, you get an error about the user not being logged in. It currently returns a form template not found error.

Any ideas? Thanks.

Read Less
@Rastin, thanks for the clarification. That makes better sense.

Let me ask you this though. I create a forum component and I'd like to add a few features like polls and attachments. My plan has been to create media... Read More
@Rastin, thanks for the clarification. That makes better sense.

Let me ask you this though. I create a forum component and I'd like to add a few features like polls and attachments. My plan has been to create media apps for both of those and then find a way to integrate them into my forums component. I was thinking of using the composer as an example of what I'd want to do.

Any suggestions on how to do it? Read Less
Composer is just multiple forms shown in tabs. Each form is injected by a media app which creates a specific type of node. In the forum context you would want to be able to install apps within a forum and they'd injec... Read More
Composer is just multiple forms shown in tabs. Each form is injected by a media app which creates a specific type of node. In the forum context you would want to be able to install apps within a forum and they'd inject forms in the composer. A forum would display an aggregate list of different type of Topic nodes. Did that make sense? Read Less
Rastin Mehr

Rastin Mehr and Jeff Dean commented on the topic

How install in a Shared Web Host Server??

I have a reseller account on a shared web host.   I do NOT have root access and cannot program via a command line.  Is there a way to install everything as you would a Joomla install, example: inst...

Read More

I have a reseller account on a shared web host.   I do NOT have root access and cannot program via a command line.  Is there a way to install everything as you would a Joomla install, example: install.php?

Read Less
You could try, I'm not sure how reliable it would be for a production installation. Ideally you would want to use a dedicated server or instance configured for a production or production/staging installations.
Jeff Dean
Jeff Dean
June 07 2017 Permalink
Is there an install.php option via the web? Where can I obtain the most current BIRTH files? All I have now is anahita-1.5.12-r10145-birth but the most current version is 4.4 I believe.
If by install.php you mean a method to install Anahita via browser, no there isn't such a thing. The reason is that you need more heavy duty tools to manage a social network and http tools aren't reliable enough for t... Read More
If by install.php you mean a method to install Anahita via browser, no there isn't such a thing. The reason is that you need more heavy duty tools to manage a social network and http tools aren't reliable enough for this purpose. The stakes are much lower when you are managing a CMS and you don't have to deal with as many records.

The code is on Github https://github.com/anahitasocial/anahita with the Birth releases tagged there. When you install via the composer, you get the latest Birth release. The code in the master branch is subject to change, that is why we call it an Embryo. It is the code we use to power our website and experiment with new implementations and features. Read Less
I should have said more reliable tools rather than heavy duty. Command line is more reliable.
Jeff Dean

Jeff Dean started a topic

How install in a Shared Web Host Server??

I have a reseller account on a shared web host.   I do NOT have root access and cannot program via a command line.  Is there a way to install everything as you would a Joomla install, example: inst...

Read More

I have a reseller account on a shared web host.   I do NOT have root access and cannot program via a command line.  Is there a way to install everything as you would a Joomla install, example: install.php?

Read Less
Nick Swinford

Nick Swinford and Rastin Mehr commented on the topic

How can I display the login for in a template file?

I want to display the login form in a template file in a custom component, but every thing I've tried so far has given me an error. Currently, I have:

Loading ...

If you don't set the format, you get...

Read More

I want to display the login form in a template file in a custom component, but every thing I've tried so far has given me an error. Currently, I have:

Loading ...

If you don't set the format, you get an error about the user not being logged in. It currently returns a form template not found error.

Any ideas? Thanks.

Read Less
Isn't one of the big features of Anahita/Nooku Hierarchical MVC? That you can call any component from within another component?
That's not what the HMVC is about. HMVC is when a component can be extended by other components and form inheritance. Dispatching a controller within a view is possible, but not recommended, because it is quite resour... Read More
That's not what the HMVC is about. HMVC is when a component can be extended by other components and form inheritance. Dispatching a controller within a view is possible, but not recommended, because it is quite resource intensive and prone to errors. Read Less
Nick Swinford

Nick Swinford commented on the topic

How can I display the login for in a template file?

I want to display the login form in a template file in a custom component, but every thing I've tried so far has given me an error. Currently, I have:

Loading ...

If you don't set the format, you get...

Read More

I want to display the login form in a template file in a custom component, but every thing I've tried so far has given me an error. Currently, I have:

Loading ...

If you don't set the format, you get an error about the user not being logged in. It currently returns a form template not found error.

Any ideas? Thanks.

Read Less
I'm building an component where a user can either login or continue along as a guest. If that's not possible currently, I think I'll just provide links to the login page.
Rastin Mehr liked this
Rastin Mehr

Rastin Mehr commented on the topic

How can I display the login for in a template file?

I want to display the login form in a template file in a custom component, but every thing I've tried so far has given me an error. Currently, I have:

Loading ...

If you don't set the format, you get...

Read More

I want to display the login form in a template file in a custom component, but every thing I've tried so far has given me an error. Currently, I have:

Loading ...

If you don't set the format, you get an error about the user not being logged in. It currently returns a form template not found error.

Any ideas? Thanks.

Read Less
At this point perhaps just duplicate the form in your component. To make the form reusable we need to define it as a ui element. You are trying to access it via the session controller and that could really complicate ... Read More
At this point perhaps just duplicate the form in your component. To make the form reusable we need to define it as a ui element. You are trying to access it via the session controller and that could really complicate things.

Any reasons you are duplicating the login form? You can redirect guest users to the form and then return them back to where they were in your component once they're logged in. Read Less

Photos View All

Articles View All

Topics View All

Powered by Anahita