Title: morfie's Replies | WordPress.org

---

# morfie

  [  ](https://wordpress.org/support/users/morfie/)

 *   [Profile](https://wordpress.org/support/users/morfie/)
 *   [Topics Started](https://wordpress.org/support/users/morfie/topics/)
 *   [Replies Created](https://wordpress.org/support/users/morfie/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/morfie/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/morfie/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/morfie/engagements/)
 *   [Favorites](https://wordpress.org/support/users/morfie/favorites/)

 Search replies:

## Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] Migration 404 errors](https://wordpress.org/support/topic/migration-404-errors/)
 *  [morfie](https://wordpress.org/support/users/morfie/)
 * (@morfie)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/migration-404-errors/page/2/#post-5005928)
 * [@yalet](https://wordpress.org/support/users/yalet/), awesome! Very helpful!
   
   Another bit of info about why this happens: Items are stored in JSON format. 
   Inside the JSON are strings with a character count. When you rename the domain,
   if the domain name has a different number of characters than what you are replacing
   it with, the character count in the JSON won’t match the string it represents.
   That is why the issues occur. This isn’t just with NextGEN Gallery, but with 
   a lot of WP Core and Plugin content storage.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] Migration 404 errors](https://wordpress.org/support/topic/migration-404-errors/)
 *  [morfie](https://wordpress.org/support/users/morfie/)
 * (@morfie)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/migration-404-errors/#post-5005796)
 * FIXED IT!
    It was definitely the SQL. Here is what I recommend: 1) Re-export 
   the SQl file. 2) Open in Notepad++ or whatever you like. 3) go to the INSERT 
   statement for ‘wp_options’ to the first key (‘siteurl’). You can probably just
   do a find for ‘siteurl’ and go right there. Change that line to your dev env’s
   URL. 4) Still inside the ‘wp_options’ statement, go down to ‘home’. Change that
   to your dev env’s URL. 5) do a search for //domainname.com/wp-content/uploads
   and replace it with //dev.domainname.com/wp-content/uploads 6) Save and import
   into empty DB
 * Other than a few widgets needing updating, everything worked nicely. Will there
   still be refs to the live site? Yes, but they are unimportant, as they will not
   affect functionality (most likely) and will have to be set back to the live site
   URL when you are done, anyway.
 * Hope this helped!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] Migration 404 errors](https://wordpress.org/support/topic/migration-404-errors/)
 *  [morfie](https://wordpress.org/support/users/morfie/)
 * (@morfie)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/migration-404-errors/#post-5005787)
 * I did pretty much the same thing. Even using Notepad++. 🙂
    I am also 100% positive
   that it is a problem in the DB, and that when we did the replace, it screws up
   something with NextGen Gallery. I had the previous dev version which worked fine.
   When I switched that directory with the newer codebase, and back, the same issue
   occurred no matter what codebase was used. That is because they all used the 
   same DB. So I’m guessing how we did the replace is the issue. I’ll let you know
   more as details unfold.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] Migration 404 errors](https://wordpress.org/support/topic/migration-404-errors/)
 *  [morfie](https://wordpress.org/support/users/morfie/)
 * (@morfie)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/migration-404-errors/#post-5005784)
 * I know you are busy, but could you let me know some things on how you performed
   the migration?
    Was the live site on linux and the dev site Windows? Did you 
   perform any DB operations on the .sql file before importing it into your MySQL
   db? If so, which? DNS related?
 * Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] Migration 404 errors](https://wordpress.org/support/topic/migration-404-errors/)
 *  [morfie](https://wordpress.org/support/users/morfie/)
 * (@morfie)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/migration-404-errors/#post-5005780)
 * I’ll let you know if I find anything.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] Migration 404 errors](https://wordpress.org/support/topic/migration-404-errors/)
 *  [morfie](https://wordpress.org/support/users/morfie/)
 * (@morfie)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/migration-404-errors/#post-5005778)
 * Also, do you get an error if you go to the “Other Options” menu item under “Gallery”
   in your WP Admin?
    I get: `...\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\
   modules\nextgen_other_options\image_options_tab.php is not a valid MVC template`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] Migration 404 errors](https://wordpress.org/support/topic/migration-404-errors/)
 *  [morfie](https://wordpress.org/support/users/morfie/)
 * (@morfie)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/migration-404-errors/#post-5005777)
 * I’ve just tried the same thing and I have EXACTLY the same issue. Did you get
   it working?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Front-end Editor] save_post equivalent when saving a field](https://wordpress.org/support/topic/save_post-equivalent-when-saving-a-field/)
 *  Thread Starter [morfie](https://wordpress.org/support/users/morfie/)
 * (@morfie)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/save_post-equivalent-when-saving-a-field/#post-4886230)
 * For those of you interested
 *     ```
       function functionname($meta_id, $post_id, $meta_key, $meta_value) {
         ...
       }
       add_action( 'updated_post_meta', 'functionname', 10, 4 );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Front-end Editor] save_post equivalent when saving a field](https://wordpress.org/support/topic/save_post-equivalent-when-saving-a-field/)
 *  Thread Starter [morfie](https://wordpress.org/support/users/morfie/)
 * (@morfie)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/save_post-equivalent-when-saving-a-field/#post-4886228)
 * Nevermind. I discovered the ‘updated_post_meta’ action. All good!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[amr shortcode any widget] Text widget not found](https://wordpress.org/support/topic/text-widget-not-found/)
 *  Thread Starter [morfie](https://wordpress.org/support/users/morfie/)
 * (@morfie)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/text-widget-not-found/#post-4648879)
 * Sorry to bother you again. I’m having the same issue as before, but this time
   I’m doing id=text-8 and it still isn’t working.
 * 1. Installed and activated the plug-in
    2. Dragged a text widget to the Widgets
   for Shortcodes sidebar 3. Added some text into the text widget. 4. Forced a debug
   to get a list of the widget ids.
 *     ```
       Sidebar: widgets_for_shortcodes: Widgets for Shortcodes has widgets:
                text-8
       ```
   
 * 5. Inside my PHP template, tried:
 *     ```
       do_shortcode('[do_widget id=text-8]');
       ```
   
 * and saved the PHP.
    6. Reloaded my page. Nothing gets displayed.
 * Really sorry about contacting you again. I know your widget is super simple to
   use, and like everyone else, I love it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7 Datepicker] Button Trigger](https://wordpress.org/support/topic/button-trigger/)
 *  Thread Starter [morfie](https://wordpress.org/support/users/morfie/)
 * (@morfie)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/button-trigger/#post-4696283)
 * I just implemented a ‘Button Trigger’ and ‘Button URL’ option into my local version
   of the svn repo. Probably needs refinement, but it does the trick.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[amr shortcode any widget] Text widget not found](https://wordpress.org/support/topic/text-widget-not-found/)
 *  Thread Starter [morfie](https://wordpress.org/support/users/morfie/)
 * (@morfie)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/text-widget-not-found/#post-4648682)
 * Awesome! Thank you. I knew it must’ve been something simple.

Viewing 12 replies - 1 through 12 (of 12 total)