Blank shop home page

Open to all! Ask other shopowners for help.
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

Post by tedukes »

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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
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

Post by Kofod95 »

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
I'm not smart, but sometimes even a blind chicken can find a corn.
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

Post by tedukes »

Thanks!!

I just tried and that didn't resolve the issue. I used a backup from 12/27/2021. I also did a file backup on the same date. I might try that.
User avatar
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

Post by Kofod95 »

TEMPLATE_SELECTION
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 do

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(');
in your db.
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
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

Post by tedukes »

Thanks!!

Gave that a try but got an error:

#1062 - Duplicate entry '4' for key 'PRIMARY'
User avatar
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

Post by Kofod95 »

tedukes wrote: Wed Jan 05, 2022 9:55 pm #1062 - Duplicate entry '4' for key 'PRIMARY'
What's there?

Code: Select all

SELECT * FROM `configuration` WHERE `configuration_id` = '4'
What does that return?

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
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

Post by tedukes »

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(
User avatar
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

Post by Kofod95 »

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
I'm not smart, but sometimes even a blind chicken can find a corn.
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

Post by tedukes »

Thanks!!

The addon was disabled but I just finished deleting the modules files and directory. Came back an saw your post.

Didn't help.
User avatar
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

Post by Kofod95 »

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:

Code: Select all

SELECT * FROM `configuration` WHERE `configuration_key` = 'WHATEVER'
//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide


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