Re: checkout page is blank
Quote:
Class 'flatau' not found in /home10
Check that includes/modules/shipping/flatau.php exists
Re: checkout page is blank
No, not there. I checked in the v154 download and it dousn't seem to exist at all.
Re: checkout page is blank
Quote:
Originally Posted by
jenpen
No, not there. I checked in the v154 download and it dousn't seem to exist at all.
That's because flatau.php is not part of the Zen Cart base distribution. You've either installed a plugin or "cloned" the flat-rate shipping module at some point in time.
Re: checkout page is blank
Quote:
Originally Posted by
jenpen
I looked in the logs and the most recent one says:
[09-Jun-2015 14:06:59 Australia/Perth] PHP Warning: include_once(includes/modules/shipping/flatau.php): failed to open stream: No such file or directory in /home10/xxxxxxxxxxx/public_html/store/includes/classes/shipping.php on line 58
As lat9 has stated, this file is not a part of the ZenCart distribution package, so you won't find it there.
Kobra was asking in this file exists in *your* store /modules/shipping/ folder. If it *doesn't* this would, as lat9 also stated, suggest that you've either installed a plugin or "cloned" the flat-rate shipping module at some point in time.
In *addition* to this deduction, we can also infer that
1. This module has never worked since the day it was installed (or cloned), and that you've only just discovered these log entries, or
2) If it HAS been working in the past, someone or something has deleted the includes/modules/shipping/flatau.php file.
and
3) If this file was intentionally deleted (for example, if you no longer use it) there is a file called "flatau.php" that still exists in the /languages/english/modules/shipping/ folder that *also* needs to be deleted.
OR,
4) This module has been installed and working on a previous zencart installation, the files removed/deleted during an upgrade, and the old database was migrated, which still indicates that this module is active.
Cheers
RodG
Re: checkout page is blank
Three possible cures.
1) Replace the mssing file from a backup (assuming you have one).
2) Delete the languague file associated with the module.
3) log into the admin of your site, navigate to the shipping modules section and note/fix any errors that appear.
I'm a little vague on when exactly when ZenCart adds/removes the 'installed modules' to its DB configuration table, and the mere act of navigating to this section of the site may even be enough to remove the entry that no longer exists.
Cheers
RodG
Re: checkout page is blank
Thanks, all of you.
I do have a vague memory of cloning flat.php when I first installed the store, many years ago. I upgraded to v154 recently but did not delete any files, just uploaded over the top, so it's a mystery.
Anyway, I found a copy in a back-up, replaced it where it should be, but... still a blank page :(
Re: checkout page is blank
BTW the only shipping module activated is FREE SHIPPING! because they only sell memberships.
Re: checkout page is blank
Quote:
Originally Posted by
jenpen
ound a copy in a back-up, replaced it where it should be, but... still a blank page :(
Does the module show up under the modules->shipping section?
Are you still getting the same entries in the error logs?
In the absence of any further (probably better) advice, and assuming that you have a little bit of experience with phpmyadmin (or similar tool) you could try searching the zen configuration table for the configuration_key value "MODULE_SHIPPING_INSTALLED" and looking to see what the configuration_value field contains, and if it does contain an entry for the flatau.php module you can edit and remove it.
This *shouldn't* really be needed though because this field *should* be automatically updated by ZenCart, dependent on which modules it finds are installed.
Cheers
RodG
Re: checkout page is blank
Right, now I'm getting somewhere. I realised that this dumb user (me) had not checked the "Free shipping" option in the checkout_shipping page, which is perhaps why I was getting a blank page even after replacing flatau.php. Shouldn't it have been pre-checked by default as it's the only option? Anyway when I went back to try again, it was pre-checked.
So then I went on to the payment page to find the store was not accepting payments in my area - what? And realised that our NAB-Transact payment module - also a single option - had also disappeared. I have now replaced those files too and all seems well.
Thanks RodG and Kobra for your considered responses. I don't know how those files got deleted. But all is fine now.
Re: checkout page is blank
Quote:
Originally Posted by
jenpen
Right, now I'm getting somewhere. I realised that this dumb user (me) had not checked the "Free shipping" option in the checkout_shipping page, which is perhaps why I was getting a blank page even after replacing flatau.php.
In theory, replacing the missing file should have fixed the issue.
Quote:
Originally Posted by
jenpen
Shouldn't it have been pre-checked by default as it's the only option?
No, not really, it is possible that the merchant really doesn't want ANY shipping options, and having ZenCart automatically enable a 'Free Shipping' could be quite costly if the merchant wasn't aware of it.
Quote:
Originally Posted by
jenpen
Anyway when I went back to try again, it was pre-checked.
That is pretty much what I was thinking *could* happen when I wrote
"the mere act of navigating to this section of the site may even be enough to remove the entry that no longer exists".
After I'd written that though you had restored the missing file.
Quote:
Originally Posted by
jenpen
So then I went on to the payment page to find the store was not accepting payments in my area - what? And realised that our NAB-Transact payment module - also a single option - had also disappeared. I have now replaced those files too and all seems well
Thanks for the update that all is well.
I've several theories that will explain all of the symptoms/problems and findings regarding this matter and how/why the problems arose in the 1st place, but that is all they are, theories, and only one of those will be correct, so I'll not waste anyones' time by putting them in writing.
All I can/will say for sure is that for whatever reason, when you did the upgrade, the files and the database managed to get out of sync with each other, and the combination of re-adding the files and navigating to (and/or making a change) in the settings area(s) of ZenCart was enough to get everything resynced again.
I think that if there is a lesson to be learned here is that after doing an upgrade it would be wise to check and verify *all* admin/config settings before making the site live. It seems to me that the simple act of *checking* is enough to put right some of the wrongs that may result due to files that go missing during the upgrade.
Needless to say, the check itself won't take care of the missing files, but it is enough to make ZenCart 'forget' they ever existed in the first place... at least that is a part of one of my theories. :)
Cheers
RodG
Re: checkout page is blank
Thanks RodG, I admit I'm getting slack sometimes around upgrading.
Re: checkout page is blank
Quote:
Originally Posted by
jenpen
I admit I'm getting slack sometimes around upgrading.
Don't we all? ;-)
Cheers
RodG