Jump to content

Runtime Exception in Order Process : Determining the active language requires a contextual employee instance.


Theodor-Maja

Recommended Posts

I get this Exception when i want to buy a Product in my Shop ! and want to proceed the Order in the last Step !

There comes many Error-Messages ! , but the Article is normally on Stock and so on !!!

I am using Prestashop 1.7.7.2

Do someone have the same Problem and can help ?

Best Regards

Theodor Maja

ordererror.png

Link to comment
Share on other sites

  • 2 weeks later...

Hi Theodor Maja,

We can't help resolve the problem, but we also found this exact same symptom last night, so I thought I would comment as it may help you or someone else get closer to a solution.

More concretely: the customer passes the order through to the final stage and during the payment processing the order is committed, an error 500 occurs, the order is left with no status in the back office and the customer no longer has access to the order as if the order has been processed (nothing is emailed or communicated to the customer).

In our logs, the error 500 has a very similar stack trace as you show here.

In our situation, we are running Prestashop 1.7.7.3 and we tracked the issue down to the Amazon Marketplace Module (version 4.9.326) - just disabling this ensured our sites were working again. We determined this was a potential issue because it was the most recent thing that had changed.

We aren't yet sure if the issue is related to something wrong in the database (it was working in our test environment), but we are now working with the module author.

I would suggest you look at recent modules you have installed and try to disable them to see if one of those is causing the issue.

Regards,

 - Ashley

Link to comment
Share on other sites

Hello again Theodor!

Are you sure that's a good idea? What happens with your inventory when you process orders now? We probably won't be making such a change, accurate stock keeping is important for us, but we haven't analysed the issue. We'd rather run standard Prestashop code and fix the issue with the 3rd party module.

Regards,

 - Ashley

Link to comment
Share on other sites

  • 1 year later...

Hello, I got the same issue. Not sure if it will be the same for you guys but it appeared in my case on payments. So this problem appears if the context doesn't have an employee in its parameters, and it comes from SymfonyContainer since it tries to call ps core api stock movement repository, and the context is made out of scope so it doesn't have an employee. In my case, I found a module witch initiates a new AppKernel which is requered for Symfony(dont know all the details but if it's called in front it creates symfony container) to work and it caused a problem. A recommendation is to try to find a module witch is trying to call a new Kernel and boot it. If you don't have access to code, it's not much you can do just try disabling custom modules.

Edited by Ernestas Luza (see edit history)
Link to comment
Share on other sites

  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...