Page 1 of 1

Templates....

Posted: Mon Oct 31, 2022 3:28 pm
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

Re: Templates....

Posted: Mon Oct 31, 2022 3:56 pm
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

Re: Templates....

Posted: Mon Oct 31, 2022 5:26 pm
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