Forum Replies Created
- AuthorPosts
-
PS: your siteground generated combined js throws continuous errors as soon as anything gets amended on the order page
I would advise you to disable any kind of caching, minifications and those sorts of thing to start off with and see what happens then.there’s also a lot of stuff does does not work because of the way things are minified / combined
i cannot know what exactly is causing what, but I would start by disabling any kind of caching plugins you have running
(three also seems to be a siteground caching thing going on of some sort)In short though,
– what does your debug.log say
– can you reproduce the problem consistently
– if so, do you have the same problem if you disable *all* non-wppizza plugins and use a default theme
(in other words see : https://docs.wp-pizza.com/troubleshooting/ )so what does your debug.log say on that site ?
I cannot answer that as I know nothing about winorder
All I do know is thatoptions
needs to be indexed>Could this caused it?
that’s the wrong way to look at it as it happens.Your change of postcodes actually fixed the error of the way the json is generated
(without actual access to your setup it’s admittedly just an educated guess though but I’m 99% sure)>Hmmm the Jason file could be Created by the Winorder WPpizza Plugin.
That’s very much likely and the problem is that it’s wrong the way it is generated and not accounting for / ignoring indexes>So the WInOrder Ssupport says it must be something server side
If my suspicions are correct than “Yes” in so far that it’s server side, but it’s still their issueIn other words. Your update /change of the postcodes fixed the symptoms but not the cause and it will happen again unless the json generated accounts for indexes correctly
FYI: I’ve tidied up the docs somewhat now (and added/amended some things in the plugin)
PayPal Docs
Hopefully this will make things clearer now.The troubleshooting doc is still a big mess with all these things added over the years and I need to get to that at some point. However, I would hope the main docs will require less troubleshooting afterwards in the first place (unless paypal messes things up their end – wouldn’t be the first time) . We live in hope ….
and – out of curiosity – did the available options change ? (i.e the list of postcodes selectable )
ok, that clears that up.
than the question is, what generates that json (I am quite sure it’s not wppizza though I could perhaps be wrong) ?furthermore , your first json has
“value”: “5”,
not only is there generally no corresponding index inoptions
, there is also no corresponding option with an index of 5 in your second json data (but that could be because it’s from a different system /site . I cannot know)in other words, the ‘value’ must be present in the ‘options'(index)
First of all, I know nothing about winorder other than that it exists .
That aside (for the moment anyway)
– what is generating that json ? Where does it come from ?
– are both examples you are giving above from the same url with the same software rnning (wppizza plugin versions , wordpress, php etc) and were generated around the same time (as in : within a week of each other or so) ?>I think it is a sort of “caching problem”
I very much doubt thatThe problem is (most likely) that your first example does not have the options indexed properly but again that depends on what is producing it / where that json data comes from
the 405 is fine here – it’s just old documentation that has been amended over the years as paypal changed their integrations.
Note to self: I need to update this sooner rather than later to avoid further confusions(the 405 relates to the fact nothing is being posted to this url when you go there directly in your browser, whereas an ipn response will – and must have – post data)
I’ll see if I can make this more elegant too if one simply wants to see if this script is working without actually sending any data.
At the end of the day what really counts is this:
Set the mode in the paypal plugin to test and make a test. if it works it’s all good , if not check the debug.log
If it works in test , it will work in live (as it’s the same) provided you are using the right credentials – i.e email address and/or REST credentialsthe debug.log you attached above is referring to a website where it’s all still as it was and you WILL have problems there
your ‘carrello’ , ‘/il-mio-account/carrello/’ urls may well be working but I cannot know as there’s no domain mentioned related to those in this thread.
>…. what happened to these
They are not needed as now globally implemented for all gateways and basically automaticAny references to ‘…../plugins/wppizza-gateway-paypal//ipn/ipn.php …’ in the plugin – if using v5.4 – are old and wrong and I’ll need to take them out to avoid confusion (the double backslash would not have caused any issues either way and is just a typo). Sorry about that.
For v5.4 + The correct webhook url is
http[s]://[your-domain]/?wppizza-listener=paypalipn (note the ‘ipn’ at the end)
(NOT http://xxxxxxxxx.de/kassel-nord/?wppizza-listener=paypal)
Depending on your exact settings, you may not even have to set that in your paypal account , but it’ll be safer to do this anyway
Hope that helps
A few observations.
a) the debug log you sent me has none of these warnings you are referring to above in it
b) it does however have several hundred entries per day ofPHP Warning: session_start(): Cannot start session when headers already sent in
. PLease refer to https://docs.wp-pizza.com/troubleshooting/?section=headers-already-sent.
That said, I also believe this is more of the symptom than the cause
c) when trying to to verify the order at paypal, paypal respondes with a 403 error – i.e access forbidden (again, I think this is also only a symptom , not the cause)What is definitely a problem – which may or may not be the root cause for everything but certainly one of it – is that you are caching you order page. Or more accurately, you are putting the checkout (widget) onto your article pages which are cached.
You must not cache any pages that have the checkout ‘widget’ on them or take steps to work around this (see also https://docs.wp-pizza.com/getting-started/?section=setup)
This is definitely something that needs fixing first. Once you have done that, see if you still have issues and report backSorry, didnt see the link to the debug amongst all of this
will have a lookmost (if not all) of these are symptoms not the cause.
if “ordervars” does not exist there is something severely wrong elsewhere
so , yet again, I need the (full) debug log
Your “suggested fix” would cause more harm than good> I’ll share the log file with you.
I haven’t received anything ?!>I haven’t made any changes
But your host may have .For example update php versions – though that should be a good thing – or some firewall updates or what not. I cannot guess of course. But let’s start with the debug.log> for the past 5 days with several customers
As nothing has changed for month in the wppizza plugin and indeed the paypal one, the first question really would be what it is that changed your end about 5 days ago ?that aside, have you enabled debug (https://docs.wp-pizza.com/troubleshooting/) and checked your debug.log ?
Are all of your other plugins/themes up to date ?
Hi
a couple of things
First of all, your request isn’t anything that anyone has ever requested so it’s not something I would typically do unless the request comes multiple times (see also https://docs.wp-pizza.com/faqs/?section=customisation )
That said, I was kind of intrigued as to whether this would be easily achievable – purely out of curiosity.
As it turns out, it’s not actually that simple, but as I was already going down that road I ended up adding it anyway as mentioned in the changelogs .
See:
– https://www.wp-pizza.com/downloads/wppizza-preorder/ in this case
– or generally any plugin updates notifications in your WP dashoboad for a given plugin.As I cannot really provide individual notifications as to what things have changed where,
changelogs will always be the best place to look for what has happened if updates are available for a given plugin .Thank you
- AuthorPosts