• Resolved shpsite

    (@shpsite)


    I was tasked with transferring a client’s website. After transferring the files and database from a localhost install to an online domain, many images stopped working. Upon inspecting the database, I found that there were many links stored as raw data by Orchid Store (instead of getting the current domain via WP_HOME or HTTP_HOST).

    Here’s an example, from wp_options:

    
    (162, 'theme_mods_orchid-store', 'a:22:{s:18:\"custom_css_post_id\";i:-1;s:11:\"custom_logo\";i:15;s:38:\"orchid_store_field_enable_home_content\";b:0;s:37:\"orchid_store_field_display_top_header\";b:1;s:39:\"orchid_store_field_display_special_menu\";b:0;s:37:\"orchid_store_field_special_menu_title\";s:14:\"All categories\";s:18:\"nav_menu_locations\";a:2:{s:6:\"menu-1\";i:3;s:6:\"menu-2\";i:0;}s:42:\"orchid_store_field_top_header_social_links\";s:39:\"https://Facebook,,https://607-244-0805,\";s:37:\"orchid_store_field_display_breadcrumb\";b:0;s:57:\"orchid_store_field_enable_parallax_page_header_background\";b:0;s:12:\"header_image\";s:92:\"https://localhost/wordpress/wp-content/uploads/2020/01/cropped-american-flag-1477381__340.jpg\";s:16:\"sidebars_widgets\";a:2:{s:4:\"time\";i:1578163626;s:4:\"data\";a:7:{s:19:\"wp_inactive_widgets\";a:6:{i:0;s:10:\"archives-2\";i:1;s:6:\"meta-2\";i:2;s:8:\"search-2\";i:3;s:12:\"categories-2\";i:4;s:14:\"recent-posts-2\";i:5;s:17:\"recent-comments-2\";}s:9:\"sidebar-1\";a:0:{}s:9:\"sidebar-2\";a:1:{i:0;s:6:\"text-3\";}s:8:\"footer-1\";a:0:{}s:8:\"footer-2\";a:0:{}s:8:\"footer-3\";a:0:{}s:8:\"footer-4\";a:0:{}}}s:36:\"orchid_store_field_display_mini_cart\";b:1;s:39:\"orchid_store_field_archive_display_cats\";b:1;s:39:\"orchid_store_field_archive_display_date\";b:1;s:36:\"orchid_store_field_display_post_tags\";b:1;s:54:\"orchid_store_field_enable_page_common_sidebar_position\";b:0;s:45:\"orchid_store_field_display_footer_widget_area\";b:1;s:40:\"orchid_store_field_enable_sticky_sidebar\";b:0;s:47:\"orchid_store_field_enable_sidebar_small_devices\";b:0;s:17:\"header_image_data\";O:8:\"stdClass\":5:{s:13:\"attachment_id\";i:218;s:3:\"url\";s:92:\"https://localhost/wordpress/wp-content/uploads/2020/01/cropped-american-flag-1477381__340.jpg\";s:13:\"thumbnail_url\";s:92:\"https://localhost/wordpress/wp-content/uploads/2020/01/cropped-american-flag-1477381__340.jpg\";s:6:\"height\";i:599;s:5:\"width\";i:1920;}s:46:\"orchid_store_field_display_product_search_form\";b:1;}', 'yes'),
    

    So the next thing I tried was doing a find and replace in the database. Once I reloaded the webpage, each Orchid Store wp_options option_value field was cut down to the first semicolon. The impact of this on the website was that the Orchid Store theme no longer displayed correctly, the menu dropdowns were gone, and the images still did not appear.

    Example of post-find and replace:

    
    (162, 'theme_mods_orchid-store', 'a:1:{s:18:\"custom_css_post_id\";i:-1;}', 'yes'),
    

    Is there a solution?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Cannot transfer site to new domain’ is closed to new replies.