-
Re: Skin Switch
> --> PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/ideas22/public_html/sandbox/includes/templates/sophy_blue/common/html_header.php on line 72.
This is not a fatal error that would give you a white screen.
Fixing errors like the one you posted is documented here:
https://docs.zen-cart.com/user/upgra...ach-deprecated
-
Re: Skin Switch
OK this error:
> [08-Feb-2023 18:56:33 UTC] PHP Fatal error: require_once(): Failed opening required 'includes/languages/english/email_extras.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/ideas22/public_html/sandbox/zen158/includes/languages/sophy_blue/english.php on line 633
you need to update your template; there is no such file anymore.
This sophy blue template uses an old style language file; you need to fix that.
Copy includes/languages/lang.english.php to includes/languages/sophy_blue, and customize to your needs.
Do the same for any other language customizations in folders name sophy_blue.
-
Re: Skin Switch
Yeah, I just saw that! It's fixed. :hug:
Thanks once again.
-
Re: Skin Switch
Quickie recommendation on language file upgrades - only do what's absolutely needed.
https://docs.zen-cart.com/user/local...ustomizations/
-
Re: Skin Switch
Sure. I will update the template.
Now I see that when I chose to navigate while in any other template (not base), the site will go to the original template, and I have to select the altern' template again to see the correct skin. Is that supposed to be like that in the updated skin switch? or maybe I have other things that I have to take care of?
I continue having lots of errors but not from template but some other functions, like html_output and modules files.
-
Re: Skin Switch
Yes, example 3 does the current page only. Example 1 makes the setting stick. You may want to combine the logic from those two examples, or change to example 1.
-
Re: Skin Switch
I will check because on my current published sandbox, I used Example 3 and it doesn't do that (I'm not 100% sure since it was years ago). I will have to re-read everything again and do an overhaul of the old templates.