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

Nick Swinford

Nick Swinford and 2 others commented on the topic

Installing Anahita - site:init

Hello folks,

I am also giving Anahita a try after so many years of pause and installing the composer and creating an Anahita project worked so far. But the last step is failing. 

Typing php anahita ...

Read More

Hello folks,

I am also giving Anahita a try after so many years of pause and installing the composer and creating an Anahita project worked so far. But the last step is failing. 

Typing php anahita returns me site:init as a possible command. I executed it and it proceeded with Linking files...

Enter the database user?

But before I could enter anything it failed immediately with the error message

[RuntimeException]

Aborted

site:init [--database-dump[="..."]] [--database-name="..."] [--database-user="..."] [--database-password="..."] [--database-host[="..."]] [--database-port[="..."]] [--database-prefix[="..."]] [--drop-database] [--admin-password[="..."]] [--admin-email[="..."]]

Do you know what is going wrong?

I am using the 1and1 webhosting service and the terminal from mac. Everything worked as Rastin described in the readme-file. The only difference is that I always have to call a php version to let the composer or anahita work. Example: php5.5 anahita site:init.

Any ideas?

Read Less
What version are you using? PHP 5 is pretty old and the more recent releases of Anahita don't support it.

I dumped 1&1 sometime ago and now switching over to DigitalOcean.
2 people liked this
Well, actually it works so far. 1&1 supports GIT in combination with SSH.
I used php5.5. For installing/starting the composer and cloning anahita it was fine. Now, I had a look at the composer.json and read the line... Read More
Well, actually it works so far. 1&1 supports GIT in combination with SSH.
I used php5.5. For installing/starting the composer and cloning anahita it was fine. Now, I had a look at the composer.json and read the line required: php >= 5.6. I'm going to try another version and will tell if it works. Thank you! Read Less
Alright. The /usr/bin/php7.1-cli anahita site:init did it. They not even document this.
I also checked the database. Is it correct that Anahita only contains 7 tables?

Thanks again for the php version hint.
@imani php7 is prefered while Anahita still works on 5.6. Also yes the database only contains 7 tables upon installation and the codebase is now about 11.3 MB
James Imani

James Imani started a topic

Installing Anahita - site:init

Hello folks,

I am also giving Anahita a try after so many years of pause and installing the composer and creating an Anahita project worked so far. But the last step is failing. 

Typing php anahita ...

Read More

Hello folks,

I am also giving Anahita a try after so many years of pause and installing the composer and creating an Anahita project worked so far. But the last step is failing. 

Typing php anahita returns me site:init as a possible command. I executed it and it proceeded with Linking files...

Enter the database user?

But before I could enter anything it failed immediately with the error message

[RuntimeException]

Aborted

site:init [--database-dump[="..."]] [--database-name="..."] [--database-user="..."] [--database-password="..."] [--database-host[="..."]] [--database-port[="..."]] [--database-prefix[="..."]] [--drop-database] [--admin-password[="..."]] [--admin-email[="..."]]

Do you know what is going wrong?

I am using the 1and1 webhosting service and the terminal from mac. Everything worked as Rastin described in the readme-file. The only difference is that I always have to call a php version to let the composer or anahita work. Example: php5.5 anahita site:init.

Any ideas?

Read Less
Rastin Mehr

Rastin Mehr and 2 others commented on the topic

Login Issues

Since I signed in to this Anahita platform, and now in my newly functioning Anahita platform, the logins are not working. It's the same problem so far as I can tell: I provide the correct login inf...

Read More

Since I signed in to this Anahita platform, and now in my newly functioning Anahita platform, the logins are not working. It's the same problem so far as I can tell: I provide the correct login information, the site loads a new URL (www.example.com/index.php/people/sessions) and gets stuck; just a blank page. I have been logging in to this site by asking to update the password, following the link and getting in that way.  Now the new site is presenting the same problem. This has happened with two isolated devices. Does anyone else have this problem?

Read Less
The authentication with email bug fix is in the master branch now. Could you please try logging in Anahitapolis using your email instead of username?
@rastin, I was able to login using my email address.

Don't forget fixing the 401 error page. It currently calls itself and that's what was causing the infinite loop. It needs to be changed to something else or we ... Read More
@rastin, I was able to login using my email address.

Don't forget fixing the 401 error page. It currently calls itself and that's what was causing the infinite loop. It needs to be changed to something else or we may run into this issue again in the future. https://github.com/anahitasocial/anahita/blob/master/src/templates/base/html/errors/401.php Read Less
Rastin Mehr liked this
@nicholasjohn16 it's done, thank you for pointing that out!
Email login worked for me! THANK YOU BOTH! Now to just update my platform with changes made here.
Rastin Mehr liked this
@Rastin Sure. Let me know what I should do.
Rastin Mehr

Rastin Mehr and 2 others commented on the topic

Login Issues

Since I signed in to this Anahita platform, and now in my newly functioning Anahita platform, the logins are not working. It's the same problem so far as I can tell: I provide the correct login inf...

Read More

Since I signed in to this Anahita platform, and now in my newly functioning Anahita platform, the logins are not working. It's the same problem so far as I can tell: I provide the correct login information, the site loads a new URL (www.example.com/index.php/people/sessions) and gets stuck; just a blank page. I have been logging in to this site by asking to update the password, following the link and getting in that way.  Now the new site is presenting the same problem. This has happened with two isolated devices. Does anyone else have this problem?

Read Less
@lukesimon edit your www/configuration.php file and for the livesite add www.yourdomain.com or whatever your domain name is. Let me know if it worked.
I still have the edits Nick had me enter in place, so I got an error code:

1: Allowed memory size of 67108864 bytes exhausted (tried to allocate 3072 bytes) in /home/edginlin/myproject/vendor/anahita/anahita/vendo... Read More
I still have the edits Nick had me enter in place, so I got an error code:

1: Allowed memory size of 67108864 bytes exhausted (tried to allocate 3072 bytes) in /home/edginlin/myproject/vendor/anahita/anahita/vendor/nooku/libraries/koowa/template/abstract.php on line 535

I tried what was already in the $live_site first just to see if it would change. 'example.com' 'www.edgin.link' and 'edgin.link' all gave the same error code. Sorry. I'm happy to try anything else you suggest. Read Less
ok set the $live_site value to be www.edgin.link that solves one issue. I'm still trying to figure out the issue with the loop that is causing crash. To be sure, could you run the following command once more:

$ php... Read More
ok set the $live_site value to be www.edgin.link that solves one issue. I'm still trying to figure out the issue with the loop that is causing crash. To be sure, could you run the following command once more:

$ php anahita site:symlink

that's to make sure all symlinks are created properly. Read Less
According to the log file that @NicholasJohn16 provided it's the LibBaseViewTemplate-load( ) method that's failing to load. Nick, could you please investigate in this function on your installation and see if you can ... Read More
According to the log file that @NicholasJohn16 provided it's the LibBaseViewTemplate->load( ) method that's failing to load. Nick, could you please investigate in this function on your installation and see if you can give me some pointers to reproduce the bug? https://github.com/anahitasocial/anahita/blob/master/src/libraries/default/base/view/template.php#L197 Read Less
This is the execution stack that falls into a loop
I ran the command and got nothing back. Tried logging in again and got a new error code though: 1: Allowed memory size of 67108864 bytes exhausted (tried to allocate 640 bytes) in /home/edginlin/myproject/www/template... Read More
I ran the command and got nothing back. Tried logging in again and got a new error code though: 1: Allowed memory size of 67108864 bytes exhausted (tried to allocate 640 bytes) in /home/edginlin/myproject/www/templates/base/html/errors/401.php on line 1

Well, sort of new.... Read Less
Rastin Mehr liked this
Thank you Luke, we've narrowed down the error to a class and function. Now we need to find out what's causing it. I appreciate your patience!
I've tracked down part of the reason why this is happening!

@Rastin, try logging in with email address, instead of username. That's when you get the error!

@LukeSimon, login using your username instead of your e... Read More
I've tracked down part of the reason why this is happening!

@Rastin, try logging in with email address, instead of username. That's when you get the error!

@LukeSimon, login using your username instead of your email and you shouldn't have a problem. Read Less
Got it! Maybe you changed the error code, but now if the login fails (which it does if you use a email address instead of a username) it returns a 401 error which attempts to load to errors/401 template, which attempt... Read More
Got it! Maybe you changed the error code, but now if the login fails (which it does if you use a email address instead of a username) it returns a 401 error which attempts to load to errors/401 template, which attempts to load itself, resulting an infinite loop. 😛

https://github.com/anahitasocial/anahita/blob/master/src/templates/base/html/errors/401.php

@rastin, do you want this template to direct to one of the others or something different? Read Less
Rastin Mehr liked this
Yep, it tells me it doesn't recognize the information when I use username. But I didn't give the blank page at least! Progress?! Let know if there is anything else I can do @NicholasJohn16 I'm sure this issue can't el... Read More
Yep, it tells me it doesn't recognize the information when I use username. But I didn't give the blank page at least! Progress?! Let know if there is anything else I can do @NicholasJohn16 I'm sure this issue can't elude you and @Rastin much longer. Read Less
Nick Swinford

Nick Swinford and 2 others commented on the topic

Login Issues

Since I signed in to this Anahita platform, and now in my newly functioning Anahita platform, the logins are not working. It's the same problem so far as I can tell: I provide the correct login inf...

Read More

Since I signed in to this Anahita platform, and now in my newly functioning Anahita platform, the logins are not working. It's the same problem so far as I can tell: I provide the correct login information, the site loads a new URL (www.example.com/index.php/people/sessions) and gets stuck; just a blank page. I have been logging in to this site by asking to update the password, following the link and getting in that way.  Now the new site is presenting the same problem. This has happened with two isolated devices. Does anyone else have this problem?

Read Less
PHP 5.6.24 & MySQL 5.6.17
Rastin Mehr liked this
Got it, do you have the option to do a test with php 7 as well?
Yes, on PHP 7, I'm getting different errors. Looks like there's some kind of infinite loop going on. You can download all of the errors and stracktraces here (https://www.dropbox.com/s/52e55i6chdksga1/session.html?dl=0).
Rastin Mehr liked this
Looks like Anahita is trying to load files that don't exist or the paths are constructed incorrectly. Is this only happening on Windows machines or it is the same on Unix and Linux machines too? Do you have a way to v... Read More
Looks like Anahita is trying to load files that don't exist or the paths are constructed incorrectly. Is this only happening on Windows machines or it is the same on Unix and Linux machines too? Do you have a way to verify that? Read Less
It has to be cross platform cause @Lukesimon's host is Linux, it appears.

Are you not getting the issue locally on your Mac?
Rastin Mehr liked this
It’s working fine on at least 2 Mac OS machines and our server. I need a way to reproduce the bug.
I did some checking and this issue first appears in 4.3.8 and it only seems to affect fresh installs. Sites that I've updated to 4.3.8 or greater don't have an issue with logging in.
I have failed to log in through two different Mac devices, one with desktop architecture, one with mobile. Got in here to reply by password reset.
I think we are talking about 2 different issues here.

Luke, to be sure, your shared hosting account is a linux environment, right? Also what versions of MySql and PHP you have there?
@lukesimon also what was the issue you were experiencing with GetAnahita.com that you couldn't login? Could you explain it in more details please? I want to see if I can reproduce it.
Rastin Mehr

Rastin Mehr shared a note

Reminder that next 3 days are the weekly #Anahita #Hackathon days. We will be fixing some bugs and have a 4.3.10 release ready. We'll also be working on the Anahita #React app. Follow the project g... Read More
Reminder that next 3 days are the weekly #Anahita #Hackathon days. We will be fixing some bugs and have a 4.3.10 release ready. We'll also be working on the Anahita #React app. Follow the project group to get updates, participate, or work on your own Anahita project alongside. 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
I spent more time debugging this today and got no where. The only thing I think could be causing the issue is that the plugin event isn't firing earlier enough in the process to inject the behavior and let the behavio... Read More
I spent more time debugging this today and got no where. The only thing I think could be causing the issue is that the plugin event isn't firing earlier enough in the process to inject the behavior and let the behavior react.

I think this because I did $this->getBehaviors() in the stories controller _actionBrowse and got 7 behaviors with none of them being networkable.

Want me to throw my code into a github repo to make it easier for you to take a look? Read Less
Rastin Mehr liked this
That would be a good idea. Will you be alright to put it in a public repo? If it is private, you can add me to the repo. My username is: rmdstudio
Rastin Mehr

Rastin Mehr and 2 others commented on the topic

Login Issues

Since I signed in to this Anahita platform, and now in my newly functioning Anahita platform, the logins are not working. It's the same problem so far as I can tell: I provide the correct login inf...

Read More

Since I signed in to this Anahita platform, and now in my newly functioning Anahita platform, the logins are not working. It's the same problem so far as I can tell: I provide the correct login information, the site loads a new URL (www.example.com/index.php/people/sessions) and gets stuck; just a blank page. I have been logging in to this site by asking to update the password, following the link and getting in that way.  Now the new site is presenting the same problem. This has happened with two isolated devices. Does anyone else have this problem?

Read Less
I can't reproduce the bug. I just installed Anahita both from the master branch and composer package on 32M php memory and it all went through smoothly. Could you please give me some more information on how I can repr... Read More
I can't reproduce the bug. I just installed Anahita both from the master branch and composer package on 32M php memory and it all went through smoothly. Could you please give me some more information on how I can reproduce the issue? Read Less
I'm not certain what else I can offer accept that when viewing your comment for example I clicked to view it and found I was was logged out. I have tried selecting to stay logged in after re-setting my password, but t... Read More
I'm not certain what else I can offer accept that when viewing your comment for example I clicked to view it and found I was was logged out. I have tried selecting to stay logged in after re-setting my password, but the system can't seem to handle that either. Perhaps it's an issue with cookies?

It is exactly the same in the new Anahita system for my website.

What files are most associated with the login functions? I would love to look over them just to learn more about the process. I'll be happy to report any findings if you'd like to suggest I look for something in particular. Read Less
Rastin Mehr liked this
Oh that's because I had just pushed fresh code to the live site and whenever that happens, the session are cleared out. We need to put in more infrastructure in order to do more seamless upgrades.
Here are my steps to reproduce:

1. composer create-project anahita/project login-test
2. anahita site:init
3. Create account
4. Log out
5. Log back in again.

And then you get an error.
Still couldn't reproduce it. Are you testing with php 5 or 7? Could you please tell me your php and mysql versions?
Rastin Mehr

Rastin Mehr and Luke Simon commented on the topic

Are there other symlinks for smooth installation?

I am working with my webhost to upload Anahita (webhostpython.com they really are great). He has downloaded and initiated, but it still won't show up in the webrowser and gives 500 Internal Server ...

Read More

I am working with my webhost to upload Anahita (webhostpython.com they really are great). He has downloaded and initiated, but it still won't show up in the webrowser and gives 500 Internal Server Error. He mentioned symlinks: 

"When I try to force via redirection for /project/www or /www when migrating the files, the script prints "Something went wrong!" and nothing else loads. There are no errors written to the log directory either.

The only way to fix this might be messing with symlinks to route public_html to www."

I mentioned the symlink command in the installation direction and he replied:

"There is a symlink:

anahita -> vendor/bin/anahita

This was created during the setup process. I think the only way to get this script to function normally based on how it was coded is symlinking the www to public_html. That is probably the only option without the developer making the appropriate changes."

(Apologies for all the copying and pasting, but I'm a real novice at code and don't want to misrepresent what the host said.)

I gather that we should try adding other symlinks? If so, which/ where might we try.

Thanks for the support.

Read Less
What could go wrong? What other systems you host was talking about?
From what I understood after looking up symlinks, he was worried the symlink would not update with the rest of the system in the case of backups and the like. Here is what he wrote me when I relayed your suggestion to... Read More
From what I understood after looking up symlinks, he was worried the symlink would not update with the rest of the system in the case of backups and the like. Here is what he wrote me when I relayed your suggestion to replace the public_html with a symlink (which did work):

"This is not something really supported by cPanel and this might cause issues down the line. The script really needs to be rebuilt, but I can attempt the symlink option.

I worry that this might effect some aspects of cPanel regarding file backups and so forth if not set to follow symlinks, so I cannot be sure the long term consequences of this, especially when restoring a backup which will break the symlink configuration."

So far as I am concerned, I just need to read up on this and make sure I'm prepared IF something goes wrong. It looks like there are plenty of ways to avoid that -which I so appreciate Nick sharing. Do you think there are any other possible problem other than update issues with this symlink? Read Less
You don't need file back ups. All the files that you need are on GitHub. Store all the uploaded file in AWS storage. You only need to backup your database and server image.

You can't maintain a social network like ... Read More
You don't need file back ups. All the files that you need are on GitHub. Store all the uploaded file in AWS storage. You only need to backup your database and server image.

You can't maintain a social network like a wordpress website 🙂 Read Less
Luke Simon liked this
Your best option is to setup a dedicated server in the cloud. If you managed to get Anahita working on a shared hosting, it's fine. You can use it for learning how Anahita works. For a production site, build a server ... Read More
Your best option is to setup a dedicated server in the cloud. If you managed to get Anahita working on a shared hosting, it's fine. You can use it for learning how Anahita works. For a production site, build a server with AWS where you have all the control over the server. Read Less
If you are using a default Anahita installation, upgrading is as simple as running these commands:

$ composer update (to get fresh code from our repository)
$ php anahita site:symlink (to redo symlink)
$ php anah... Read More
If you are using a default Anahita installation, upgrading is as simple as running these commands:

$ composer update (to get fresh code from our repository)
$ php anahita site:symlink (to redo symlink)
$ php anahita db:migrate:up (run database migrations) Read Less
Ha! Ya I think I got the idea this brings "Not just another Wordpress site" slogan to a whole new level! Sheesh. Thank you for letting me know how simple the program is. Really impressive. I will look further into ser... Read More
Ha! Ya I think I got the idea this brings "Not just another Wordpress site" slogan to a whole new level! Sheesh. Thank you for letting me know how simple the program is. Really impressive. I will look further into server options too. Read Less
Rastin Mehr liked this
Rastin Mehr

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
Rastin Mehr liked this
I appreciate the fact that you tried, because I really want to make this work. Let me do some prototyping on my end and see what I can come up with.
Rastin Mehr

Rastin Mehr and Nick Swinford 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
A lot changed from 4.2 to 4.3. We removed Joomla remember. The approach I am recommending is also a prefered approach. We should be able to add behaviors to controllers or replace them using an alias in a system plugi... Read More
A lot changed from 4.2 to 4.3. We removed Joomla remember. The approach I am recommending is also a prefered approach. We should be able to add behaviors to controllers or replace them using an alias in a system plugin. Same thing with entity classes.

It would be nice if we could get rid of user and authentication plugins and add behaviours to the person and session controllers via a system plugin. It would be a cleaner design in the end. Read Less
Sorry to throw more onto your plate, but something's gotta be wrong. I took your advice and attempted to insert the functionality as a behavior, but it had no effect.

Loading ...


So I attempted aliasing the cont... Read More
Sorry to throw more onto your plate, but something's gotta be wrong. I took your advice and attempted to insert the functionality as a behavior, but it had no effect.

Loading ...


So I attempted aliasing the controller with a customer one and that had no effect either.

Loading ...


Do you see anything wrong in my code? Read Less
Rastin Mehr liked this
Nick Swinford

Nick Swinford and 2 others commented on the topic

Login Issues

Since I signed in to this Anahita platform, and now in my newly functioning Anahita platform, the logins are not working. It's the same problem so far as I can tell: I provide the correct login inf...

Read More

Since I signed in to this Anahita platform, and now in my newly functioning Anahita platform, the logins are not working. It's the same problem so far as I can tell: I provide the correct login information, the site loads a new URL (www.example.com/index.php/people/sessions) and gets stuck; just a blank page. I have been logging in to this site by asking to update the password, following the link and getting in that way.  Now the new site is presenting the same problem. This has happened with two isolated devices. Does anyone else have this problem?

Read Less
I just tested it out and I'm getting an error too. Could you set $debug = 1 and $error_reporting to E_ALL and report back when you get?
I edited the file in the File Manger, updated, then tried to login. I got:

1: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /home/edginlin/myproject/vendor/anahita/src/libraries/d... Read More
I edited the file in the File Manger, updated, then tried to login. I got:

1: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /home/edginlin/myproject/vendor/anahita/src/libraries/default/base/template/abstract.php on line 435

Is that sufficient, or did you want a report from somewhere else? Read Less
I just wanted to verify what I was getting. I'm getting something similar.

1: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 64 bytes) in C:\wamp\www\playground\login-test\vendor\anahita\anahi... Read More
I just wanted to verify what I was getting. I'm getting something similar.

1: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 64 bytes) in C:\wamp\www\playground\login-test\vendor\anahita\anahita\src\libraries\default\base\template\abstract.php on line 435 Read Less
Question: Are the edits to the file just for gathering info and I should revert them for proper function of the website, or should they stay as-is. I'm thinking the former, but thought I would ask.
They're fine for during testing and developing, but you'd want to switch them back on production.
Got it. Thanks.
Nick, Luke, Is this bug in the new release?
Yeah, I tested it with 4.3.9.
I'll look into it this afternoon. We also have a javascript patch to apply. Any idea what's causing this?
Luke Simon

Luke Simon and Nick Swinford commented on the topic

Are there other symlinks for smooth installation?

I am working with my webhost to upload Anahita (webhostpython.com they really are great). He has downloaded and initiated, but it still won't show up in the webrowser and gives 500 Internal Server ...

Read More

I am working with my webhost to upload Anahita (webhostpython.com they really are great). He has downloaded and initiated, but it still won't show up in the webrowser and gives 500 Internal Server Error. He mentioned symlinks: 

"When I try to force via redirection for /project/www or /www when migrating the files, the script prints "Something went wrong!" and nothing else loads. There are no errors written to the log directory either.

The only way to fix this might be messing with symlinks to route public_html to www."

I mentioned the symlink command in the installation direction and he replied:

"There is a symlink:

anahita -> vendor/bin/anahita

This was created during the setup process. I think the only way to get this script to function normally based on how it was coded is symlinking the www to public_html. That is probably the only option without the developer making the appropriate changes."

(Apologies for all the copying and pasting, but I'm a real novice at code and don't want to misrepresent what the host said.)

I gather that we should try adding other symlinks? If so, which/ where might we try.

Thanks for the support.

Read Less
Thanks Nick and Rastin for the notes. I was in process of trying out Nick's approach when the host notified me that he had buikt the symlink and everything was running. I LOGGED IN!

My host was very concerned this... Read More
Thanks Nick and Rastin for the notes. I was in process of trying out Nick's approach when the host notified me that he had buikt the symlink and everything was running. I LOGGED IN!

My host was very concerned this may present a problem in the future what with symlinks not updating with the rest of the system. Thoughts? My knowledge of symlinks goes so far as what Wikepedia provided me yesterday. Really fascinating though, and I appreciate the efficiency they provide. Read Less
Rastin Mehr liked this
Ideally, whenever you push updates or make changes with to Anahita, you should reinitialize all of those symlinks with the anahita cli. You can see an example of my git post_recieve hook here: https://www.getanahita.c... Read More
Ideally, whenever you push updates or make changes with to Anahita, you should reinitialize all of those symlinks with the anahita cli. You can see an example of my git post_recieve hook here: https://www.getanahita.com/notes/160225 Read Less
Sweet! Really clever. Where in the code/what file should I consider adding something like this?
Luke Simon

Luke Simon started a topic

Login Issues

Since I signed in to this Anahita platform, and now in my newly functioning Anahita platform, the logins are not working. It's the same problem so far as I can tell: I provide the correct login inf...

Read More

Since I signed in to this Anahita platform, and now in my newly functioning Anahita platform, the logins are not working. It's the same problem so far as I can tell: I provide the correct login information, the site loads a new URL (www.example.com/index.php/people/sessions) and gets stuck; just a blank page. I have been logging in to this site by asking to update the password, following the link and getting in that way.  Now the new site is presenting the same problem. This has happened with two isolated devices. Does anyone else have this problem?

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
@Rastin, did you see this? I was wondering if this is broken or removed.
Could you try a different approach instead? Write a controller behaviour and put your code in the _actionBrowse method in it. Then use the onBeforeDispatch event in system plugin to obtain the controllers that you wan... Read More
Could you try a different approach instead? Write a controller behaviour and put your code in the _actionBrowse method in it. Then use the onBeforeDispatch event in system plugin to obtain the controllers that you want and add the behaviour to them. I'm not sure if the onAfterControllerBrowse events are available within the system plugin. I know onAfterControllerBrowse are used in the toolbar classes. Read Less
The onAfterControllerBrowse might work better than _actionBrowse in your custom network behaviour.
Just to be clear, this works in 4.2.x. It only stopped working after your controller shenanigans.

Yeah, I can try a different approach, but this approach is very close to your desire to allow components to listen t... Read More
Just to be clear, this works in 4.2.x. It only stopped working after your controller shenanigans.

Yeah, I can try a different approach, but this approach is very close to your desire to allow components to listen to all controller events and react to them instead of having plugins. Read Less
Rastin Mehr

Rastin Mehr shared a note

Please keep the bug reports coming. We've been releasing frequent updates to make Anahita more stable, all because you've been taking the time to report an issue and work with us. Thank you for that!
Rastin Mehr

Rastin Mehr and 2 others commented on the topic

Are there other symlinks for smooth installation?

I am working with my webhost to upload Anahita (webhostpython.com they really are great). He has downloaded and initiated, but it still won't show up in the webrowser and gives 500 Internal Server ...

Read More

I am working with my webhost to upload Anahita (webhostpython.com they really are great). He has downloaded and initiated, but it still won't show up in the webrowser and gives 500 Internal Server Error. He mentioned symlinks: 

"When I try to force via redirection for /project/www or /www when migrating the files, the script prints "Something went wrong!" and nothing else loads. There are no errors written to the log directory either.

The only way to fix this might be messing with symlinks to route public_html to www."

I mentioned the symlink command in the installation direction and he replied:

"There is a symlink:

anahita -> vendor/bin/anahita

This was created during the setup process. I think the only way to get this script to function normally based on how it was coded is symlinking the www to public_html. That is probably the only option without the developer making the appropriate changes."

(Apologies for all the copying and pasting, but I'm a real novice at code and don't want to misrepresent what the host said.)

I gather that we should try adding other symlinks? If so, which/ where might we try.

Thanks for the support.

Read Less
Hi Luck, welcome to Anahita tribes!

1. we encourage you to build a server in a cloud hosting and use that instead of shared hosting. Shared hosting doesn't provide the tools needed for configuring and maintaining a... Read More
Hi Luck, welcome to Anahita tribes!

1. we encourage you to build a server in a cloud hosting and use that instead of shared hosting. Shared hosting doesn't provide the tools needed for configuring and maintaining a social network. To give you an idea, an average wordpress installation may have a few hundred records and pages are still mostly static. A social network will easily have tens and thousands of records and it will email out thousands of custom notification emails every day. Our updates are frequent and you'll not only have updated files, but also migration scripts that need to modify tens of thousands of records in the database.

2. anahita relies on symlinking to build an anahita installation in the www directory. That's because creating and removing symlinks is a lot quicker and less resource consuming than copying files over every time that you are updating or migrating your Anahita installation.

Question: did you use command line tools to install Anahita? Do you have the option to delete public_html and create a symlink with the same name that points to the www directory? Read Less
Luke Simon liked this
Thanks for the warm welcome!

I was on a shared host, as you probably read. I'm now working through a VPS though. I intend to run a crowdfund for the service once the site is up, so am trying to work on a smaller h... Read More
Thanks for the warm welcome!

I was on a shared host, as you probably read. I'm now working through a VPS though. I intend to run a crowdfund for the service once the site is up, so am trying to work on a smaller host plan that is functional. I fully intend as the service grows to use quite a lot of space. Thanks for the note.

That said, I am using direct command line tools for the installation -totally superior method I agree. Haven't tried a symlink in place of the public_html though. I'll talk with the webhost and try that out. I really admire the carefully thought out architecture of Anhita and am looking forward to using it more. Read Less
Rastin Mehr liked this
I like what you are building. Keep us posted here about your progress please!

Let me know how the public_html symlink approach works. Sometimes our tribe members get things working outside our recommendations and t... Read More
I like what you are building. Keep us posted here about your progress please!

Let me know how the public_html symlink approach works. Sometimes our tribe members get things working outside our recommendations and they work. If not, look into both Amazon AWS and MIcrosoft Azure. I know Amazon charges per use which means if you don't have much traffic, technically they won't be billing you much. They also have options to select a country in which your data and files are stored. I am seriously considering both options. Read Less
Luke Simon liked this
If you're getting "Something went wrong!", it sounds to me like Anahita is linking correctly, but there might be some other issue. Is the page styled or is it mainly black text on white?

In your configuration.php f... Read More
If you're getting "Something went wrong!", it sounds to me like Anahita is linking correctly, but there might be some other issue. Is the page styled or is it mainly black text on white?

In your configuration.php file, change $debug to 1 and $error_reporting to E_ALL and see what errors are displayed on the page. Read Less
Luke Simon liked this
Luke Simon

Luke Simon started a topic

Are there other symlinks for smooth installation?

I am working with my webhost to upload Anahita (webhostpython.com they really are great). He has downloaded and initiated, but it still won't show up in the webrowser and gives 500 Internal Server ...

Read More

I am working with my webhost to upload Anahita (webhostpython.com they really are great). He has downloaded and initiated, but it still won't show up in the webrowser and gives 500 Internal Server Error. He mentioned symlinks: 

"When I try to force via redirection for /project/www or /www when migrating the files, the script prints "Something went wrong!" and nothing else loads. There are no errors written to the log directory either.

The only way to fix this might be messing with symlinks to route public_html to www."

I mentioned the symlink command in the installation direction and he replied:

"There is a symlink:

anahita -> vendor/bin/anahita

This was created during the setup process. I think the only way to get this script to function normally based on how it was coded is symlinking the www to public_html. That is probably the only option without the developer making the appropriate changes."

(Apologies for all the copying and pasting, but I'm a real novice at code and don't want to misrepresent what the host said.)

I gather that we should try adding other symlinks? If so, which/ where might we try.

Thanks for the support.

Read Less
Rastin Mehr

Rastin Mehr shared a note

I just published an article to show you how to stop mail notification crons properly and avoid a rogue notification situation: Read More
I just published an article to show you how to stop mail notification crons properly and avoid a rogue notification situation:

How to configure Anahita mail notification crons

How to configure Anahita mail notification crons without getting into a rogue notification situation.

#LearnedLessons #RogueNotifications #MailNotifications #Anahita Read Less
Nick Swinford liked this
Rastin Mehr

Rastin Mehr published a new Article

How to configure Anahita mail notification crons

How to configure Anahita mail notification crons without getting into a rogue notification situation.

Photos View All

Articles View All

Topics View All

Powered by Anahita