Really hope someone can help with this.
I have built a site in Zen Cart (still to add most products and still in testing stage). Up until yesterday all was fine. If you typed the URL it would go straight to the homepage.
However, last night I was clearing up some redundant files and I have erased something I shouldn’t have. Now I get the following:
If you click on the store link it takes you into the site (albeit the actual store and not the homepage). So everything is there, it’s just the URL is not hooked up right.
I guess it’s something to do with a missing index.php or index.html file but not sure? I have tried a couple things but each time it gave me a mild heart attack as the screen just went white.
If it needs extra info please let me know.
Thanks for any advice.
Yes your right. I tried to upload my .htaccess file which is on my local side to the server but it won’t have it. I use Dreamweaver for my file system/ftp so maybe it’s that? Strange.
Before you would type the URL and it would stay as that for the homepage, instead of index.php?main_page=page&id=20’ trailing after, so I will play around with it.
Thanks for your help though Aleksejs. It certainly works far better than it did!
I will play around with the .htaccess files and see what up with them and maybe post back if still giving trouble.
Ah sorry Aleksejs I worded that bad. What I meant by ‘homepage’ was the ‘home’ link in the navbar (the one with with the JScript slider on).
It took a lot of effort to get it to do that before and now I’ve screwed it up :injured:
If by “bring to the homepage” you meant that if user clicks on url: zentest.net and goes straight to your store, then yes.
Hey thanks for the fast reply :). That does work in bringing up the store page, but would I be able to use this method to bring me to the homepage with the URL as that’s how it was before?
But actually it seems to me, that you’ve deleted .htaccess file where all cool mod_rewrite things were, no?
One solution is just to create index.php file in web-root directory with this content:
ZenCart is a nice piece of software (for canned e-commerce) but it is inherently touchy as, if you make any correction which PHP objects to, you’re SOL (something out of luck)! PHP errors are nasty little buggars when you have to troubleshoot without error messages (and WHITE pages are the result if you’re not getting error messages).
It’s a MAJOR PITA but you’ve apparently trashed things and a close review of your code is in order:
Look for spaces before the <?php in every file and remove them.
ZenCart says that they removed the ?> from the end of all their files and have left it to PHP to close before getting back to the index.php (or other calling module). Perhaps closing them will help.
Loose ’ or " in your text is always a killer! Either get in the habit of escaping them with backslashes OR using ' or ".
If those don’t resolve your problem, you may have to fall back to the REINSTALL stage and then make incremental changes, test that they work, then repeat.