• Resolved michalrama

    (@michalrama)


    Hello,

    Can not View Page Checkout->Pay.

    When opened, only a white screen with text appears

    Fatal error: Call to a member function getKey() on null in /3w/private/s/private/wp-content/plugins/jigoshop-ecommerce/src/Jigoshop/Frontend/Page/Checkout/Pay.php on line 56

    Please advice.

    Thank you

    PS. Private is just replacing the name of a webhosting and a site that I do not want to publish here.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter michalrama

    (@michalrama)

    $order = $this->orderService->find((int)$this->wp->getQueryParameter('pay'));

    After this line, the variable remains null, so the problem is here.

    Unfortunately, I can not upload all the files here, but here is a link to github

    github

    github – Link to file

    • This reply was modified 6 years, 3 months ago by Jose Castaneda. Reason: please use backticks or the code button
    Thread Starter michalrama

    (@michalrama)

    I do not know what to think about. When I compare both files (1st on the my web, 2nd on the github), they are different.

    In my file

    
    $order = $this->orderService->find((int)$this->wp->getQueryParameter('pay'));
    
    if ($order->getKey() !== $_GET['key']) {...</em>
    
    On github, however, the code is different.
    
    {
    $order = $this->orderService->find((int)$this->wp->getQueryParameter('pay'));
    
    <em>if(!$order instanceof Order) {
        $this->messages->addError(__('Invalid order ID. Unable to process order.', 
        jigoshop-ecommerce'));
        $this->wp->redirectTo($this->options->getPageId(Pages::ACCOUNT));
    }
    if ($order->getKey() !== $_GET['key']) {...
    
    • This reply was modified 6 years, 3 months ago by michalrama.
    • This reply was modified 6 years, 3 months ago by Jose Castaneda. Reason: fixed code, please use backticks

    What is the version of Jigoshop eCommerce that you’re using?

    Thread Starter michalrama

    (@michalrama)

    2.1.15

    @michalrama

    I assume you already tried deactivating, removing, and re-installing this plugin? It could just be a corrupted install.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    It could just be a corrupted install.

    Was what I was thinking as well. I’m wondering if the hosting company could be using some sort of file caching. I’ve had instances where a file edit wouldn’t show for up to 15 minutes because of the way the server/host was setup.

    Thread Starter michalrama

    (@michalrama)

    Yes, you may be right.

    In the past, I’ve solved the upgrade issues for the current version

    The update eventually succeeded, but the wrong installation could be related.

    But I would have to completely backup the plugin (settings, products, categories …).

    Would you recommend me a reliable backup plugin.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    There are quite a few options available for creating backups. https://www.ads-software.com/plugins/search/backup/

    Updraft is good, the Jetpack plugin has support for that via VaultPress

    Thread Starter michalrama

    (@michalrama)

    So, in the end, it was not necessary to make a backup and restore.

    The authors have modified my pay.php file

    Now the program does not crash, but when you click the Purchase and pay button, so
    the My Account page appears, but it is a warning

    Invalid order ID. Unable to process

    But from incoming emails it looks like the order has been successfully created.

    So I do not know what to think about.

    The error was caused by assigning the “Checkout -> Pay” page as the “Thank you” page.

    Thread Starter michalrama

    (@michalrama)

    Hello,

    Yes, I’ve already reported it and it works.

    Thank you

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Page Checkout->Pay problem’ is closed to new replies.