Thread: Skin Switch

Results 1 to 10 of 47

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default Re: Skin Switch

    That's great, thanks.

    I tried it and when I switch to another template it gives me a blank page (which was the problem that I had before in some of the trials I did).
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,545
    Plugin Contributions
    127

    Default Re: Skin Switch

    You'll need to post the debug log for me to know what happened.
    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.

  3. #3
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default Re: Skin Switch

    Code:
    [08-Feb-2023 17:32:23 UTC] Request URI: /sandbox/?skin=sophy_blue, IP address: 24.55.69.103
    #1  each() called at [/home/ideas22/public_html/sandbox/includes/templates/sophy_blue/common/html_header.php:72]
    #2  require(/home/ideas22/public_html/sandbox/includes/templates/sophy_blue/common/html_header.php) called at [/home/ideas22/public_html/sandbox/index.php:42]
    --> 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.
    That's the "multilingual section" of the header.

    I replaced it copying that part from responsive_classic and still not success.
    Last edited by ideasgirl; 8 Feb 2023 at 07:56 PM.
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  4. #4
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default Re: Skin Switch

    Quote Originally Posted by ideasgirl View Post
    Code:
    [08-Feb-2023 17:32:23 UTC] Request URI: /sandbox/?skin=sophy_blue, IP address: 24.55.69.103
    #1  each() called at [/home/ideas22/public_html/sandbox/includes/templates/sophy_blue/common/html_header.php:72]
    #2  require(/home/ideas22/public_html/sandbox/includes/templates/sophy_blue/common/html_header.php) called at [/home/ideas22/public_html/sandbox/index.php:42]
    --> 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.
    That's the "multilingual section" of the header.

    I replaced it copying that part from responsive_classic and still not success.
    Wrong log. This is the correct:

    HTML Code:
    [08-Feb-2023 18:56:33 UTC] Request URI: /sandbox/zen158/?skin=sophy_blue, IP address: 24.55.69.103
    #1  require_once() called at [/home/ideas22/public_html/sandbox/zen158/includes/languages/sophy_blue/english.php:633]
    #2  include_once(/home/ideas22/public_html/sandbox/zen158/includes/languages/sophy_blue/english.php) called at [/home/ideas22/public_html/sandbox/zen158/includes/classes/ResourceLoaders/FilesLanguageLoader.php:39]
    #3  Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile() called at [/home/ideas22/public_html/sandbox/zen158/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php:54]
    #4  Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadMainLanguageFiles() called at [/home/ideas22/public_html/sandbox/zen158/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php:19]
    #5  Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines() called at [/home/ideas22/public_html/sandbox/zen158/includes/classes/ResourceLoaders/LanguageLoader.php:29]
    #6  Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines() called at [/home/ideas22/public_html/sandbox/zen158/includes/init_includes/overrides/init_templates.php:105]
    #7  require_once(/home/ideas22/public_html/sandbox/zen158/includes/init_includes/overrides/init_templates.php) called at [/home/ideas22/public_html/sandbox/zen158/includes/autoload_func.php:40]
    #8  require(/home/ideas22/public_html/sandbox/zen158/includes/autoload_func.php) called at [/home/ideas22/public_html/sandbox/zen158/includes/application_top.php:237]
    #9  require(/home/ideas22/public_html/sandbox/zen158/includes/application_top.php) called at [/home/ideas22/public_html/sandbox/zen158/index.php:25]
    --> PHP Warning: require_once(includes/languages/english/email_extras.php): failed to open stream: No such file or directory in /home/ideas22/public_html/sandbox/zen158/includes/languages/sophy_blue/english.php on line 633.
    
    [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
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,545
    Plugin Contributions
    127

    Default 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
    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.

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,545
    Plugin Contributions
    127

    Default 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.

  7. #7
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default Re: Skin Switch

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

    Thanks once again.
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,545
    Plugin Contributions
    127

    Default Re: Skin Switch

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

    https://docs.zen-cart.com/user/local...ustomizations/
    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. #9
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default 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.
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

 

 

Similar Threads

  1. how to install free template skin into my old skin?
    By andrewmax81 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 14 Nov 2009, 04:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg