Jack_mcs Posted September 1, 2023 Posted September 1, 2023 @pandrei I created a new theme and added a sales channel for it. A symlink exists for the sales channel. But when I try to load that them in a browser, it fails with a 404 error. All of the other thems work as expected. Any thoughts on what this could be? Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
pandrei Posted September 3, 2023 Posted September 3, 2023 On 9/1/2023 at 2:23 PM, Jack_mcs said: I created a new theme and added a sales channel for it. A symlink exists for the sales channel. But when I try to load that them in a browser, it fails with a 404 error. All of the other thems work as expected. Any thoughts on what this could be? Could you send me the log files (Admin->Settings->Tools->Error log viewer->Download all)? Quote
Jack_mcs Posted September 4, 2023 Author Posted September 4, 2023 The log files have been sent. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
pandrei Posted September 5, 2023 Posted September 5, 2023 17 hours ago, Jack_mcs said: The log files have been sent. Thanks. It does not contain any significant errors. I think, you should check the mod_rewrite work: https://www.oscommerce.com/wiki/Checking_Apache_mod_rewrite Quote
Jack_mcs Posted September 5, 2023 Author Posted September 5, 2023 Since the other channels work, I didn't think that would be an issue but I tried it just in case and the rewrite is working. I will do another clean install but just to avoid problems, does the order of creating a theme and sales channel for it matter? The steps I take are: Copy a theme to create a new one. Add a symlink for the new theme. Copy a sales channel and set it to the new theme. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
CHD-UK Posted September 5, 2023 Posted September 5, 2023 (edited) 7 hours ago, Jack_mcs said: Add a symlink for the new theme. Hi Jack I assume that was a typo and you meant "add a symlink for the new channel (as per your first post) ? You could confirm that the copying of a theme is working by copying one as a staring point, then apply it to an existing sales channel. You may need to clear the cache at ADMIN -> Settings -> cache control for it to show. One thing to be aware of is that copying a theme can take 30 - 60 seconds with the spinning widget, so wait for that to complete before proceeding. Edited September 5, 2023 by CHD-UK Quote
Jack_mcs Posted September 5, 2023 Author Posted September 5, 2023 (edited) 17 minutes ago, CHD-UK said: you meant "add a symlink for the new channel Yes, I meant sales channel. Edited September 5, 2023 by Jack_mcs Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Jack_mcs Posted September 5, 2023 Author Posted September 5, 2023 Thanks for the suggestions. 19 minutes ago, CHD-UK said: You could confirm that the copying of a theme is working by copying one as a staring point, then apply it to an existing sales channel. I did try this before posting here but it would not open that way either. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
CHD-UK Posted September 5, 2023 Posted September 5, 2023 Hmmm, that s a good one. Not sure where to start! Ok, I assume that you have one working sales channel eg. yourdomain.com/furniture with the furniture theme set. Can you change this to the watch theme for example ? does that not work for you? ( I'm sure you know what you are doing, but just for completeness here's how I swap the theme... ) ADMIN -> Sales chanels (click channel name in the correct row) then click the Choose theme button on the left panel) Click Choose theme Click "Watch theme " Assign button Select the banners This one gets me all the time - remember to click save ! Success ?? Result : Furniture store with watch theme layout. Do you get the same? Quote
pandrei Posted September 6, 2023 Posted September 6, 2023 17 hours ago, Jack_mcs said: Since the other channels work, I didn't think that would be an issue but I tried it just in case and the rewrite is working. I will do another clean install but just to avoid problems, does the order of creating a theme and sales channel for it matter? The steps I take are: Copy a theme to create a new one. Add a symlink for the new theme. Copy a sales channel and set it to the new theme. Did you change salles channel url? Quote
CHD-UK Posted September 6, 2023 Posted September 6, 2023 2 hours ago, pandrei said: Did you change salles channel url? Good point @pandrei... and I'd just like to add "make sure that you don't include the https://" in the sales channel url because I found out that doesn't produce the desired result either. Quote
Jack_mcs Posted September 6, 2023 Author Posted September 6, 2023 18 hours ago, CHD-UK said: Ok, I assume that you have one working sales channel eg. yourdomain.com/furniture with the furniture theme set. Can you change this to the watch theme for example ? does that not work for you? All of the stock themes work. If I change the link for the failing theme to one of the other themes it will load. If I change the link for a stock theme to my new theme, it fails to load. So that would indicate the theme is invalid, I think. I changed the theme as you mentioned but it still fails to load. I created a new copy of the theme but it failed too. One thing that seems wrong is that when I copy a theme, the popup never shows complete. I compared the files for the two themes and they match so that may not be an issue. I tried creating a new theme manually just in case but it fails too. The failing themes do load when the view in popup is used. I must be missing something. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
CHD-UK Posted September 6, 2023 Posted September 6, 2023 Hi Jack, 4 hours ago, Jack_mcs said: One thing that seems wrong is that when I copy a theme, the popup never shows complete. From my limited experience, the copy process does seem to take a fair while. For example when I copy a theme it can take 30 - 60 seconds before the "complete dialog is displayed. So with this in mind, Could you try copying again, but give it say a couple of minutes to complete ? If you still have the spinning widget after that then there has to be a system / server issue which will need to be investigated. If it is the OSC system, I would hope that there is an error in the logs which we can look at. Quote
Jack_mcs Posted September 7, 2023 Author Posted September 7, 2023 15 hours ago, CHD-UK said: So with this in mind, Could you try copying again, but give it say a couple of minutes to complete ? I left it for 5 minutes but it never stopped spinning. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
CHD-UK Posted September 7, 2023 Posted September 7, 2023 (edited) Hi Jim, Thanks for trying that - I guess that is going to be the crux of the problem then and that sounds like something crashing out during the copy process. If I recall, I had this issue with a previous earlier version of OSC so can you check that you are running the latest version. For reference, you can find the version in ADMIN -> App Shop -> (System Update TAB) If you do have the latest version installed, then we are going to probably need to enlist the assistance of @pandrei to get to the bottom of this! Three places to check for errors Server Error Log Do you have access to the server error log file in your hosting control panel? If you do, check to see if there is anything in there of significance - out of memory error? Permission error? Path not exists? that occurred around the time you performed the them copy. Actually, any errors in there could be significant and may need to be addressed. OSC Error Log I believe that you have already sent these to Pandrei, but it would probably be worth revisiting this again Javascript Errors Open your Admin site then, bring up the web browser debug tools and the console (in Firefox that's f12 then console tab) You will need to retry the copy theme process (because the log files are not written to a file) and see if anything is logged as an error in the console during the process - will be bright red Let us know your findings... Edited September 7, 2023 by CHD-UK Quote
Jack_mcs Posted September 8, 2023 Author Posted September 8, 2023 It's the latest version and Andrei didn't see any problems in the logs. I'm going to do a new, third, install this weekend and test the steps with the theme one at a time. I've installed V4 many times and have not had this problem. This is the first time on this server so maybe that is causing it somehow, though all of the requirements are met and are even higher than the recommended. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
CHD-UK Posted September 8, 2023 Posted September 8, 2023 Hi Jack, No worries, I hope that the re-install will fix this issue. I always like to try and pin down the cause of something just in case it happens in a live system... You mentioned that "it is the first time on this server" so do you have another server that you could do a separate test install on and then a "theme copy"so that you can say it works on configuration A but not on B then we could try to figure out the difference ?? Perhaps could be a php function restriction on the new set up... faster with better specs but more restrictive security policies? Post back if there are still issues and hopefully someone may be able to provide a solution regarding server config Quote
Jack_mcs Posted September 10, 2023 Author Posted September 10, 2023 The failure turned out to be with the symlink, though I don't know why. I always just copy/paste the command and edit the relevant parts. I was doing that here and running a check on the symlink showed it was pointing correctly. But when I typed the command instead of copying, the template loaded??? Maybe some invalid character was getting included in the copy/paste though I can't see it. Just one of those mysteries, I guess. I appreciate the helpful suggestions. Unrelated to this but noticed during the installation were these two issues. The countries list only had the UK and a warning for the php version appeared for some reason (see images). Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.