# Migration from v1.8 to 3.0.3 questions

**URL:** <https://discourse.laminas.dev/t/migration-from-v1-8-to-3-0-3-questions/549>\
**Category:** Components & MVC\
**Tags:** zf1\
**Created:** [March 28, 2018, 8:14pm UTC](https://discourse.laminas.dev/t/migration-from-v1-8-to-3-0-3-questions/549 "2018-03-28T20:14:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sedwardleifheit3](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sedwardleifheit3](https://discourse.laminas.dev/u/sedwardleifheit3)\
**Post date:** [March 28, 2018, 8:14pm UTC](https://discourse.laminas.dev/t/migration-from-v1-8-to-3-0-3-questions/549/1 "2018-03-28T20:14:07Z")

</div>

I am currently investigating how to migrate a code base from Zend Framework 1.8 to 3.0.3 so that I can properly unit test. What are the best practices in doing such a thing as I’ve not attempted it.

---

<div class="post-metadata">

**Author:** ![matthew](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/matthew/32/14_2.png) [@matthew](https://discourse.laminas.dev/u/matthew)\
**Post date:** [March 28, 2018, 8:54pm UTC](https://discourse.laminas.dev/t/migration-from-v1-8-to-3-0-3-questions/549/2 "2018-03-28T20:54:43Z")

</div>

Follow the migration path first [to version 2](https://docs.zendframework.com/zend-expressive/v2/reference/migration/), then [to version 3](https://docs.zendframework.com/zend-expressive/v3/reference/migration/). If you do so in a stepped way like the above, you should have few problems. Ask further questions here [or in the slack](https://zendframework-slack.herokuapp.com) as they arise.

---

<div class="post-metadata">

**Author:** ![sedwardleifheit3](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sedwardleifheit3](https://discourse.laminas.dev/u/sedwardleifheit3)\
**Post date:** [March 28, 2018, 9:04pm UTC](https://discourse.laminas.dev/t/migration-from-v1-8-to-3-0-3-questions/549/3 "2018-03-28T21:04:24Z")

</div>

One thing I am not grasping is why I am getting “Fatal error: require\_once(): Failed opening required ‘Zend/Application.php’ (include\_path=’:.:/Applications/MAMP/bin/php/php7.1.8/lib/php’)”

why is it looking for the application.ini file in the MAMP/…/php folder not the folder for the application. Im not even using MAMP to run this localhost.

---

<div class="post-metadata">

**Author:** ![matthew](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/matthew/32/14_2.png) [@matthew](https://discourse.laminas.dev/u/matthew)\
**Post date:** [March 28, 2018, 10:49pm UTC](https://discourse.laminas.dev/t/migration-from-v1-8-to-3-0-3-questions/549/4 "2018-03-28T22:49:07Z")

</div>

I misunderstood the question; I thought you were talking about Zend Expressive, but you were talking about a Zend Framework MVC application.

Unfortunately, there is no migration path; ZF2 was a complete rewrite of the MVC, and it wasn’t possible to migrate directly from v1 to v2 without significant changes in your application.

You will need to migrate manually. We generally suggest Expressive as being a closer fit for ZF1 users.

---

<div class="post-metadata">

**Author:** ![froschdesign](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/froschdesign/32/38_2.png) [@froschdesign](https://discourse.laminas.dev/u/froschdesign)\
**Post date:** [March 29, 2018, 6:32am UTC](https://discourse.laminas.dev/t/migration-from-v1-8-to-3-0-3-questions/549/5 "2018-03-29T06:32:54Z")

</div>

> [@sedwardleifheit3](#):
>
> why is it looking for the application.ini file in the MAMP/…/php folder not the folder for the application. Im not even using MAMP to run this localhost.

You misunderstood the error message. Not the `application.ini` is missing, the include path is wrong and therefore the ZF1 can not be found.
