Templates....

Open to all! Ask other shopowners for help.
Post Reply
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Templates....

Post by Xpajun »

Once again - on 1.0.8.19 This time Templates:

Due to user.ccs not working and Heather putting me right on that that partly worked I decided that I should transfer my work by downloading default, renaming it to xpajun and uploading it to templates.
Now when I select xpajun as the Template Selection I get the following errors:

Code: Select all

[31-Oct-2022 15:03:48 UTC] PHP Fatal error:  Uncaught Error: Class 'xpajun_template' not found in /home/redacted/public_html/redacted/includes/system/versioned/1.0.8.4/template.php:30
Stack trace:
#0 /home/redacted/public_html/redacted/includes/system/versioned/1.0.7.other/1.0.7.12/guarantor.php(17): Template->__construct()
#1 /home/redacted/public_html/redacted/includes/classes/application.php(58): Guarantor::ensure_global('Template')
#2 /home/redacted/public_html/redacted/includes/system/versioned/1.0.8.1/hooks.php(160): Application->set_session_language(Array)
#3 /home/redacted/public_html/redacted/includes/application_top.php(30): hooks->generate('startApplicatio...')
#4 /home/redacted/public_html/redacted/index.php(13): require('/home/redacted/...')
#5 {main}
  thrown in /home/redacted/public_html/redacted/includes/system/versioned/1.0.8.4/template.php on line 30
[31-Oct-2022 15:05:31 UTC] PHP Notice:  Undefined variable: content_width in /home/redacted/public_html/redacted/templates/gustavo/includes/modules/content/footer/tpl_cm_footer_information_links.php on line 1
[31-Oct-2022 15:05:31 UTC] PHP Notice:  Undefined variable: content_width in /home/redacted/public_html/redacted/templates/gustavo/includes/modules/content/footer/tpl_cm_footer_account.php on line 1
[31-Oct-2022 15:05:31 UTC] PHP Notice:  Undefined variable: content_width in /home/redacted/public_html/redacted/templates/gustavo/includes/modules/content/footer/tpl_cm_footer_contact_us.php on line 1
[31-Oct-2022 15:05:31 UTC] PHP Warning:  Use of undefined constant MODULE_CONTENT_FOOTER_CONTACT_US_PHONE - assumed 'MODULE_CONTENT_FOOTER_CONTACT_US_PHONE' (this will throw an Error in a future version of PHP) in /home/redacted/public_html/redacted/templates/gustavo/includes/modules/content/footer/tpl_cm_footer_contact_us.php on line 6
[31-Oct-2022 15:06:21 UTC] PHP Notice:  Undefined variable: card_layout in /home/redacted/public_html/redacted/templates/custom/includes/modules/content/index/tpl_cm_i_card_products.php on line 4
[31-Oct-2022 15:06:51 UTC] PHP Notice:  Undefined variable: content_width in /home/redacted/public_html/redacted/templates/bootstrap5/includes/modules/content/footer/tpl_cm_footer_information_links.php on line 1
[31-Oct-2022 15:06:51 UTC] PHP Notice:  Undefined variable: content_width in /home/redacted/public_html/redacted/templates/bootstrap5/includes/modules/content/footer/tpl_cm_footer_account.php on line 1
[31-Oct-2022 15:06:51 UTC] PHP Notice:  Undefined variable: content_width in /home/redacted/public_html/redacted/templates/bootstrap5/includes/modules/content/footer/tpl_cm_footer_contact_us.php on line 1
[31-Oct-2022 15:06:51 UTC] PHP Warning:  Use of undefined constant MODULE_CONTENT_FOOTER_CONTACT_US_PHONE - assumed 'MODULE_CONTENT_FOOTER_CONTACT_US_PHONE' (this will throw an Error in a future version of PHP) in /home/redacted/public_html/redacted/templates/bootstrap5/includes/modules/content/footer/tpl_cm_footer_contact_us.php on line 6
[31-Oct-2022 15:06:51 UTC] PHP Notice:  Undefined variable: content_width in /home/redacted/public_html/redacted/templates/bootstrap5/includes/modules/content/footer_suffix/tpl_cm_footer_extra_icons.php on line 1
[31-Oct-2022 15:07:12 UTC] PHP Fatal error:  Uncaught Error: Class 'xpajun_template' not found in /home/redacted/public_html/redacted/includes/system/versioned/1.0.8.4/template.php:30
Stack trace:
#0 /home/redacted/public_html/redacted/includes/system/versioned/1.0.7.other/1.0.7.12/guarantor.php(17): Template->__construct()
#1 /home/redacted/public_html/redacted/includes/classes/application.php(58): Guarantor::ensure_global('Template')
#2 /home/redacted/public_html/redacted/includes/system/versioned/1.0.8.1/hooks.php(160): Application->set_session_language(Array)
#3 /home/redacted/public_html/redacted/includes/application_top.php(30): hooks->generate('startApplicatio...')
#4 /home/redacted/public_html/redacted/index.php(13): require('/home/redacted/...')
#5 {main}
  thrown in /home/redacted/public_html/redacted/includes/system/versioned/1.0.8.4/template.php on line 30
I think the "Class 'xpajun_template' not found " is the one I'm really enquiring about
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Templates....

Post by heatherbell »

Xpajun wrote: Mon Oct 31, 2022 3:28 pm I think the "Class 'xpajun_template' not found " is the one I'm really enquiring about
So guess you have not edited /templates/xpajun/includes/template.php
Change all instances of default to xpajun
Compare
https://github.com/CE-PhoenixCart/Phoen ... mplate.php
with
https://github.com/CE-PhoenixCart/Phoen ... mplate.php
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Re: Templates....

Post by Xpajun »

heatherbell wrote: Mon Oct 31, 2022 3:56 pm
Xpajun wrote: Mon Oct 31, 2022 3:28 pm I think the "Class 'xpajun_template' not found " is the one I'm really enquiring about
So guess you have not edited /templates/xpajun/includes/template.php
Change all instances of default to xpajun
Compare
https://github.com/CE-PhoenixCart/Phoen ... mplate.php
with
https://github.com/CE-PhoenixCart/Phoen ... mplate.php
Thank you once again - I copied the override template and replaced every 'override' as it is different from the default - it's working now
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply