Title: Error in Installer.php
Last modified: June 1, 2022

---

# Error in Installer.php

 *  Resolved [rohit016](https://wordpress.org/support/users/rohit016/)
 * (@rohit016)
 * [4 years ago](https://wordpress.org/support/topic/error-in-installer-php-2/)
 * Hello Team,
 * I had started migrating my site from 1 hosting to another.
    but it got stuck 
   at the step number 3. Now when I am trying to start the process again from step
   1. It is showing me this error in installer.php I had delted all the files created
   in the filemanager at my 1st attempt and also the Db.
 *     ```
       [PHP ERR][FATAL] MSG:Uncaught Error: Call to undefined function json_encode() in /home/promomeds/public_html/installer.php:1669
       Stack trace:
       #0 /home/promomeds/public_html/installer.php(1521): DUPX_CSRF::saveCSRFVars(Array)
       #1 /home/promomeds/public_html/installer.php(1556): DUPX_CSRF::setKeyVal('_DUPX_CSRF_step...', '21F516B83E2CC18...')
       #2 /home/promomeds/public_html/installer.php(1683): DUPX_CSRF::generate('step1')
       #3 {main}
         thrown [CODE:1|FILE:/home/promomeds/public_html/installer.php|LINE:1669]
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-installer-php-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [4 years ago](https://wordpress.org/support/topic/error-in-installer-php-2/#post-15707345)
 * Hey [@rohit016](https://wordpress.org/support/users/rohit016/)
 * Thanks for the feedback! There are a few items in the FAQ that may provide a 
   solution to this issue, this one may get you going.
 *  – How can I fix “Call to undefined function” errors?
    – [https://snapcreek.com/duplicator/docs/faqs-tech/#faq-trouble-120-q](https://snapcreek.com/duplicator/docs/faqs-tech/#faq-trouble-120-q)
 * If you would like to submit a [support ticket](https://snapcreek.com/ticket) 
   for this issue we can have a closer look at your setup. Please provide a link
   to this forum thread when submitting the ticket.
 * Hope this helps~

Viewing 1 replies (of 1 total)

The topic ‘Error in Installer.php’ is closed to new replies.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/error-in-installer-php-2/#post-15707345)
 * Status: resolved