Page 1 of 2

Order impossible

Posted: 13 Dec 2021 13:30
by Sinis
Hello !

I would like to check out and there is a problem since this morning :

chrome_FO1HYgpr7a.png

I wand to give money ! I want to pay ! I want to order ! :)

Thank you

Re: Order impossible

Posted: 13 Dec 2021 13:44
by exxos
I think this is relating to a store change I did a few days ago... https://www.exxosforum.co.uk/forum/viewt ... =90&t=4931

Thanks for the report, I will go check the error logs and see what I screwed up..

Re: Order impossible

Posted: 13 Dec 2021 13:49
by exxos
@Sinis Please try doing your order again and hopefully it will work this time.. ?

Re: Order impossible

Posted: 13 Dec 2021 14:10
by Sinis
@exxos Same bug.

It comes just after clicking on "Complete order" :
View Basket / Checkout / "Complete order", when you have the "shipping address" on the left of the screen.

Re: Order impossible

Posted: 13 Dec 2021 15:45
by exxos
This is now fixed.

I really don't understand the problem, because I have been using version 3 of my store code on my V2 store.. BUT the changes I made were on V3, but the file I did a binary comparison on it before making changes to make sure I was not going to break V2 system, and other than three lines which were basically comments, there was no changes whatsoever. But that file with the comments in malfunctions even when I removed those three commented lines. So I just went back to the original V2 file, made the changes I did last week again, and now it is working.. So I'm basically sat puzzling what the differences between the working and not working file :stars:

Capture.JPG

Was line 3 it was tripping up on. :shrug:

444.JPG
1.JPG

Re: Order impossible

Posted: 13 Dec 2021 16:03
by Sinis
@exxos Yes, it's good!

Order ok!

...because I spent a LOT of time helping you (about 3 minutes :lol : ) I know you'll send the order as soon as possible : I should receive it tomorrow :)

On a more serious note, if I can help you, it would be my pleasure.

Re: Order impossible

Posted: 13 Dec 2021 16:06
by Sinis
...perhaps not a problem regarding the file's content, but the file itself : rights and permissions ? Ok on the "old" file, Ko on the new one.

Just an idea.

Re: Order impossible

Posted: 13 Dec 2021 16:12
by exxos
Sinis wrote: 13 Dec 2021 16:06 ...perhaps not a problem regarding the file's content, but the file itself : rights and permissions ? Ok on the "old" file, Ko on the new one.

Just an idea.
I don't know, because it was a error in the logs at lines 3..

Code: Select all

PHP Warning:  Unterminated comment starting line 3 in /var/www/html/atari/store2/checkoutxxxxxx.php on line 3, referer: https://www.exxosforum.co.uk/atari/store2/
The file must have been running.. But that was the only change in the file from the previous file.

Just goes to show how even when you take precautions to make sure you are editing the right stuff.. Things still can go wrong :( It is why I did a binary comparison on the file before I started making changes, to make sure I had not change anything else between V2 and V3 store files..

Do not like it when things do not add up :cry: There is even similar comments further down the file anyway .

:dizzy:

Re: Order impossible

Posted: 13 Dec 2021 17:17
by Badwolf
I recall you mentioning the other day that PHP's parsing was a bit skew whiff -- tokens matching substrings of function names, for example.

Is it possible PHP treats "/ <space> *" the same as "/*", hence it looks like the whole file past line 3 is commented out?

BW

Re: Order impossible

Posted: 13 Dec 2021 17:48
by derkom
Badwolf wrote: 13 Dec 2021 17:17 Is it possible PHP treats "/ <space> *" the same as "/*", hence it looks like the whole file past line 3 is commented out?
It certainly shouldn't. When I stick this on my own server...

Code: Select all

<?php

// this is a test comment
// *** this is a second test comment
/* this is a third test comment

phpinfo()
?>
...I don't get an error until the third comment.