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 Rastin Mehr commented on the topic

Previous Helper

I'm currently trying to figure out how the previous helper works. (https://github.com/anahitasocial/anahita/blob/caa614874314c54fbcfed11ae31178da5660e5fc/src/libraries/default/application/template/filter/alias.php#L41).

I see in the com_people/settings default layout it's called and the default layout in com_actors/settings is displayed. How does the previous helper know which template is the parent? Is it based on the view class or controller or something else?

Where is the loadParent function actually defined? I searching my code locally and on Github but couldn't actually find the declaration.

Read Less
Maybe not, but it's helpful for right now. :P
Rastin Mehr liked this
I understand
Rastin Mehr

Rastin Mehr and Nick Swinford commented on the topic

Previous Helper

I'm currently trying to figure out how the previous helper works. (https://github.com/anahitasocial/anahita/blob/caa614874314c54fbcfed11ae31178da5660e5fc/src/libraries/default/application/template/filter/alias.php#L41).

I see in the com_people/settings default layout it's called and the default layout in com_actors/settings is displayed. How does the previous helper know which template is the parent? Is it based on the view class or controller or something else?

Where is the loadParent function actually defined? I searching my code locally and on Github but couldn't actually find the declaration.

Read Less
I need to read the code to refresh my memory. The idea is that if a layout doesn't exist, then Anahita defaults to the layout provided by the parent component. com_base and com_actors are both parent components. Neith... Read More
I need to read the code to refresh my memory. The idea is that if a layout doesn't exist, then Anahita defaults to the layout provided by the parent component. com_base and com_actors are both parent components. Neither are supposed to be directly dispatchable.

Here is an example: https://github.com/anahitasocial/anahita/blob/master/src/components/com_medium/controllers/abstract.php#L127

https://github.com/anahitasocial/anahita/blob/master/src/components/com_actors/controllers/abstract.php#L209

I'm thinking this could perhaps move even higher in the hierarchy. Read Less
There's only one use of it, in the default layout for com_people/settings (https://github.com/anahitasocial/anahita/blob/867febf4756d690538ac62ef312d8b71acc417bd/src/components/com_people/views/settings/html/default.php). It causes the default layout for com_actors/settings to be loaded in its position.

I think I've figured it out. This line here (https://github.com/anahitasocial/anahita/blob/867febf4756d690538ac62ef312d8b71acc417bd/src/components/com_actors/views/settings/html.php#L41) adds the current components template to the template paths and when you extend from the view, previous allows you to fetch the previous template from the paths. Read Less
Rastin Mehr liked this
I'm reviewing and mapping the dispatcher and controller workflows today so I can optimize them. I'll look into this when I come across it. This concept doesn't have long term benefits, since we are going to move away ... Read More
I'm reviewing and mapping the dispatcher and controller workflows today so I can optimize them. I'll look into this when I come across it. This concept doesn't have long term benefits, since we are going to move away from the idea of rendering layouts and UIs on the server side all together. Read Less
Rastin Mehr

Rastin Mehr and Ian Costanzo commented on the topic

Permissions Errors in Anahita install

I've installed Anahita per the install instructions, and managed to get a working site with an admin user and several installed packages (groups, photos, articles, etc.)  However I am getting error...

Read More

I've installed Anahita per the install instructions, and managed to get a working site with an admin user and several installed packages (groups, photos, articles, etc.)  However I am getting errors whenever I try to access one of the apps, for example:

"... failed to open stream: Permission denied ... /less.php on line 96" (or "... on line 102")

Seems like I'm missing a permission setting somewhere, are there specific permissions I need to setup?

I should mention I've installed on Ubuntu 16.10 with Apache.

Read Less
I think it is a permissions issue as well. If an app doesn't get symlinked, then its database schemes doesn't get created either, because Anahita doesn't see the app. Make sure that php has the right permissions to re... Read More
I think it is a permissions issue as well. If an app doesn't get symlinked, then its database schemes doesn't get created either, because Anahita doesn't see the app. Make sure that php has the right permissions to read,write, and execute files at least in the www directory and all the subdirectories. Read Less
look into php error logs to see the errors. You can set the php error reporting to E_ALL to see everything. At this state Anahita itself cannot produce meaningful errors, because it is not installed yet.
Thanks, I'll give it a try. I think I've got it working, but it'll be good to see the logs ...

I enabled world +rw on www and all sub-directories ...
Rastin Mehr liked this
Nick Swinford

Nick Swinford and Ian Costanzo commented on the topic

Permissions Errors in Anahita install

I've installed Anahita per the install instructions, and managed to get a working site with an admin user and several installed packages (groups, photos, articles, etc.)  However I am getting error...

Read More

I've installed Anahita per the install instructions, and managed to get a working site with an admin user and several installed packages (groups, photos, articles, etc.)  However I am getting errors whenever I try to access one of the apps, for example:

"... failed to open stream: Permission denied ... /less.php on line 96" (or "... on line 102")

Seems like I'm missing a permission setting somewhere, are there specific permissions I need to setup?

I should mention I've installed on Ubuntu 16.10 with Apache.

Read Less
Make sure you have a cache folder in the www folder and that php has access to it.
Rastin Mehr liked this
I made the cache folder world-writable and got past one error.

But I still can't add new notes, articles, etc.

When I click on the input field ("Share a note" or "Start a new topic" for e.g.) the input field... Read More
I made the cache folder world-writable and got past one error.

But I still can't add new notes, articles, etc.

When I click on the input field ("Share a note" or "Start a new topic" for e.g.) the input field disappears.

When I try to view my profile I get the "Something went wrong!" page.

The www/log dir is empty, where can I get info on which error is occurring? (The previous error showed up in apache's error log, which is no longer displaying any errors.)

Edit: I found where to turn on error reporting and I am getting the following - Exception RuntimeException with message "Table 'atria.an_todos_todos' doesn't exist of the following query : SHOW COLUMNS FROM an_todos_todos" Read Less
FYI looks like the todos tables didn't get created. I found the sql and created the tables manually and now things look like they're running as they should, I'm able to create notes, todos, etc.
Ian Costanzo

Ian Costanzo started a topic

Permissions Errors in Anahita install

I've installed Anahita per the install instructions, and managed to get a working site with an admin user and several installed packages (groups, photos, articles, etc.)  However I am getting error...

Read More

I've installed Anahita per the install instructions, and managed to get a working site with an admin user and several installed packages (groups, photos, articles, etc.)  However I am getting errors whenever I try to access one of the apps, for example:

"... failed to open stream: Permission denied ... /less.php on line 96" (or "... on line 102")

Seems like I'm missing a permission setting somewhere, are there specific permissions I need to setup?

I should mention I've installed on Ubuntu 16.10 with Apache.

Read Less
Ian Costanzo

Ian Costanzo commented on the topic

Creating Admin Account Localhost

I'm trying to set up an anahita project and run it locally but whenever I try to create the super admin account on localhost:port/people/signup it sends me to a blank profile page and doesn't allow...

Read More

I'm trying to set up an anahita project and run it locally but whenever I try to create the super admin account on localhost:port/people/signup it sends me to a blank profile page and doesn't allow me to log in with the account i just made. In the terminal gives the error:"PHP Fatal error:  Uncaught Error: Call to undefined function mb_strlen() in /home/peterqafoku/myproject/vendor/anahita/anahita/vendor/nooku/libraries/koowa/helper/string.php:174"Does anyone know the cause of this error?

Read Less
You need to install the mbstring library, for example:

sudo apt-get install php7.0-mbstring

And then restart apache (or nginx).
Rastin Mehr liked this
Nick Swinford

Nick Swinford commented on the topic

Previous Helper

I'm currently trying to figure out how the previous helper works. (https://github.com/anahitasocial/anahita/blob/caa614874314c54fbcfed11ae31178da5660e5fc/src/libraries/default/application/template/filter/alias.php#L41).

I see in the com_people/settings default layout it's called and the default layout in com_actors/settings is displayed. How does the previous helper know which template is the parent? Is it based on the view class or controller or something else?

Where is the loadParent function actually defined? I searching my code locally and on Github but couldn't actually find the declaration.

Read Less
I think I accidentally found the answer to the last question. Pretty sure this is it here: https://github.com/anahitasocial/anahita/blob/caa614874314c54fbcfed11ae31178da5660e5fc/src/libraries/default/base/template/hel... Read More
I think I accidentally found the answer to the last question. Pretty sure this is it here: https://github.com/anahitasocial/anahita/blob/caa614874314c54fbcfed11ae31178da5660e5fc/src/libraries/default/base/template/helper/previous.php#L45

Still not sure what it bases the inheritance off of tho. Read Less
Nick Swinford

Nick Swinford started a topic

Previous Helper

I'm currently trying to figure out how the previous helper works. (https://github.com/anahitasocial/anahita/blob/caa614874314c54fbcfed11ae31178da5660e5fc/src/libraries/default/application/template/filter/alias.php#L41).

I see in the com_people/settings default layout it's called and the default layout in com_actors/settings is displayed. How does the previous helper know which template is the parent? Is it based on the view class or controller or something else?

Where is the loadParent function actually defined? I searching my code locally and on Github but couldn't actually find the declaration.

Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Spam accounts

I got my first spammer today. They created 3 accounts and about 1,200 groups on my site.

https://www.getanahita.com/photos/162831

Any recommendation on how to stop these guys?

Greg Willson liked this
Update on this topic. We have implemented a google recaptcha plugin which protects your Anahita installation from bot attacks. It is using the invisible reCaptcha which is the more subtle and advanced version. https:/... Read More
Update on this topic. We have implemented a google recaptcha plugin which protects your Anahita installation from bot attacks. It is using the invisible reCaptcha which is the more subtle and advanced version. https://github.com/anahitasocial/anahita/tree/master/packages/reCaptcha

You need to sign up for the reCaptcha service and obtain key and secret code for the plugin to work: https://www.google.com/recaptcha/intro/

The plugin protects the registration, login, and add group forms. Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Anahita Project Tutorial?

Hey All,

I'm working on a senior design team that is picking up a project from last year that was using Anahita. Looking through what they've done we are unsure of how to use the Anahita tool. Is th...

Read More

Hey All,

I'm working on a senior design team that is picking up a project from last year that was using Anahita. Looking through what they've done we are unsure of how to use the Anahita tool. Is there any sort of basic tutorial that uses the framework to create a basic website that we could follow to get comfortable using Anahita?

Thanks,

Peter Qafoku

Read Less
Hi Peter, the basic installation and configuration information is here: https://github.com/anahitasocial/anahita/blob/master/README.md which gives you a starting point social network.

There are social apps that yo... Read More
Hi Peter, the basic installation and configuration information is here: https://github.com/anahitasocial/anahita/blob/master/README.md which gives you a starting point social network.

There are social apps that you can use as they are or blueprints for your own custom apps: https://github.com/anahitasocial/anahita/tree/master/packages you'd need to read code and ask questions from us here. We're always here to answer questions.

Paid support is available via www.rmdstudio.com website.

There are countless ways that you can use Anahita, so writing one specific tutorial would leave out other use case scenarios. We normally start with the project requirements and objectives and then offer suggestions on how the project can be implemented using Anahita architecture. Read Less

Peter Qafoku started a topic

Anahita Project Tutorial?

Hey All,

I'm working on a senior design team that is picking up a project from last year that was using Anahita. Looking through what they've done we are unsure of how to use the Anahita tool. Is th...

Read More

Hey All,

I'm working on a senior design team that is picking up a project from last year that was using Anahita. Looking through what they've done we are unsure of how to use the Anahita tool. Is there any sort of basic tutorial that uses the framework to create a basic website that we could follow to get comfortable using Anahita?

Thanks,

Peter Qafoku

Read Less
Nick Swinford

Nick Swinford commented on the topic

Creating Admin Account Localhost

I'm trying to set up an anahita project and run it locally but whenever I try to create the super admin account on localhost:port/people/signup it sends me to a blank profile page and doesn't allow...

Read More

I'm trying to set up an anahita project and run it locally but whenever I try to create the super admin account on localhost:port/people/signup it sends me to a blank profile page and doesn't allow me to log in with the account i just made. In the terminal gives the error:"PHP Fatal error:  Uncaught Error: Call to undefined function mb_strlen() in /home/peterqafoku/myproject/vendor/anahita/anahita/vendor/nooku/libraries/koowa/helper/string.php:174"Does anyone know the cause of this error?

Read Less
Yeah, you need to install the mbstring extension. http://php.net/manual/en/book.mbstring.php
2 people liked this

Peter Qafoku started a topic

Creating Admin Account Localhost

I'm trying to set up an anahita project and run it locally but whenever I try to create the super admin account on localhost:port/people/signup it sends me to a blank profile page and doesn't allow...

Read More

I'm trying to set up an anahita project and run it locally but whenever I try to create the super admin account on localhost:port/people/signup it sends me to a blank profile page and doesn't allow me to log in with the account i just made. In the terminal gives the error:"PHP Fatal error:  Uncaught Error: Call to undefined function mb_strlen() in /home/peterqafoku/myproject/vendor/anahita/anahita/vendor/nooku/libraries/koowa/helper/string.php:174"Does anyone know the cause of this error?

Read Less
Rajkumar Mundel

Rajkumar Mundel and Rastin Mehr commented on the topic

New Technology Stack for Anahita ?

Can Anahita move fully to 

1. React / React-Native

2. Redux

3. GraphQL

4. MonogoDB

?

#MonogoDB #GraphQL #Redux #React

This thought came because i have seen very less contributor on Anahita as compared to...

Read More

Can Anahita move fully to 

1. React / React-Native

2. Redux

3. GraphQL

4. MonogoDB

?

#MonogoDB #GraphQL #Redux #React

This thought came because i have seen very less contributor on Anahita as compared to other projects on GITHUB

PS - I am not coder  and just a thought came so sharing.

Read Less
Something like community edition and Enterprise edition ?
I'm working on the Anahita React/Redux app right now. GraphQL seems to be a natural progression of that as we refine our APIs.

I'm not sure about MongoDB
2 people liked this
Rajkumar Mundel

Rajkumar Mundel started a topic

New Technology Stack for Anahita ?

Can Anahita move fully to 

1. React / React-Native

2. Redux

3. GraphQL

4. MonogoDB

?

#MonogoDB #GraphQL #Redux #React

This thought came because i have seen very less contributor on Anahita as compared to...

Read More

Can Anahita move fully to 

1. React / React-Native

2. Redux

3. GraphQL

4. MonogoDB

?

#MonogoDB #GraphQL #Redux #React

This thought came because i have seen very less contributor on Anahita as compared to other projects on GITHUB

PS - I am not coder  and just a thought came so sharing.

Read Less
Rajkumar Mundel

Rajkumar Mundel commented on the note

Reminder that Friday to Sunday are weekly #Anahita #hackathon days. This week's focus is implementation of Google reCaptcha plugin as well as refactoring Anahita Dispatcher and improving the REST a... Read More
Reminder that Friday to Sunday are weekly #Anahita #hackathon days. This week's focus is implementation of Google reCaptcha plugin as well as refactoring Anahita Dispatcher and improving the REST api. Follow the project group to stay updated, help out, or work on your own Anahita project alongside. Read Less
Belated Happie Birthday Brother :)
Rastin Mehr liked this
Nick Swinford

Nick Swinford started a topic

Change entity associated with controller

Say I have a foo controller; by default the controller will look for a foo entity. What if instead, I wanted the foo controller to default to a bar entity? Is there an easy way to override the defa... Read More
Say I have a foo controller; by default the controller will look for a foo entity. What if instead, I wanted the foo controller to default to a bar entity? Is there an easy way to override the default entity for a particular controller?

Read Less
Rastin Mehr

Rastin Mehr commented on the note

Reminder that Friday to Sunday are weekly #Anahita #hackathon days. This week's focus is implementation of Google reCaptcha plugin as well as refactoring Anahita Dispatcher and improving the REST a... Read More
Reminder that Friday to Sunday are weekly #Anahita #hackathon days. This week's focus is implementation of Google reCaptcha plugin as well as refactoring Anahita Dispatcher and improving the REST api. Follow the project group to stay updated, help out, or work on your own Anahita project alongside. Read Less
I forgot that this Saturday is my birthday. Yes people can sometimes forget their own birthdays. I won't be working tomorrow, but the hackathon is happening today and on Sunday.
Umesh

Umesh and 2 others commented on the topic

500 Error and no error log

For last several months (obviously, I did not spend each day on fixing this issue), I'm stuck at one point in my upgrade process.

I'm getting 500 error in Article Edit code. And there is no error co...

Read More

For last several months (obviously, I did not spend each day on fixing this issue), I'm stuck at one point in my upgrade process.

I'm getting 500 error in Article Edit code. And there is no error code. I tried enabling debug, adding error_reporting(E_ALL); ini_set('display_errors', 1);  in several places. 

I started tracing it from _actionEdit in article.php and still trying to figure out which specific controller chain causing this issue.

As there is no error/debug log, finding it difficult to reach a conclusion.

In one of the StackOverflow thread, it was mentioned that "@" error-control operator suppresses all error messages, however, Anahita has '@' mostly in templates/views and not in controllers.

Has anyone come across such scenario where PHP not generating any error log?

 

Read Less
Umesh
Umesh
2 weeks ago Permalink
Here are the steps I followed to solve this issue

1. Added try - catch block in _actionEdit.ComArticlesControllerArticle

try{

$result = parent::_actionEdit($context);
}
catch(Error $e) {
$trace =... Read More
Here are the steps I followed to solve this issue

1. Added try - catch block in _actionEdit.ComArticlesControllerArticle

try{

$result = parent::_actionEdit($context);
}
catch(Error $e) {
$trace = $e->getTrace();
echo $e->getMessage().' in '.$e->getFile().' on line '.$e->getLine().' called from '.$trace[0]['file'].' on line '.$trace[0]['line'];
$bt = debug_backtrace(); print_r($bt);
}

2. This resulted into getting error - Fatal error: Uncaught Error: Call to undefined function utf8_encode() in /usr/share/anahita-master/vendor/nooku/libraries/koowa/filter/html.php

3. I installed php7.0-xml package to get access to utf8_encode function Read Less
2 people liked this
Glad you figured it out! Thanks for sharing the solution!!
Good job you two on debugging the issue! 🙌🏅🏅
Rastin Mehr

Rastin Mehr shared a note

Reminder that Friday to Sunday are weekly #Anahita #hackathon days. This week's focus is implementation of Google reCaptcha plugin as well as refactoring Anahita Dispatcher and improving the REST a... Read More
Reminder that Friday to Sunday are weekly #Anahita #hackathon days. This week's focus is implementation of Google reCaptcha plugin as well as refactoring Anahita Dispatcher and improving the REST api. Follow the project group to stay updated, help out, or work on your own Anahita project alongside. Read Less

Photos View All

Articles View All

Topics View All

Powered by Anahita