Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • Evolution
  • Legacy Release Archive
  • 0.9.6.1
  •  
  • Custom chunks overwritten when upgrading from v. 0.9.6.1p2 to v.1.0.4#

  • 1633
    2

    andydt Reply #1, 1 year, 9 months ago

    Reply
    • Link to this post#1
    Hi All,
    I just upgraded my modx from version 0.9.6.1p2 to the latest version of evolution - 1.0.4.
    It all went smoothly other than it seems that some of my custom chunks are missing.
    On inspection of the site_htmlsnippets table in the database it appears that my missing custom chunks have been overwritten by standard chunks in the upgrading process - namely the FormLogin and FormSignup chunks.

    Has anyone else experienced this, or does anyone know why the upgrade process overwrites custom chunks in the database?

    Thanks!


  • 28042
    15,111
    How MODx Evo Works

    Log in to an Evo Manager username guest, password guestuser.

    sottwell Reply #2, 1 year, 9 months ago

    Reply
    • Link to this post#2
    If you selected these in the installation options page, then they get overwritten. I'm always careful when upgrading (especially over such a large version gap) to not upload snippets, and during the installation to clear the boxes for all chunks and snippets.

    Along the same lines, I never modify any of the default elements. I make copies, rename the copies, then modify and use the renamed copies. That way there is no chance that an upgrade will overwrite something based on its ID. Likewise if I want to modify any of the default installation files; I make copies of the folder and work with the copy leaving the original alone. At most I need to change the path for any included files. I learned this many years ago after losing a few templates because I had just modified the existing default template.


  • 1633
    2

    andydt Reply #3, 1 year, 9 months ago

    Reply
    • Link to this post#3
    Thanks for the response.

    I realised after reverting back to the original state and then running the upgrade process again that it was due to the 'Sample Web Site' check box getting checked when you go back to the 'Optional Items' page having been to the confirmation page, even though it was previously unchecked.

    Have just run the upgrade again making sure this checkbox stayed unchecked and it all seems fine this time round.

    Thanks.


  • 4310
    2,276
    Snippets : eForm 1.4.4.7 with SMTP & PMS's security fixes | PHC Results | EasyNewsletter from CSV

    Wiki Articles : Custom DB table to placeholders | Manager Locked Out?

    Websites : Work - U.K. based MODx development  |  Hobby - Free interactive education resources for teaching 4 - 11 year olds

    Hosting : One Smart Host - Professional MODx hosting 

    bunk58 Reply #4, 1 year, 9 months ago

    Reply
    • Link to this post#4
    due to the 'Sample Web Site' check box getting checked when you go back to the 'Optional Items' page having been to the confirmation page, even though it was previously unchecked
    That's caught me out before >





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
andydt, bunk58, sottwell

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy