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.