Title: [Plugin: stella plugin] Internal Server Error when calling a function from the API
Last modified: August 20, 2016

---

# [Plugin: stella plugin] Internal Server Error when calling a function from the API

 *  [staffan.estberg](https://wordpress.org/support/users/staffanestberg/)
 * (@staffanestberg)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-stella-plugin-internal-server-error-when-calling-a-function-from-the-api/)
 * I’m running a local WP install under [http://localhost/mypage](http://localhost/mypage)
   with Stella v 1.3.47, and I can’t get my head around how to call the functions
   from the API – whenever I try and make a call I get an Internal Server Error.
   Read that the plugin might not work when the base path is a subfolder so I created
   a Vhost placing it directly under [http://mypage](http://mypage), still with 
   the same result.
 * Running this inside functions.php –
 *     ```
       add_action( 'stella_init', 'stella_functions', 1 );
   
       function stella_functions() {
          $current_lang = stella_get_current_lang();
          $langs = stella_get_lang_list();
       }
       ```
   
 * and this inside index.php (only using this as page file for the entire site, 
   it’s a “one page” solution):
    `stella_get_current_lang();`
 * [http://wordpress.org/extend/plugins/stella-free/](http://wordpress.org/extend/plugins/stella-free/)
 * Edit: I don’t get an Internal Server Error anymore, but I still don’t get any
   data when calling a function from the API.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Ruslan.Khakimov](https://wordpress.org/support/users/ruslankhakimov/)
 * (@ruslankhakimov)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-stella-plugin-internal-server-error-when-calling-a-function-from-the-api/#post-3105099)
 * Please, try this one:
 *     ```
       add_action('after_setup_theme', 'stella_functions', 1000);
   
       function stella_functions() {
       	$current_lang = stella_get_current_lang();
       	$langs = stella_get_lang_list();
       }
       ```
   
 *  Thread Starter [staffan.estberg](https://wordpress.org/support/users/staffanestberg/)
 * (@staffanestberg)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-stella-plugin-internal-server-error-when-calling-a-function-from-the-api/#post-3105102)
 * Thanks, still doesn’t show anything though. Just to make sure, calling the functions
   outisde of the loop works? Such as before the <html> element –
 *     ```
       <?php
       stella_get_current_lang();
       ?>
       <html>
       <body>
       </body>
       </html>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: stella plugin] Internal Server Error when calling a function
from the API’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/stella-free.svg)
 * [Stella plugin](https://wordpress.org/plugins/stella-free/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stella-free/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stella-free/)
 * [Active Topics](https://wordpress.org/support/plugin/stella-free/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stella-free/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stella-free/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [staffan.estberg](https://wordpress.org/support/users/staffanestberg/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-stella-plugin-internal-server-error-when-calling-a-function-from-the-api/#post-3105102)
 * Status: not resolved