Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7830877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:26:47+00:00 2026-06-02T11:26:47+00:00

I am trying to building an external webApp to upload some products in Joomla!

  • 0

I am trying to building an external webApp to upload some products in Joomla! with virtuemart.
All works as expected but I have still a problem with Jfactory::getApplication.

I have followed this tutorial:

http://docs.joomla.org/How_to_create_a_stand-alone_application_using_the_Joomla!_Platform

But when I go calling the VmModel on the __construct method it calls a parent::__construct($config):

$this->_cidName = $cidName;
// Get the pagination request variables
$mainframe = JFactory::getApplication() ;
$limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');

That raises the following error:

vCall to undefined method JException::getUserStateFromRequest()

If could help there is also:

vNotice: Trying to get property of non-object in /home/giuseppe/homeProj/ModaNuovo/libraries/joomla/application/application.php on line 201

raised by:

public static function getInstance($client, $config = array(), $prefix = 'J')
{
    if (empty(self::$instances[$client]))
    {
        // Load the router object.
        $info = JApplicationHelper::getClientInfo($client, true);

        $path = $info->path . '/includes/application.php';
        if (file_exists($path))
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T11:26:51+00:00Added an answer on June 2, 2026 at 11:26 am

    The solution is to instantiate the main app together with your one, and if needed also login the following way:

    $app = JFactory::getApplication('administrator');
    
    // create a form token
    $user = JFactory::getUser(42);
    $session = JFactory::getSession();
    $hash = JApplication::getHash($user->get('id', 0) . $session->getToken(true));
    

    If needed you have also to perform login to validate this hash.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to run jetty without building the whole project, but simply point jetty
I'm trying to use an external library (wingraph) in a simple program. I have
All, I am trying to test my grails app using Hudson. I have in
I am trying to building my project using waf.The Project is complied properly but
I'm building a table and trying to add some CSS as well as some
I am trying to start building a Custom Window in WPF. I thought I
How to disable qt creator from auto building when trying to debug? Currently when
I'm building an iPhone application and trying to create a savePDFFile method by using
So I'm currently trying to map my building's network with a RoR implementation. I
I am trying to follow a tutorial on building a GridView Layout however I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.