Blank shop home page
-
tedukes
- Member
- Posts: 87
- Joined: Wed Oct 27, 2021 11:27 pm
- Phoenix Version:
- Has thanked: 17 times
- Been thanked: 1 time
Blank shop home page
I broke it!!
It was working about a few days ago when I installed the Featured Products 2.2.5 addon. Then I saw it had been updated so I installed the newer version over the old. I did not check it after doing so.
Today, I created a new product for download. It hung up when I clicked the add button.
These are the last 2 things I did. Not sure the Featured Products addon has anything to do with it. Just going back to the point I last made any changes. The Slim Checkout addon has been disabled for a while.
I believe the issue will be with a download product as that's where it hung up.
Here's a snippet of the error log, it seems to just be repeating.
thrown in /home/xxxxxxxxxxx/public_html/shop/includes/system/override/slim_checkout/template.php on line 38
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant GZIP_COMPRESSION - assumed 'GZIP_COMPRESSION' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/system/segments/application/gzip.php on line 14
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant SESSION_FORCE_COOKIE_USE - assumed 'SESSION_FORCE_COOKIE_USE' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/system/segments/application/start_session.php on line 19
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant SESSION_FORCE_COOKIE_USE - assumed 'SESSION_FORCE_COOKIE_USE' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/system/segments/application/start_session.php on line 28
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant SESSION_BLOCK_SPIDERS - assumed 'SESSION_BLOCK_SPIDERS' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/system/segments/application/start_session.php on line 36
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant SESSION_CHECK_SSL_SESSION_ID - assumed 'SESSION_CHECK_SSL_SESSION_ID' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/classes/application.php on line 17
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant SESSION_CHECK_USER_AGENT - assumed 'SESSION_CHECK_USER_AGENT' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/classes/application.php on line 24
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant SESSION_CHECK_IP_ADDRESS - assumed 'SESSION_CHECK_IP_ADDRESS' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/classes/application.php on line 31
[05-Jan-2022 19:43:10 Europe/London] PHP Notice: Undefined index: language in /home/xxxxxxxxxxx/public_html/shop/includes/system/versioned/1.0.8.2/language.php on line 167
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant TEMPLATE_SELECTION - assumed 'TEMPLATE_SELECTION' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/system/override/slim_checkout/template.php on line 34
[05-Jan-2022 19:43:10 Europe/London] PHP Fatal error: Uncaught Error: Class 'TEMPLATE_SELECTION_template' not found in /home/xxxxxxxxxxx/public_html/shop/includes/system/override/slim_checkout/template.php:38
Stack trace:
#0 /home/xxxxxxxxxxx/public_html/shop/includes/system/versioned/1.0.7.other/1.0.7.12/guarantor.php(17): Template->__construct()
#1 /home/xxxxxxxxxxx/public_html/shop/includes/system/versioned/1.0.8.2/language.php(173): Guarantor::ensure_global('Template')
#2 /home/xxxxxxxxxxx/public_html/shop/includes/classes/usu_init.php(36): language::map_to_translation('includes/langua...')
#3 /home/xxxxxxxxxxx/public_html/shop/includes/system/versioned/1.0.8.1/hooks.php(160): usu_init->i(Array)
#4 /home/xxxxxxxxxxx/public_html/shop/includes/application_top.php(30): hooks->generate('startApplicatio...')
#5 /home/xxxxxxxxxxx/public_html/shop/index.php(13): require('/home/vrj84iy0o...')
#6 {main}
thrown in /home/xxxxxxxxxxx/public_html/shop/includes/system/override/slim_checkout/template.php on line 38
Any help would be appreciated.
It was working about a few days ago when I installed the Featured Products 2.2.5 addon. Then I saw it had been updated so I installed the newer version over the old. I did not check it after doing so.
Today, I created a new product for download. It hung up when I clicked the add button.
These are the last 2 things I did. Not sure the Featured Products addon has anything to do with it. Just going back to the point I last made any changes. The Slim Checkout addon has been disabled for a while.
I believe the issue will be with a download product as that's where it hung up.
Here's a snippet of the error log, it seems to just be repeating.
thrown in /home/xxxxxxxxxxx/public_html/shop/includes/system/override/slim_checkout/template.php on line 38
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant GZIP_COMPRESSION - assumed 'GZIP_COMPRESSION' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/system/segments/application/gzip.php on line 14
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant SESSION_FORCE_COOKIE_USE - assumed 'SESSION_FORCE_COOKIE_USE' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/system/segments/application/start_session.php on line 19
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant SESSION_FORCE_COOKIE_USE - assumed 'SESSION_FORCE_COOKIE_USE' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/system/segments/application/start_session.php on line 28
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant SESSION_BLOCK_SPIDERS - assumed 'SESSION_BLOCK_SPIDERS' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/system/segments/application/start_session.php on line 36
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant SESSION_CHECK_SSL_SESSION_ID - assumed 'SESSION_CHECK_SSL_SESSION_ID' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/classes/application.php on line 17
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant SESSION_CHECK_USER_AGENT - assumed 'SESSION_CHECK_USER_AGENT' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/classes/application.php on line 24
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant SESSION_CHECK_IP_ADDRESS - assumed 'SESSION_CHECK_IP_ADDRESS' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/classes/application.php on line 31
[05-Jan-2022 19:43:10 Europe/London] PHP Notice: Undefined index: language in /home/xxxxxxxxxxx/public_html/shop/includes/system/versioned/1.0.8.2/language.php on line 167
[05-Jan-2022 19:43:10 Europe/London] PHP Warning: Use of undefined constant TEMPLATE_SELECTION - assumed 'TEMPLATE_SELECTION' (this will throw an Error in a future version of PHP) in /home/xxxxxxxxxxx/public_html/shop/includes/system/override/slim_checkout/template.php on line 34
[05-Jan-2022 19:43:10 Europe/London] PHP Fatal error: Uncaught Error: Class 'TEMPLATE_SELECTION_template' not found in /home/xxxxxxxxxxx/public_html/shop/includes/system/override/slim_checkout/template.php:38
Stack trace:
#0 /home/xxxxxxxxxxx/public_html/shop/includes/system/versioned/1.0.7.other/1.0.7.12/guarantor.php(17): Template->__construct()
#1 /home/xxxxxxxxxxx/public_html/shop/includes/system/versioned/1.0.8.2/language.php(173): Guarantor::ensure_global('Template')
#2 /home/xxxxxxxxxxx/public_html/shop/includes/classes/usu_init.php(36): language::map_to_translation('includes/langua...')
#3 /home/xxxxxxxxxxx/public_html/shop/includes/system/versioned/1.0.8.1/hooks.php(160): usu_init->i(Array)
#4 /home/xxxxxxxxxxx/public_html/shop/includes/application_top.php(30): hooks->generate('startApplicatio...')
#5 /home/xxxxxxxxxxx/public_html/shop/index.php(13): require('/home/vrj84iy0o...')
#6 {main}
thrown in /home/xxxxxxxxxxx/public_html/shop/includes/system/override/slim_checkout/template.php on line 38
Any help would be appreciated.
- Kofod95
- Senior Contributor
- Posts: 748
- Joined: Sat Feb 06, 2021 7:38 pm
- Phoenix Version: 1.0.8.20
- Has thanked: 99 times
- Been thanked: 179 times
Re: Blank shop home page
To me, that looks like you have lost quite a few entries of the configuration-table in the db.
If you have a back-up of your db (especially the configuration-table), use that. If not, you'd have to either manually insert the missing values or install a fresh db (to which you could copy your products and so)
//Daniel
If you have a back-up of your db (especially the configuration-table), use that. If not, you'd have to either manually insert the missing values or install a fresh db (to which you could copy your products and so)
//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Here are a lot of corns: Phoenix user guide
- Kofod95
- Senior Contributor
- Posts: 748
- Joined: Sat Feb 06, 2021 7:38 pm
- Phoenix Version: 1.0.8.20
- Has thanked: 99 times
- Been thanked: 179 times
Re: Blank shop home page
Missing this one is what throws the fatal error in the above. That tells us that there is a database problem in the configuration-table that needs to be solved. Replacing files will not doTEMPLATE_SELECTION
You could try running this:
Code: Select all
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES
(4, 'Template Selection', 'TEMPLATE_SELECTION', 'override', 'The template to use to display the shop.', 1, 5, 'NOW()', 'NOW()', NULL, 'Config::select_template(');
I'm not a developer, so please be cautious and make a fresh back-up before trying!
//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Here are a lot of corns: Phoenix user guide
- Kofod95
- Senior Contributor
- Posts: 748
- Joined: Sat Feb 06, 2021 7:38 pm
- Phoenix Version: 1.0.8.20
- Has thanked: 99 times
- Been thanked: 179 times
Re: Blank shop home page
What's there?
Code: Select all
SELECT * FROM `configuration` WHERE `configuration_id` = '4'//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Here are a lot of corns: Phoenix user guide
-
tedukes
- Member
- Posts: 87
- Joined: Wed Oct 27, 2021 11:27 pm
- Phoenix Version:
- Has thanked: 17 times
- Been thanked: 1 time
Re: Blank shop home page
Thanks!!
SELECT * FROM `configuration` WHERE `configuration_id` = '4'
Ran that and got:
4 Template Selection TEMPLATE_SELECTION override The template to use to display the shop. 1 5
NULL
2021-10-27 12:51:47
NULL
Config::select_template(
SELECT * FROM `configuration` WHERE `configuration_id` = '4'
Ran that and got:
4 Template Selection TEMPLATE_SELECTION override The template to use to display the shop. 1 5
NULL
2021-10-27 12:51:47
NULL
Config::select_template(
- Kofod95
- Senior Contributor
- Posts: 748
- Joined: Sat Feb 06, 2021 7:38 pm
- Phoenix Version: 1.0.8.20
- Has thanked: 99 times
- Been thanked: 179 times
Re: Blank shop home page
What happens if you remove this folder: override/slim_checkout/?
(Just move it to somewhere on you PC)
Maybe something is trying to load from the db before it's loaded. Else I'm out of ideas
//Daniel
(Just move it to somewhere on you PC)
Maybe something is trying to load from the db before it's loaded. Else I'm out of ideas
//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Here are a lot of corns: Phoenix user guide
- Kofod95
- Senior Contributor
- Posts: 748
- Joined: Sat Feb 06, 2021 7:38 pm
- Phoenix Version: 1.0.8.20
- Has thanked: 99 times
- Been thanked: 179 times
Re: Blank shop home page
Your error-message must have changed, though?
Also, just for good meassure, try searching your configuration in db for these:
SESSION_FORCE_COOKIE_USE
GZIP_COMPRESSION
and the rest in you first post. You can serach like this:
//Daniel
Also, just for good meassure, try searching your configuration in db for these:
SESSION_FORCE_COOKIE_USE
GZIP_COMPRESSION
and the rest in you first post. You can serach like this:
Code: Select all
SELECT * FROM `configuration` WHERE `configuration_key` = 'WHATEVER'
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Here are a lot of corns: Phoenix user guide