Author Topic: version update issue with stylesheet NOT changing  (Read 2299 times)

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1472
  • Karma: +383/-2
    • View Profile
version update issue with stylesheet NOT changing
« on: April 02, 2015, 01:11:32 PM »
Hello,  I have discovered than when running the UPDATE from 1.1.9  to 1.2.0 and even continuing on to 1.2.1  there is a difference in how these updates and previously ones worked.

After the update is run successfully,   there are two templates in the layout section -  one for default  and the old one of default_html5.  In versions 1.1.xxx the default stylesheet was overwritten and required changes to be redone.

I cannot get layout manager to switch to the default.   And extensions activated to the html5 don't work correctly.

If I make a clean install of 1.2.0 or 1.2.1  and do a sql import and resource and images files,  all seems to work.  Then I just need to redo my template changes for colors, etc. A bit longer of a process!

In doing significant research on this on over a dozen of my installations and checking with some other users,  this seems to be consistent for over them all.

Could use some guidance on how best to proceed and to avoid future issues with old stylesheet etc.

thanks
Lee




Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1781
  • Karma: +247/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: version update issue with stylesheet NOT changing
« Reply #1 on: April 03, 2015, 05:00:12 AM »
as i understood right..

Assistance "template-to-layout" placed in table "layouts".
You can try to update column "template_id".
1. Update or delete rows with old template_id "default". say to "default_old"
2. Update template_id from "default_html5" to "default".
3. clear cache
 
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1472
  • Karma: +383/-2
    • View Profile
Re: version update issue with stylesheet NOT changing
« Reply #2 on: April 06, 2015, 03:25:51 PM »
I have tried this in several different tries -  all have failed.   Once I change the template_id field,  I can no longer access the storefront,  or even open the layouts in the Admin Panel.   I changed nothing else but the template_id field.

Either there are some more steps  or I am back to rebuilding with a fresh install and porting the database and resources.

Lee


Offline llegrand

  • Hero Member
  • *****
  • Posts: 1472
  • Karma: +383/-2
    • View Profile
Re: version update issue with stylesheet NOT changing (remains unsolved)
« Reply #3 on: April 09, 2015, 07:30:49 PM »
Hey, could use some help here,  and I am not the only user with the issue.

here's the latest testing  steps:

updated 1.1.9 to 1.2.0
changed the prefix on the db from AB  to AC_ so the sql update would run.
changed the config file for the new prefix
ran the update link within the Admin panel.
Update stated Successful and the info in within the logs.
Verified the site still loads correctly - it did.  But the template used is default_html5
Went to tables -  layout,  and in the template_id changed the existing default  to default_old
Changed the template_id from "default_html5" to "default". (not quotes, of course)

can't clear cache,  because can't access Admin panel or storefront either at the above. 

There is something very flawed in this process.  Either the update files are missing something or???
My sites are not code changed,  except for color on header on stylesheet - so there should not be any reason for this to happen like this.   Now if we are willing to continue to use the default_html5 template then it works,  but I believe that is simply deferring a future problem and also interferes with extensions -  etc. 

Please either explain this,  or tell us how to fix this, or even better fix it so it will work.

As I said I can rebuild with a fresh install, and porting the Db, ETc.  but that is not an elegant fix to installations that are not altered from the original Abantecart coding.  And I know several users that I communicate with are reluctant to do that.

Lee







Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1781
  • Karma: +247/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: version update issue with stylesheet NOT changing
« Reply #4 on: April 10, 2015, 07:51:10 AM »
can you send me full backup for test (full sql-dump + files as archive) ?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1781
  • Karma: +247/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: version update issue with stylesheet NOT changing
« Reply #5 on: April 11, 2015, 09:27:41 AM »
well..
sotty, i missed setting 'storefront template' in admin->system->settings->appearance-> choose "default" instead "default_html5"
or do sql query
Code: [Select]
UPDATE `ac_settings` SET `value`='default' WHERE `key`='config_storefront_template' and `value`='default_html5';
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1472
  • Karma: +383/-2
    • View Profile
Re: version update issue with stylesheet NOT changing
« Reply #6 on: April 11, 2015, 10:01:32 AM »
Works on the home page -  still seems to have issues on the remaining pages

made the system > settings > appearance change.   Saved  and cleared cache

but still have issues with the other pages.   See this page on the test site:

http://countrysnackbucket.com/test120/oregon-trail-hickory-turkey-jerky

If you view page source still showing 1.1.9  and default_html5
If I go into design - layout,  shows default and default_html5,  but default is non-selectable (greyed out)

I sent you the creds for that test site -  so you can check it out there also.

Thanks -  we're making progress just not everything yet.

Lee

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1781
  • Karma: +247/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: version update issue with stylesheet NOT changing
« Reply #7 on: April 14, 2015, 07:36:02 AM »
hm.. i don see it on my testcase copy..
Can you remove all subdirectories of "system/cache" folder manually and check?
and.. did you update all "default_html5" to "default" inside "pages" table?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod