Multiple nested blocks in 2.1.2 after upgrade

Hi Folks,



I upgraded my 1.3.5-Sp4 to 2.08 and then all the way to 2.1.2. All the products, customers and orders has transferred just fine. But the blocks got messed up on the home page as you can see in the attachment.



Is there a way I can delete all the HTML content and get the blocks to their defaults as in a fresh installation?



I also see that there are no .tpl files in the /skins/YOURSKIN/customer/blocks/locations/ folders. What am I doing wrong here? :confused:



Thank you and any help will be really appreciated.

Nested blocks.JPG

[quote name=‘jain1980’]Hi Folks,



I upgraded my 1.3.5-Sp4 to 2.08 and then all the way to 2.1.2. All the products, customers and orders has transferred just fine. But the blocks got messed up on the home page as you can see in the attachment.



Is there a way I can delete all the HTML content and get the blocks to their defaults as in a fresh installation?



I also see that there are no .tpl files in the /skins/YOURSKIN/customer/blocks/locations/ folders. What am I doing wrong here? :confused:



Thank you and any help will be really appreciated.[/QUOTE]



Since you are basically starting anew and you have already updated the data base, install a fresh 2.1.2 and upload the updated data base to it. By doing this you will be getting rid of useless/non-existent files/directories like you mentioned above.

[quote name=‘The Tool’]Since you are basically starting anew and you have already updated the data base, install a fresh 2.1.2 and upload the updated data base to it. By doing this you will be getting rid of useless/non-existent files/directories like you mentioned above.[/QUOTE]



Thanks Tool. Tried importing the database into a fresh 2.1.2 installation. But the result is the same. :frowning: Still there a number of unwanted nested blocks into the left column, exactly as it was on the other installation. I have even lost the Quick menu toolbar from the admin. Same behaviour as the previous 2.1.2 installation. What can be done to remove the nested blocks and restore the ‘Quick menu’ toolbar ?? I am going nuts. Just wondering how other folks here have successfully managed to upgrade it without coming across these issues.



Thnx

You will have to redo the Quick menu manually since it is an upgrade DB and not a fresh one. As far as the blocks are concerned, you need to delete all of them and start over. You probably didn’t want to hear that but those are the quirks of the upgrade.

[quote name=‘The Tool’]You will have to redo the Quick menu manually since it is an upgrade DB and not a fresh one. As far as the blocks are concerned, you need to delete all of them and start over. You probably didn’t want to hear that but those are the quirks of the upgrade.[/QUOTE]



How do I delete all the blocks and start fresh? Also by the ‘Quick menu’ I meant the quick menu floating bar in the admin where you can access all the functions of the admin like orders, design etc.

[quote name=‘jain1980’]How do I delete all the blocks and start fresh? Also by the ‘Quick menu’ I meant the quick menu floating bar in the admin where you can access all the functions of the admin like orders, design etc.[/QUOTE]



You will see a red x in the upper right hand corner. If you don’t see it, you are not on the correct page i.e. All pages, Home page, etc…



That is the menu I am talking about as well. :smiley:

[quote name=‘The Tool’]You will see a red x in the upper right hand corner. If you don’t see it, you are not on the correct page i.e. All pages, Home page, etc…



That is the menu I am talking about as well. :D[/QUOTE]



Thank you Tool for your continous support on this issue. I don’t see any red x on the blocks. I had already deleted the ones which had it. It looks like the nested blocks are a result of some embedded code which has followed during the upgrade process from 2.08 to 2.1.2. Just wondering where the code is located to delete all the blocks manually through the templates.:confused:

[quote name=‘jain1980’]How do I delete all the blocks and start fresh? Also by the ‘Quick menu’ I meant the quick menu floating bar in the admin where you can access all the functions of the admin like orders, design etc.[/quote]



Their is a known problem of orphaned blocks when uprgading older sites, to fix you just need to open ./install/database/scheme.sql and find the tables cscart_block_descriptions, cscart_block_links, cscart_block_location_descriptions, cscart_block_location_properties, cscart_block_positions, cscart_blocks and copy and paste the tables into a file named blockfix.sql and upload using the cs-cart administration panel, ex: admin.php?dispatch=database.manage, then select the uploaded file and click restore, the blocks will be restored to their default state for v2.1.2. Always backup your database before making the above changes - Sno

[quote name=‘snorocket’]Their is a known problem of orphaned blocks when uprgading older sites, to fix you just need to open ./install/database/scheme.sql and find the tables cscart_block_descriptions, cscart_block_links, cscart_block_location_descriptions, cscart_block_location_properties, cscart_block_positions, cscart_blocks and copy and paste the tables into a file named blockfix.sql and upload using the cs-cart administration panel, ex: admin.php?dispatch=database.manage, then select the uploaded file and click restore, the blocks will be restored to their default state for v2.1.2. Always backup your database before making the above changes - Sno[/QUOTE]



Thanks sno. I tried your fix but after implementing it all the five default groups: Top, Left Side box, Central, Right Side box and Bottom are gone and now there is nothing on the blocks section as seen in the attachment. I tried adding a block and group but nothing is getting added. I guess the five default groups are hardcoded but still somehow got erased. Any way to restore all the default groups and blocks of Cscart 2.1.2?

No_Blocks.JPG

Sometimes this problem is quite complex, so, if anyone has faced such a problem, please do not hesitate to contact support team through HelpDesk.

Ok here is a screen shot from our blocks page.



our blocks used to work fine and now most of the blocks are not there anymore and i can see them in the database.



the blocks that are under blocks page are fine for now and they give me the option to select “Group” but as soon as select any of the options and save, then the block just disappears.



If i want to add a new block then it just does’nt give me the group option and when i save it again it just dissappears, but i can see it in the database.



i tried strucks idea and it deleted all of it.



there must be something about permission or a missing file i guess, but have no idea.



Can anyone be able to help?

blocks.jpg

Before you do even one more thing, check the permissions setting on every folder & every file within your CS-Cart directory. If you are not certain exactly how to do this, then ask your host to set the permissions properly for you.



Even if this does not solve this specific problem, it will save you time & headaches in the future by fully getting the whole permissions issue under control!



Also, make certain the proper permissions for your server are entered into your config.local.php file (these settings can change after an upgrade so always double check them to be certain they are entered correctly).



I use 0644 for all files & 0755 for all folders, you may need different permission settings for your server such as CS-Cart commonly specifies.



No doubt, a majority of the user problems listed here in the forums are permissions related, so it is well worth the effort in being absolutely certain you have them all set correctly. :wink:

thank you but did not help. i have just wrote to support and hope they can help.