Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

  • 0
smorjkompaniet

After upgrade, not possible to checkout

Question

I have upgraded to 1.1 stable from 1.08, but at the last step in checkout I get following error:

 

Property Order->total_shipping is not valid

in file classes/ObjectModel.php at line 1036

Source file: classes/ObjectModel.php

1017:     * @throws PrestaShopException
1018:     *
1019:     * @since   1.0.0
1020:     * @version 1.0.0 Initial version
1021:     */
1022:    public function validateFields($die = true, $errorReturn = false)
1023:    {
1024:        foreach ($this->def['fields'] as $field => $data) {
1025:            if (!empty($data['lang'])) {
1026:                continue;
1027:            }
1028:
1029:            if (is_array($this->update_fields) && empty($this->update_fields[$field]) && isset($this->def['fields'][$field]['shop']) && $this->def['fields'][$field]['shop']) {
1030:                continue;
1031:            }
1032:
1033:            $message = $this->validateField($field, $this->$field);
1034:            if ($message !== true) {
1035:                if ($die) {
1036:                    throw new PrestaShopException($message);
1037:                }
1038:
1039:                return $errorReturn ? $message : false;
1040:            }
1041:        }
1042:
1043:        return true;
1044:    }
1045:
1046:    /**

Stack trace

1. classes/ObjectModel.php:324 source ObjectModelCore->validateFields()
2. classes/order/Order.php:285 source ObjectModelCore->getFields()
3. classes/ObjectModel.php:586 source OrderCore->getFields()
4. classes/order/Order.php:303 source ObjectModelCore->add(arguments)
5. classes/module/PaymentModule.php:564 source OrderCore->add()
6. modules/custompayments/controllers/front/validation.php:116 source PaymentModuleCore->validateOrder(arguments)
7. classes/controller/Controller.php:197 source CustompaymentsvalidationModuleFrontController->postProcess()
8. classes/controller/FrontController.php:253 source ControllerCore->run()
9. classes/Dispatcher.php:837 source FrontControllerCore->run()
10. ./index.php:33 source DispatcherCore->dispatch()


Anyone have a clue what it can be an what I can do about it?

/Daniel

 

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi,

I seem to figure it out! The name on the carrier was to long(about 38 letters), I shored this down and everything work perfectly!
Thank you for this wonderful shop and forum!

/Daniel

  • Like 2

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

×
×
  • Create New...