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 Nick Swinford commented on the topic

Invite users to follow actor

I know you can add users as followers to a particular actor node, but is there a method to invite them to follow an actor node?

I poked around a bit and found this (https://github.com/anahitasocial/...

Read More

I know you can add users as followers to a particular actor node, but is there a method to invite them to follow an actor node?

I poked around a bit and found this (https://github.com/anahitasocial/anahita/blob/master/src/components/com_actors/domains/entities/request.php). Are there any examples of its use? Where would someone go to see their pending follow requests?

Read Less
We don't have an invite to the profile feature. What you see is when people follow a private group in which case it becomes a pending requires that needs to be accepted by the profile admin.
Nick Swinford liked this
The requests show up as a new tab on the profile settings page.
Nick Swinford liked this
Thanks Rastin. I'm creating an events component and thinking about a feature to invite users to an event.
Rastin Mehr liked this
Nick Swinford

Nick Swinford started a topic

Invite users to follow actor

I know you can add users as followers to a particular actor node, but is there a method to invite them to follow an actor node?

I poked around a bit and found this (https://github.com/anahitasocial/...

Read More

I know you can add users as followers to a particular actor node, but is there a method to invite them to follow an actor node?

I poked around a bit and found this (https://github.com/anahitasocial/anahita/blob/master/src/components/com_actors/domains/entities/request.php). Are there any examples of its use? Where would someone go to see their pending follow requests?

Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Custom entity fields

If a custom table is included within the domain model of a custom node type, are the additional fields included in global searches?Related, are there best practices when deciding what type(s) of da... Read More
If a custom table is included within the domain model of a custom node type, are the additional fields included in global searches?Related, are there best practices when deciding what type(s) of data to index in designing the custom table fields? Read Less
That determines what fields gets included when you filter the results. They don't get included in the global search. The global search only searches the name and body of the nodes: https://github.com/anahitasocial/ana... Read More
That determines what fields gets included when you filter the results. They don't get included in the global search. The global search only searches the name and body of the nodes: https://github.com/anahitasocial/anahita/blob/master/src/components/com_search/domains/queries/node.php#L97 Read Less
Yes the domain models don't magically plug into the search component. The search component is an app itself.
If your custom component (or plugin) manages to extend the search component query using a behavior then you can include additional fields to the global search. I haven't tried it yet, but in theory it should work.
Unkown Person liked this
Rastin Mehr

Rastin Mehr commented on the topic

Custom entity fields

If a custom table is included within the domain model of a custom node type, are the additional fields included in global searches?Related, are there best practices when deciding what type(s) of da... Read More
If a custom table is included within the domain model of a custom node type, are the additional fields included in global searches?Related, are there best practices when deciding what type(s) of data to index in designing the custom table fields? Read Less
Fields that are used for joining tables such as node_id need to be indexed. If you are building a filter feature with a custom query for it, then you can index those fields too. For example username and email fields a... Read More
Fields that are used for joining tables such as node_id need to be indexed. If you are building a filter feature with a custom query for it, then you can index those fields too. For example username and email fields are also indexed in the people_people table. Read Less
Unkown Person liked this
Rastin Mehr

Rastin Mehr commented on the topic

Custom entity fields

If a custom table is included within the domain model of a custom node type, are the additional fields included in global searches?Related, are there best practices when deciding what type(s) of da... Read More
If a custom table is included within the domain model of a custom node type, are the additional fields included in global searches?Related, are there best practices when deciding what type(s) of data to index in designing the custom table fields? Read Less
Maybe, I haven't tried it. Feel free to experiment
Unkown Person liked this
Nick Swinford

Nick Swinford and Rastin Mehr commented on the Article

Extending Person Entity

Injecting a behavior with a resource into person entity causes error
I've been working on this a bit more over the last couple days and I think I've come to a realization. You can't add resources with behaviors. After looking over behavoirs (https://github.com/anahitasocial/anahita/blo... Read More
I've been working on this a bit more over the last couple days and I think I've come to a realization. You can't add resources with behaviors. After looking over behavoirs (https://github.com/anahitasocial/anahita/blob/master/src/libraries/anahita/domain/behavior/abstract.php) there's no place that handles the resources attribute on the config option. I'm not sure if this is intentional or accidental.

Relationships are processed though so I'll be looking into using that to add additional fields onto the person entity. Read Less
Rastin Mehr liked this
It would've been nice if we could. I don't think the current code was intentional. It was simply the code written at the time and it can always be improved.
Rastin Mehr

Rastin Mehr and Roni Mmi commented on the topic

How To Create Custom Page In Anahita 4.3.3

can anyone write a tutorial ... how to create custom pages.
com_pages can handle all static pages and gives you access to the Anahita framework too which means you can query and display all kinds of nodes within your pages.
Unkown Person liked this
Roni Mmi
Roni Mmi
2 weeks ago Permalink
thanks alot. i will check now
Nick Swinford

Nick Swinford and Rastin Mehr commented on the topic

Quick question: plugins included with template?

Is there anything preventing plugins from being included within a custom template?

Nope, as long as its in the proper folder stucture it'll get installed and symlinked like normal.
2 people liked this
Plugins have nothing to do with custom templates
Rastin Mehr

Rastin Mehr commented on the topic

libraries/default/sessions/sessions.php error when signing up new user

I've been consistently prevented from signing up a new user on my live site now, even after confirming everything was working properly in my dev environment.  The error being reported states:

"Warn...

Read More

I've been consistently prevented from signing up a new user on my live site now, even after confirming everything was working properly in my dev environment.  The error being reported states:

"Warning: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp) in /.../beerlovers.com/anahita/vendor/anahita/anahita/src/libraries/default/sessions/sessions.php on line 521".This is encountered immediately after signing up for an account at https://beerlovers.com/people/signup.

I have no template over-rides active.The /tmp folder exists, and has the permissions 755, and my dev environment resides on the same shared server as my live site.  PHP info's for each can be found at https://beerlovers.com/phpinfo.php and http://wscadvtech.com/phpinfo.php  - however, I had removed the dev anahita installation this morning.

Any ideas what might be the cause?

#sessions #migration #people

Read Less
So if you delete that person, everything works fine? Check out the fields in the nodes table related to this person too. I'd check the alias first.
Don't let this go, I am curious to know what was wrong with the data, because it could happen again, because of Murphy's law.

For example try changing their username and alias and see if it still breaks. Or was it... Read More
Don't let this go, I am curious to know what was wrong with the data, because it could happen again, because of Murphy's law.

For example try changing their username and alias and see if it still breaks. Or was it a broken edge which was causing the issue?

ps: you need a pair of steampunk goggles for this one Read Less
Rastin Mehr

Rastin Mehr commented on the topic

How To Create Custom Page In Anahita 4.3.3

can anyone write a tutorial ... how to create custom pages.
Roni Mmi

Roni Mmi started a topic

How To Create Custom Page In Anahita 4.3.3

can anyone write a tutorial ... how to create custom pages.
Rastin Mehr

Rastin Mehr commented on the topic

libraries/default/sessions/sessions.php error when signing up new user

I've been consistently prevented from signing up a new user on my live site now, even after confirming everything was working properly in my dev environment.  The error being reported states:

"Warn...

Read More

I've been consistently prevented from signing up a new user on my live site now, even after confirming everything was working properly in my dev environment.  The error being reported states:

"Warning: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp) in /.../beerlovers.com/anahita/vendor/anahita/anahita/src/libraries/default/sessions/sessions.php on line 521".This is encountered immediately after signing up for an account at https://beerlovers.com/people/signup.

I have no template over-rides active.The /tmp folder exists, and has the permissions 755, and my dev environment resides on the same shared server as my live site.  PHP info's for each can be found at https://beerlovers.com/phpinfo.php and http://wscadvtech.com/phpinfo.php  - however, I had removed the dev anahita installation this morning.

Any ideas what might be the cause?

#sessions #migration #people

Read Less
timezone isn't even being used at this point, but I don't like the migration version discrepancy. Although. The collations for title, alias, and description fields have changed to utf8mb4 to support emojis. What abou... Read More
timezone isn't even being used at this point, but I don't like the migration version discrepancy. Although. The collations for title, alias, and description fields have changed to utf8mb4 to support emojis. What about the sessions tables and people_people tables? Read Less
Where is your session path on Apache and does php have write access to it?
Try adding 5 or 10 records from your data and test.
There maybe a funny data causing this issue. Look for inconsistent username or email formats. Also make sure that the person node alias is the same as the username.
Rastin Mehr

Rastin Mehr commented on the topic

Customize the GUI

Hey All,

I want to try and customize the GUI for my site, but I honestly have no idea where to start. Any advice or tips would be greatly appreciated.

Thanks,

Hunter

#gui #template #customization

Rastin Mehr liked this

Hunter Wilkes commented on the topic

Customize the GUI

Hey All,

I want to try and customize the GUI for my site, but I honestly have no idea where to start. Any advice or tips would be greatly appreciated.

Thanks,

Hunter

#gui #template #customization

Rastin Mehr liked this
How do I remove the navbar from the landing page? I tried making a copy of /src/templates/base/html/default.php and then commenting out/removing the line from that file, but that didn't seem to work.
Rastin Mehr

Rastin Mehr commented on the topic

libraries/default/sessions/sessions.php error when signing up new user

I've been consistently prevented from signing up a new user on my live site now, even after confirming everything was working properly in my dev environment.  The error being reported states:

"Warn...

Read More

I've been consistently prevented from signing up a new user on my live site now, even after confirming everything was working properly in my dev environment.  The error being reported states:

"Warning: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp) in /.../beerlovers.com/anahita/vendor/anahita/anahita/src/libraries/default/sessions/sessions.php on line 521".This is encountered immediately after signing up for an account at https://beerlovers.com/people/signup.

I have no template over-rides active.The /tmp folder exists, and has the permissions 755, and my dev environment resides on the same shared server as my live site.  PHP info's for each can be found at https://beerlovers.com/phpinfo.php and http://wscadvtech.com/phpinfo.php  - however, I had removed the dev anahita installation this morning.

Any ideas what might be the cause?

#sessions #migration #people

Read Less
Something might have gone wrong in the migration. Start with comparing the database fields.
Rastin Mehr

Rastin Mehr shared a note

Reminder that Friday to Sunday are #Anahita #Hackathon days. This week's focus will be fixing bugs for the next maintenance release as well as research and prototyping for the version 4.4 #MobileFi... Read More
Reminder that Friday to Sunday are #Anahita #Hackathon days. This week's focus will be fixing bugs for the next maintenance release as well as research and prototyping for the version 4.4 #MobileFirst release 📱💻 Read Less

Hunter Wilkes and Rastin Mehr commented on the topic

Customize the GUI

Hey All,

I want to try and customize the GUI for my site, but I honestly have no idea where to start. Any advice or tips would be greatly appreciated.

Thanks,

Hunter

#gui #template #customization

I changed the htaccess.txt in anahita-platfrom folder to .htaccess, but that did not fix it.
When I ran "locate htaccess" from the project's root directory, all the other htaccess files were already .htaccess
I meant the one in the www directory
Hunter Wilkes liked this
The one in the www directory is already .htaccess
@scott you are using Apache too right? Did you have the same issue that @hunterwilkes is experiencing with the mod_rewrite setup?
Hunter Wilkes liked this
Where's the file that saves the settings?
Mine had the RewriteEnigine On not commented out, and Options +FollowSymLinks was already there. I added Options -Indexes, but the pages still aren't loading.
Mine also says "var sef_rewrite = '1'". So maybe the problem was in the .htaccess?
I like how this thread is progressing. Good job everyone!
Rastin Mehr

Rastin Mehr commented on the topic

libraries/default/sessions/sessions.php error when signing up new user

I've been consistently prevented from signing up a new user on my live site now, even after confirming everything was working properly in my dev environment.  The error being reported states:

"Warn...

Read More

I've been consistently prevented from signing up a new user on my live site now, even after confirming everything was working properly in my dev environment.  The error being reported states:

"Warning: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp) in /.../beerlovers.com/anahita/vendor/anahita/anahita/src/libraries/default/sessions/sessions.php on line 521".This is encountered immediately after signing up for an account at https://beerlovers.com/people/signup.

I have no template over-rides active.The /tmp folder exists, and has the permissions 755, and my dev environment resides on the same shared server as my live site.  PHP info's for each can be found at https://beerlovers.com/phpinfo.php and http://wscadvtech.com/phpinfo.php  - however, I had removed the dev anahita installation this morning.

Any ideas what might be the cause?

#sessions #migration #people

Read Less
the www/tmp folder is fine and it needs to have write permissions for php to use it. That particular folder is used by Anahita to temporarily store files such as compressed css, etc.

PHP sessions however are stored... Read More
the www/tmp folder is fine and it needs to have write permissions for php to use it. That particular folder is used by Anahita to temporarily store files such as compressed css, etc.

PHP sessions however are stored somewhere else and they are protected by the system. Only someone who gains root access to the server can access them. You can find the sessions's path in your php.ini file. The variable is session.save_path

What linux distro are you using? Read Less

Hunter Wilkes and Rastin Mehr commented on the topic

Customize the GUI

Hey All,

I want to try and customize the GUI for my site, but I honestly have no idea where to start. Any advice or tips would be greatly appreciated.

Thanks,

Hunter

#gui #template #customization

I tried changing mod_rewrite to yes, but now the website can't find any of its pages. If you click login, you get this message: "The requested URL /people/session was not found on this server." If you change the url t... Read More
I tried changing mod_rewrite to yes, but now the website can't find any of its pages. If you click login, you get this message: "The requested URL /people/session was not found on this server." If you change the url to have index.php again, you can get to the login page, but then the login will fail because it won't be able to find the next page. Do you know why this is happening? Read Less
If you are on Apache you also need to rename htaccess.txt to .htaccess for the mod_rewrite. Let me know if it worked.
Hunter Wilkes liked this
Rastin Mehr

Rastin Mehr commented on the topic

libraries/default/sessions/sessions.php error when signing up new user

I've been consistently prevented from signing up a new user on my live site now, even after confirming everything was working properly in my dev environment.  The error being reported states:

"Warn...

Read More

I've been consistently prevented from signing up a new user on my live site now, even after confirming everything was working properly in my dev environment.  The error being reported states:

"Warning: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp) in /.../beerlovers.com/anahita/vendor/anahita/anahita/src/libraries/default/sessions/sessions.php on line 521".This is encountered immediately after signing up for an account at https://beerlovers.com/people/signup.

I have no template over-rides active.The /tmp folder exists, and has the permissions 755, and my dev environment resides on the same shared server as my live site.  PHP info's for each can be found at https://beerlovers.com/phpinfo.php and http://wscadvtech.com/phpinfo.php  - however, I had removed the dev anahita installation this morning.

Any ideas what might be the cause?

#sessions #migration #people

Read Less
yes, the sessions are being created in the database then. The guest sessions are created for the site visitors and they are deleted within 15 minutes.
Unkown Person liked this
No the Linux user which is assigned to php should have write access. This seems to be a common issue in php apps. If you google the error message you may find answers in stack overflow or similar websites.

Photos View All

Articles View All

Topics View All

Powered by Anahita