Local host issues
-
Hi all,
I have a problem setting up and using a local copy of my website through xammp.
I have followed the following tutorial:
https://managewp.com/how-to-create-a-local-copy-of-a-live-wordpress-site
Everything seemed to go smooth, I imported the database, changed permissions and changed the siteurl and home as specified. However I’m still having the following issues:
1. I cannot login to /wp-admin/ as the local copy still links to the live website. I cannot edit the permalinks option.
2. All links still go to the live website URL
3. the website isn’t displayed 100% correct –
Warning: Illegal string offset ‘sidebar_change’ in E:\xampp\htdocs\xampp\IBRL\wp-content\themes\ibrl2\includes\tt_meta.php on line 3
Warning: Illegal string offset ‘sl_pos’ in E:\xampp\htdocs\xampp\IBRL\wp-content\themes\ibrl2\includes\tt_meta.php on line 4
Warning: Illegal string offset ‘primary_width’ in E:\xampp\htdocs\xampp\IBRL\wp-content\themes\ibrl2\includes\tt_meta.php on line 5
Warning: Illegal string offset ‘secondary_width’ in E:\xampp\htdocs\xampp\IBRL\wp-content\themes\ibrl2\includes\tt_meta.php on line 6
Warning: Illegal string offset ‘special_width’ in E:\xampp\htdocs\xampp\IBRL\wp-content\themes\ibrl2\includes\tt_meta.php on line 7
In which the file displays:
<?php $meta_test2 = $custom_sidebar->the_meta(); $sb_change = $meta_test2['sidebar_change']; $sb_style = $meta_test2['sl_pos']; $primary_width = $meta_test2['primary_width']; $secondary_width = $meta_test2['secondary_width']; $special_width = $meta_test2['special_width']; global $primary_width, $secondary_width, $special_width; $meta_test3 = $custom_back->the_meta(); $back_change = $meta_test3['back_change']; $background_color = $meta_test3['background_color']; $background_url = $meta_test3['background_url']; $background_repeat = $meta_test3['background_repeat']; $header_change = $meta_test3['header_change']; $header2_change = $meta_test3['header2_change']; $header_url = $meta_test3['header_url']; $header_url2 = $meta_test3['header_url2']; global $back_change, $background_color, $background_url, $background_repeat; if ($back_change) {?><style type='text/css'>body {background: #<?php echo $background_color ;?> url("<?php echo $background_url; ?>") <?php echo $background_repeat ;?>;}</style><?php } if ($header2_change) { ?><style type='text/css'>.art-header:before{background-image: url('<?php echo $header_url2; ?>'); } </style><?php } if ($header_change) { ?><style type='text/css'>.art-header:after{ background-image: url('<?php echo $header_url; ?>'); } </style> <?php } if ($sb_change == 'Yes' ) { ?><style type='text/css'>.art-content-layout .art-sidebar2:before, .art-content-layout .art-sidebar1:before {width: 0px;}</style><?php } ?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
If you could provide a solution I would be eternally grateful. I was close to getting it working!
- The topic ‘Local host issues’ is closed to new replies.