Please help - broken store

My store is broken. It’s theme related. But even the standard responsive theme aren’t working properly and changing themes corrupts the store and at one stage I lost all my products (but restored from backup).

I thought it was related to unitheme 2 but AB has had a look and said it appears to be unrelated to their theme and that I should contact cs-cart (part of the error is it saids it can’t locate a file that both AB and I can clearly see is there).

Rather than get into a situation of waiting 45 days for a bug fix, if even it is agreed it is a bug (probably just become finger pointing on who’s fault it is) because whilst the error message can be recreated (I just need to create a new storefront or switch theme on a storefront), but if I do that I will just have another corrupted storefront. I guess the easiest way is to rebuild the whole store.

Obiviously I can export products and orders from old store to new store. But will I still have gaps like missing product images, blog pages, layouts etc or is there a way to get everything back. I’ve been running at a loss for the last 3 years and only just started getting orders this year so it’s not like I can afford support, particularly because I just brought 3 years of AB theme because that was what I was told the issue was originally so I need to get out of this with as less pain as possible!

I do have a @cart-power payment and shipping restrictions add-on with lots of restrictions built in and about 100 shipping methods but I am the only vendor.

I have gone back to the oldest back-up I have and whilst I didn’t notice it (becaue I didn’t create a new storefront) seems the problem exisited then.

Easiest way out please?

If it’s a serious bug, CS-Cart will release patch upgrade in short time. For urgent help, please feel free to contact us here at any time.

I don’t have cs-cart support and I can’t afford it so I am not even go down the path of reporting it as a bug. I just want to know how easy it is to recreate a store, in particular the items I mentioned (images, pages, blogs, layouts, shipping methods, cart-power restrictions add-ons etc), it has been years of getting the store right and just wanted to know if all these items can be restored easily or if there are going to be gaps that I am going to have to do manually.

What action has broke your store?

switching theme to any responsive or unitheme breaks that store, at first it just appears that you can’t add a storefront logo… Then if you do actions like move categories from one storefront to the other then those products and categories are gone.

[27-Jul-2024 08:10:39 Australia/Adelaide] PHP Warning: Creating default object from empty value in /home/thefarmerslotcom/public_html/app/controllers/backend/storefronts.php on line 192
[27-Jul-2024 08:10:39 Australia/Adelaide] PHP Notice: Undefined property: stdClass::$access_key in /home/thefarmerslotcom/public_html/app/controllers/backend/storefronts.php on line 193
[27-Jul-2024 08:10:39 Australia/Adelaide] TypeError: Argument 1 passed to Tygh\Storefront\Repository::save() must be an instance of Tygh\Storefront\Storefront, instance of stdClass given, called in /home/thefarmerslotcom/public_html/app/controllers/backend/storefronts.php on line 196 and defined in /home/thefarmerslotcom/public_html/app/Tygh/Storefront/Repository.php:451
Stack trace:
#0 /home/thefarmerslotcom/public_html/app/controllers/backend/storefronts.php(196): Tygh\Storefront\Repository->save(Object(stdClass))
#1 /home/thefarmerslotcom/public_html/app/functions/fn.control.php(727): include(‘/home/thefarmer…’)
#2 /home/thefarmerslotcom/public_html/app/functions/fn.control.php(458): fn_run_controller(‘/home/thefarmer…’, ‘storefronts’, ‘update_status’, ‘’, ‘’)
#3 /home/thefarmerslotcom/public_html/XXXadmin.php(27): fn_dispatch()
#4 {main}
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: Illegal string offset ‘image_x’ in /home/thefarmerslotcom/public_html/var/cache/templates/backend/19878ca848aa0af9a9ee6d6b6a6ba80b3c21c734_2.tygh.presets.tpl.php on line 84
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: Illegal string offset ‘image_y’ in /home/thefarmerslotcom/public_html/var/cache/templates/backend/19878ca848aa0af9a9ee6d6b6a6ba80b3c21c734_2.tygh.presets.tpl.php on line 84
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: A non-numeric value encountered in /home/thefarmerslotcom/public_html/var/cache/templates/backend/19878ca848aa0af9a9ee6d6b6a6ba80b3c21c734_2.tygh.presets.tpl.php on line 84
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: A non-numeric value encountered in /home/thefarmerslotcom/public_html/var/cache/templates/backend/19878ca848aa0af9a9ee6d6b6a6ba80b3c21c734_2.tygh.presets.tpl.php on line 84
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: Division by zero in /home/thefarmerslotcom/public_html/var/cache/templates/backend/19878ca848aa0af9a9ee6d6b6a6ba80b3c21c734_2.tygh.presets.tpl.php on line 84
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: Illegal string offset ‘image_x’ in /home/thefarmerslotcom/public_html/var/cache/templates/backend/19878ca848aa0af9a9ee6d6b6a6ba80b3c21c734_2.tygh.presets.tpl.php on line 92
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: Illegal string offset ‘image_y’ in /home/thefarmerslotcom/public_html/var/cache/templates/backend/19878ca848aa0af9a9ee6d6b6a6ba80b3c21c734_2.tygh.presets.tpl.php on line 92
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: Illegal string offset ‘icon’ in /home/thefarmerslotcom/public_html/var/cache/templates/backend/d4a96f3a6706759f8b1ab6bbf20986bd767c0da1_2.tygh.image.pre.tpl.php on line 28
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: Illegal string offset ‘is_high_res’ in /home/thefarmerslotcom/public_html/var/cache/templates/backend/d4a96f3a6706759f8b1ab6bbf20986bd767c0da1_2.tygh.image.pre.tpl.php on line 28
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: Illegal string offset ‘original_image_path’ in /home/thefarmerslotcom/public_html/var/cache/templates/backend/d4a96f3a6706759f8b1ab6bbf20986bd767c0da1_2.tygh.image.pre.tpl.php on line 31
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: Illegal string offset ‘image_x’ in /home/thefarmerslotcom/public_html/var/cache/templates/backend/19878ca848aa0af9a9ee6d6b6a6ba80b3c21c734_2.tygh.presets.tpl.php on line 140
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: Illegal string offset ‘image_y’ in /home/thefarmerslotcom/public_html/var/cache/templates/backend/19878ca848aa0af9a9ee6d6b6a6ba80b3c21c734_2.tygh.presets.tpl.php on line 140
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: A non-numeric value encountered in /home/thefarmerslotcom/public_html/var/cache/templates/backend/19878ca848aa0af9a9ee6d6b6a6ba80b3c21c734_2.tygh.presets.tpl.php on line 140
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: A non-numeric value encountered in /home/thefarmerslotcom/public_html/var/cache/templates/backend/19878ca848aa0af9a9ee6d6b6a6ba80b3c21c734_2.tygh.presets.tpl.php on line 140
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: Division by zero in /home/thefarmerslotcom/public_html/var/cache/templates/backend/19878ca848aa0af9a9ee6d6b6a6ba80b3c21c734_2.tygh.presets.tpl.php on line 140
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: Illegal string offset ‘image_x’ in /home/thefarmerslotcom/public_html/var/cache/templates/backend/19878ca848aa0af9a9ee6d6b6a6ba80b3c21c734_2.tygh.presets.tpl.php on line 148
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: Illegal string offset ‘image_y’ in /home/thefarmerslotcom/public_html/var/cache/templates/backend/19878ca848aa0af9a9ee6d6b6a6ba80b3c21c734_2.tygh.presets.tpl.php on line 148
[27-Jul-2024 08:13:30 Australia/Adelaide] PHP Warning: Illegal string offset ‘icon’ in /home/thefarmerslotcom/public_html/var/cache/templates/backend/d4a96f3a6706759f8b1ab6bbf20986bd767c0da1_2.tygh.image.pre.tpl.php on line 28
[30-Jul-2024 14:40:59 UTC] Error: Call to undefined function Tygh\Backend\Database\mysqli_report() in /home/thefarmerslotcom/public_html/app/Tygh/Backend/Database/Mysqli.php:47
Stack trace:
#0 /home/thefarmerslotcom/public_html/app/Tygh/Database/Connection.php(253): Tygh\Backend\Database\Mysqli->connect(‘thefarme_System…’, ‘jjuu543PO…,X’, ‘localhost’, ‘thefarmerslotco…’)
#1 /home/thefarmerslotcom/public_html/app/Tygh/Providers/DatabaseProvider.php(42): Tygh\Database\Connection->connect(‘thefarme_System…’, ‘jjuu543PO…,X’, ‘localhost’, ‘thefarmerslotco…’, Array)
#2 /home/thefarmerslotcom/public_html/app/lib/vendor/pimple/pimple/src/Pimple/Container.php(122): Tygh\Providers\DatabaseProvider->Tygh\Providers{closure}(Object(Tygh\Application))
#3 /home/thefarmerslotcom/public_html/app/Tygh/Application.php(135): Pimple\Container->offsetGet(‘db’)
#4 /home/thefarmerslotcom/public_html/app/Tygh/Providers/StorefrontProvider.php(81): Tygh\Application->offsetGet(‘db’)
#5 /home/thefarmerslotcom/public_html/app/lib/vendor/pimple/pimple/src/Pimple/Container.php(122): Tygh\Providers\StorefrontProvider->Tygh\Providers{closure}(Object(Tygh\Application))
#6 /home/thefarmerslotcom/public_html/app/Tygh/Application.php(135): Pimple\Container->offsetGet(‘storefront.repo…’)
#7 /home/thefarmerslotcom/public_html/app/functions/fn.init.php(1457): Tygh\Application->offsetGet(‘storefront.repo…’)
#8 /home/thefarmerslotcom/public_html/app/functions/fn.init.php(1234): fn_init_redirect_to_regional_storefront(Array, ‘www.thefarmersl…’)
#9 /home/thefarmerslotcom/public_html/init.php(196): fn_init(Array)
#10 /home/thefarmerslotcom/public_html/index.php(18): require(‘/home/thefarmer…’)
#11 {main}

I rebuilt a store from scratch and did a back-up of old store and imported into new store and this had brought the issue with it. What can I try now?

Again the issue is if I create a new storefront it creates ok. I can open it. I then switch to another responsive theme (e.g. responsive theme black) and then I loose the ability to add a storefront logo and problems extend from there.

The only themes that work properly (tested about half) are Modern and Unitheme2 Malachite.

I then restore site from back-up taken immediately b4 I imported the back-up from corrupted store and it works again ok. The only add-ons I am running in this test store is cs-cart and unitheme2.

@ecomlabs @CS-Cart_team please please please help

I am afraid, it is required to examine the issue directly on your server

It appears that the storefront data for a particular storefront is missing/corrupted in your store’s database.

Please make a new backup of your database and then try to restore the following tables from some of your previous backups:

  • cscart_storefronts
  • cscart_storefronts_countries
  • cscart_storefronts_companies
  • cscart_storefronts_currencies
  • cscart_storefronts_languages
  • cscart_storefronts_payments
  • cscart_storefronts_shippings
  • cscart_storefronts_promotions

Thankyou, I tried that cs-cart suggestion of restoring storefront tabels from a working store (it was Nov 22, my next oldest back-up Mar 2024 was already corrupted). This resulted even more (probably unrelated problems) because that back-up is so different to my current state.

Below I detail what throws errors from a functioning backup (all be it from broken store) to can’t get back into the store …

If anyone wants to give me a quote on what they can do to fix (or altenatively get me as close as possible to my current state) please message me (and if isn’t a fix but restoration of data please detail what gaps I will have to fill). My store is fully current MVE ultimate 18.2 with Unitheme 2 and cart-power shipping and payments restrictions - that is used a lot - about 1500 products, only a few vendors and I am happy to sacrifice other storefronts (except my main 1) www.thefarmerslot.com.au

Backups
A.	New install of 18.2 + Unitheme2 with 3 storefronts created (No categories, Products etc)

C.	Live developed store that I am trying to get working

**The Following error occurs with restore from back-up A – It is the only error I was able to trigger** 

Create a new storefront but turning storefront of before hitting create button (i.e. saving)
[01-Aug-2024 00:59:03 America/Los_Angeles] Error: Attempt to assign property "status" on null in /home/thefarmerslotcom/public_html/dev/app/controllers/backend/storefronts.php:192
Stack trace:
#0 /home/thefarmerslotcom/public_html/dev/app/functions/fn.control.php(727): include()
#1 /home/thefarmerslotcom/public_html/dev/app/functions/fn.control.php(458): fn_run_controller('/home/thefarmer...', 'storefronts', 'update_status', '', '')
#2 /home/thefarmerslotcom/public_html/dev/xxxadmin.php(21): fn_dispatch()
#3 {main}


**The Following errors Occurs with Restore From Backup C**
saving storefront (settings/storefronts/$storefront)
PHP Warning:  Undefined array key "name" in /home/thefarmerslotcom/public_html/dev/app/controllers/backend/storefronts.php on line 391
Note:
After storefront saved this error no longer presents. 
At this stage able to change themes.

Turning off storefront
PHP Warning:  Undefined array key "name" in /home/thefarmerslotcom/public_html/dev/app/functions/fn.control.php(722) : eval()'d code on line 391
Create a new storefront and turn status to off prior to saving (create button)
Error: Attempt to assign property "status" on null in /home/thefarmerslotcom/public_html/dev/app/controllers/backend/storefronts.php:192
Stack trace:
#0 /home/thefarmerslotcom/public_html/dev/app/functions/fn.control.php(727): include()
#1 /home/thefarmerslotcom/public_html/dev/app/functions/fn.control.php(458): fn_run_controller('/home/thefarmer...', 'storefronts', 'update_status', '', '')
#2 /home/thefarmerslotcom/public_html/dev/XXXadmin.php(21): fn_dispatch()
#3 {main}

Switch theme from responsive to alexbranding theme (error occurs on save overwrite settings)

Note: this triggers irreversible errors e.g. after this can no longer renter website/themes
[01-Aug-2024 11:29:16 Australia/Adelaide] TypeError: Cannot access offset of type string on string in /home/thefarmerslotcom/public_html/dev/var/cache/templates/backend/7fec98f9ae6f73e93f1dbc234941b0a17908f64c_2.tygh.presets.tpl.php:84
Stack trace:
#0 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_66aaebf452ed49_33208643(Object(Smarty_Internal_Template))
#1 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#4 /home/thefarmerslotcom/public_html/dev/var/cache/templates/backend/2c77911329302a02f569c93c39cf0af88c45cf28_2.tygh.mainbox.tpl.php(236): Smarty_Internal_Template->_subTemplateRender('tygh:views/stor...', NULL, NULL, 0, 3600, Array, 0, false)
#5 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_66aaebf44bbbe7_16159626(Object(Smarty_Internal_Template))
#6 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#7 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#8 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#9 /home/thefarmerslotcom/public_html/dev/var/cache/templates/backend/4426b8acf7ca7a47a069b4557ace3a67f274bf2f_2.tygh.manage.tpl.php(766): Smarty_Internal_Template->_subTemplateRender('tygh:common/mai...', NULL, NULL, 0, 3600, Array, 0, false)
#10 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_66aaebf422e128_19455728(Object(Smarty_Internal_Template))
#11 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#12 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#13 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#14 /home/thefarmerslotcom/public_html/dev/var/cache/templates/backend/09e113e3e5fb138f855087bdd7890d9ac88967dc_2.tygh.index.tpl.php(149): Smarty_Internal_Template->_subTemplateRender('views/themes/ma...', NULL, NULL, 0, 3600, Array, 0, true)
#15 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_66aaebf3ae03f3_69956931(Object(Smarty_Internal_Template))
#16 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#17 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#18 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 0)
#19 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0)
#20 /home/thefarmerslotcom/public_html/dev/app/Tygh/SmartyEngine/Core.php(81): Smarty_Internal_TemplateBase->fetch('index.tpl', NULL, NULL, NULL, false, true, false)
#21 /home/thefarmerslotcom/public_html/dev/app/functions/fn.control.php(637): Tygh\SmartyEngine\Core->fetch('index.tpl')
#22 /home/thefarmerslotcom/public_html/dev/XXXadmin.php(21): fn_dispatch()
#23 {main}



Create New Storefront and switch from existing theme to Unitheme Fiolent –= “Store Unavailable” error screen

When I scroll back using the browser back  the following dispatches are called. This gives acess back to store so I can restore from backup. Clicking on menu/themes will produce Store Unavailable error screen so I restore from backup.
https://thefarmerslot.com.au/dev/XXXadmin.php?dispatch=themes.manage
https://thefarmerslot.com.au/dev/XXXadmin.php?dispatch=themes.manage&show_conflicts=Y&theme_name=abt__unitheme2&style=Fiolent
https://thefarmerslot.com.au/dev/XXXadmin.php?dispatch=themes.manage&show_conflicts=Y&theme_name=abt__unitheme2&style=Fiolent&s_storefront=31
https://thefarmerslot.com.au/dev/XXXadmin.php?dispatch=themes.manage
[01-Aug-2024 15:43:34 Australia/Adelaide] TypeError: Cannot access offset of type string on string in /home/thefarmerslotcom/public_html/dev/var/cache/templates/backend/7fec98f9ae6f73e93f1dbc234941b0a17908f64c_2.tygh.presets.tpl.php:84
Stack trace:
#0 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_66ab09c5e788f7_10404424(Object(Smarty_Internal_Template))
#1 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#4 /home/thefarmerslotcom/public_html/dev/var/cache/templates/backend/2c77911329302a02f569c93c39cf0af88c45cf28_2.tygh.mainbox.tpl.php(236): Smarty_Internal_Template->_subTemplateRender('tygh:views/stor...', NULL, NULL, 0, 3600, Array, 0, false)
#5 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_66ab09c5dff755_04763111(Object(Smarty_Internal_Template))
#6 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#7 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#8 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#9 /home/thefarmerslotcom/public_html/dev/var/cache/templates/backend/4426b8acf7ca7a47a069b4557ace3a67f274bf2f_2.tygh.manage.tpl.php(766): Smarty_Internal_Template->_subTemplateRender('tygh:common/mai...', NULL, NULL, 0, 3600, Array, 0, false)
#10 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_66ab09c5b80413_99268658(Object(Smarty_Internal_Template))
#11 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#12 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#13 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#14 /home/thefarmerslotcom/public_html/dev/var/cache/templates/backend/09e113e3e5fb138f855087bdd7890d9ac88967dc_2.tygh.index.tpl.php(149): Smarty_Internal_Template->_subTemplateRender('views/themes/ma...', NULL, NULL, 0, 3600, Array, 0, true)
#15 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_66ab09c772ee08_01215667(Object(Smarty_Internal_Template))
#16 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#17 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#18 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 0)
#19 /home/thefarmerslotcom/public_html/dev/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0)
#20 /home/thefarmerslotcom/public_html/dev/app/Tygh/SmartyEngine/Core.php(81): Smarty_Internal_TemplateBase->fetch('index.tpl', NULL, NULL, NULL, false, true, false)
#21 /home/thefarmerslotcom/public_html/dev/app/functions/fn.control.php(637): Tygh\SmartyEngine\Core->fetch('index.tpl')
#22 /home/thefarmerslotcom/public_html/dev/XXXadmin.php(21): fn_dispatch()
#23 {main}

Part at least is a confirmed bug.

This seems to be caused by the bug in the current version of CS-Cart with PHP 8.0 and newer. Errors not related to the storefront status seem to be fixed and I have attached the .diff file with the necessary changes for you to apply to your installation. This changes will be included into the next version of CS-Cart, 4.18.3/4.19.1.

The bug with the storefront status I have forwarded to the developers for a fix. As the workaround for this issue, you can create a new storefront and only then change its status - it will work.

<<< Just received … not yet tested >>>

Thankyou @CS-Cart_team for your prompt attention … I wish I came to you a week earlier :wink:

1 Like

We have been able to identify the incorrect entries in the database that initially caused this problem. @chickentwisty can provide the details if you wish :slight_smile:

Yes this one was a doozy. So there was the a bug in current version that didn’t like PHP 8.0. But then when DIFF file was applied there was an exisiting error with the storefront data that showed itself once patched. Specifically, incorrect database entries in the cscart_logos table which the helpdesk removed by executing the following query:

DELETE FROM cscart_logos WHERE company_id = '0' AND layout_id = '0' AND type != 'gift_cert';

Once that was done storefronts could be created. For existing storefronts with this issue, then changed the style of the theme used for each of these storefronts which resolved the final issue automatically,

I had no idea what caused the data to be corrupted originally, until once the problem had been identified the development store and live store were so close together so I coppied the dev store to live store, switched theme, updated logo, viewed the storefront, then realised the storefront path still pointing at mystore.com/dev, so I updated path to mystore.com *** viewed the storefront BOOM!!!

Anyway, cs-cart were most patient, not sure anyone else could have gotten to the bottom of it. They certainly have the midas touch!!!

3 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.