$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 7 years, 9 months ago by
Jose Castaneda. Reason: please use backticks or the code button
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 7 years, 9 months ago by
michalrama.
-
This reply was modified 7 years, 9 months ago by
Jose Castaneda. Reason: fixed code, please use backticks
What is the version of Jigoshop eCommerce that you’re using?
@michalrama
I assume you already tried deactivating, removing, and re-installing this plugin? It could just be a corrupted install.
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.
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.
There are quite a few options available for creating backups. https://ww.wp.xz.cn/plugins/search/backup/
Updraft is good, the Jetpack plugin has support for that via VaultPress
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.
Hello,
Yes, I’ve already reported it and it works.
Thank you