Skin Switch

Views: 17,126

Results 41 to 47 of 47
8 Feb 2023, 7:01 PM
#41
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

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/upgrading/php_warnings/#each-deprecated

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

8 Feb 2023, 7:03 PM
#42
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

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.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

8 Feb 2023, 7:11 PM
#43
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,447
Plugin Contributions:
3

Re: Skin Switch

Yeah, I just saw that! It's fixed. :hug:

Thanks once again.

IDEASLady
IDEAS Creative Studio

Your image... our business!

8 Feb 2023, 7:22 PM
#44
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Skin Switch

Quickie recommendation on language file upgrades - only do what's absolutely needed.

https://docs.zen-cart.com/user/localization/basic_158_language_customizations/

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

8 Feb 2023, 8:07 PM
#45
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,447
Plugin Contributions:
3

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.

IDEASLady
IDEAS Creative Studio

Your image... our business!

8 Feb 2023, 11:18 PM
#46
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

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.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

9 Feb 2023, 1:24 PM
#47
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,447
Plugin Contributions:
3

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.

IDEASLady
IDEAS Creative Studio

Your image... our business!