If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading to 1.5.x / DB upgrade and init_includes ?

DB upgrade and init_includes ?

Started by hubert on 10 Oct 2012, 4:37 PM · Views: 500

Results 1 to 2 of 2
10 Oct 2012, 4:37 PM
#1
hubert avatar

hubert

Zen Follower

Join Date:
Mar 2005
Posts:
229
Plugin Contributions:
0

DB upgrade and init_includes ?

Hello,

We are in the process of upgrading from 1.3.7 to 1.5.0.
As we are also updating our look and feel we used the "new site" method :
we installed a brand new 1.5.0,
customized the look and feel,
added some plugins and it works quite well.

But during our test time the old site is still online and new customers and new orders have been added in the old database,
so our plan was to :

  1. Migrate again the old but still used database to 1.5.0 (install sql patches files)
  2. Install all sql patches (those of plugins when they exists)
    which theorically sounds a good method but we are facing two problems :
    the first one was that there was no menu on admin side.
    We discovered, looking into the database, that the superuser profile was 0, so we changed it to 1 and all is ok.

The second problem is that for some plugins the sql patches are in a php file which is in the admin/init_includes folder.
I thought that these patches would get done automatically as they are on first install but it is not the case.
Result is that a lot of my plugins are installed but not in the admin menus.

Can someone tell me how the init_includes files knows if they have to do their job or not, and how to change it.
My hope is that knowing that I will be able to execute all necessary patches and find back my plugins, so my whole site with an up to date database.

Tanks for help

Regards

Hubert

10 Oct 2012, 5:14 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: DB upgrade and init_includes ?

I recommend you review this article and consider how it compares with your current approach: http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version

As for init_includes files, they are only loaded if files in the auto_loaders folder tell it to load them.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.