Jump to content

Order details don't work


TuPapi
 Share

Recommended Posts

Hi everyone, 

I have a problem when I click on an order to view its details

This is the log:


Fatal error: Uncaught exception 'Stripe\Exception\InvalidArgumentException' with message '$config must be a string or an array' in /home/xbhbuobm/public_html/modules/stripe_official/vendor/stripe/stripe-php/lib/BaseStripeClient.php:55 Stack trace: #0 /home/xbhbuobm/public_html/modules/stripe_official/classes/StripeDispute.php(44): Stripe\BaseStripeClient->__construct(false) #1 /home/xbhbuobm/public_html/modules/stripe_official/classes/StripeDispute.php(51): StripeDispute->getAllDisputes() #2 /home/xbhbuobm/public_html/modules/stripe_official/stripe_official.php(1281): StripeDispute->orderHasDispute(NULL) #3 /home/xbhbuobm/public_html/classes/Hook.php(569): Stripe_official->hookDisplayAdminOrderContentOrder(Array) #4 /home/xbhbuobm/public_html/classes/Hook.php(524): HookCore::coreCallHook(Object(Stripe_official), 'hookdisplayAdmi...', Array) #5 /home/xbhbuobm/public_html/controllers/admin/AdminOrdersController.php(1787): HookCore::exec('displayAdminOrd...', Array) #6 /home/xbhbuobm/public_html/classes/controller/AdminContr in /home/xbhbuobm/public_html/modules/stripe_official/vendor/stripe/stripe-php/lib/BaseStripeClient.php on line 55

This is the url:

https://www.sitepath.com/admin357py1rz3/index.php?controller=AdminOrders&id_order=783&vieworder&token=b5268492e1ad05a051338a63d83a7158

Version of prestashop: 1.6.1.0

Version of PHP: 5.6

Someone can help me?

Thanks

 

Edited by TuPapi (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

  • 2 months later...
  • 1 month later...

An exception has been thrown during the rendering of a template ("$config must be a string or an array").

in src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/Blocks/View/details.html.twig (line 115)

    </div>

  </div>

</div>

{% set displayAdminOrderTabLink = renderhook('displayAdminOrderTabLink', {'id_order': orderForViewing.id}) %}

{% set displayAdminOrderTabContent = renderhook('displayAdminOrderTabContent', {'id_order': orderForViewing.id}) %}

Share this post


Link to post
Share on other sites

Just now, rudrajitnira said:

An exception has been thrown during the rendering of a template ("$config must be a string or an array").

in src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/Blocks/View/details.html.twig (line 115)

    </div>

  </div>

</div>

{% set displayAdminOrderTabLink = renderhook('displayAdminOrderTabLink', {'id_order': orderForViewing.id}) %}

{% set displayAdminOrderTabContent = renderhook('displayAdminOrderTabContent', {'id_order': orderForViewing.id}) %}

This bug is throwing in my Prestashop version 1.7.7.3 and 1.7.71 and php version  from 7.1 to 7.3.

  • Like 1

Share this post


Link to post
Share on other sites

  • 3 weeks later...
30 minutes ago, gaid said:

Stripe refused to fix it.

Often a question of how do you approach those guys.

Is your shop selling already? Try a nice approach where the stripe team is your only hope.

Share this post


Link to post
Share on other sites

We are talking with E202 from Friday about this mistake. I sent debug information. Esteban from e202 wrote: it is your server mistake. Sorry For mistake it is not Stripe yourself it is their contracter E202 refused to help.

Edited by gaid (see edit history)

Share this post


Link to post
Share on other sites

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More