Post by jay2kayuk » Sat Jul 11, 2015 5:13 am

I have moved my site to a new host, amended the config.php files accordingly and now the site does not display images.

binghisboutique.com

Any suggestions?

New member

Posts

Joined
Thu Jul 09, 2015 7:53 pm

Post by IP_CAM » Sat Jul 11, 2015 5:21 am

this cannot function:

Code: Select all

<script type="text/javascript" src="/catalog/....

Code: Select all

 href="/catalog/view/....
this does function:

Code: Select all

<script type="text/javascript" src="catalog/....

Code: Select all

href="catalog/view/....
check your ../theme/YOURTHEME/template/common/header.tpl file and make sure,
not to have anything like:

Code: Select all

WHATEVER IS HERE ="/catalog/....
around anywhere, but ONLY:

Code: Select all

WHATEVER IS HERE ="catalog/....
then it works.
You probably have made some changes, somewhere, in the past, now having this effect.
It's the Theme Header.tpl, or Mod's affecting Header.tpl Content, like i.E. remote
Google Font-/Script-Link-MOD's, but less the config.php files, still, one should look into them anyway,
to make sure, everything else is set in order.

It's possibly depending on the Server Setup, because, not all Servers REACT similar, to such a / (slash),
in 'front' of a path, especially, if a SHOP URL is placed in the ROOT Directory. It could therefore possibly have
worked, on your old Server, despite of the 'wrongdoing'. Just to mention it... ;)
Good Luck
Ernie
hitline.info/shop/
Last edited by IP_CAM on Sat Jul 11, 2015 5:46 am, edited 1 time in total.

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by jay2kayuk » Sat Jul 11, 2015 5:46 am

Please see below...
Last edited by jay2kayuk on Sat Jul 11, 2015 5:49 am, edited 1 time in total.

New member

Posts

Joined
Thu Jul 09, 2015 7:53 pm

Post by jay2kayuk » Sat Jul 11, 2015 5:47 am

Code: Select all

<!DOCTYPE html>
<!--[if lt IE 7]>	   <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>		   <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>		   <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		
		<title><?php echo $title; ?></title>

		<base href="<?php echo $base; ?>" />
		<?php if ($description) { ?>
			<meta name="description" content="<?php echo $description; ?>" />
		<?php } ?>
		<?php if ($keywords) { ?>
			<meta name="keywords" content="<?php echo $keywords; ?>" />
		<?php } ?>
		<?php if ($icon) { ?>
			<link href="<?php echo $icon; ?>" rel="icon" />
		<?php } ?>
		<?php foreach ($links as $link) { ?>
			<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
		<?php } ?>
		
		<base href="<?php echo $base; ?>" />
		
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

		
		<link rel="stylesheet" type="text/css" href="/catalog/view/theme/sfbk/css/bootstrap.css" />
		<link rel="stylesheet" type="text/css" href="/catalog/view/theme/sfbk/css/sfbk.css" />
		
		<?php foreach ($styles as $style) { ?>
			<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
		<?php } ?>
		
		<script type="text/javascript" src="/catalog/view/javascript/jquery/jquery-1.7.1.min.js"></script>
		<script type="text/javascript" src="/catalog/view/theme/sfbk/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="/catalog/view/javascript/jquery/ui/external/jquery.cookie.js"></script>
		<script type="text/javascript" src="/common.js"></script>
		<script type="text/javascript" src="/catalog/view/theme/sfbk/js/subscribe.js"></script>
		
		<?php foreach ($scripts as $script) { ?>
			<script type="text/javascript" src="<?php echo $script; ?>"></script>
		<?php } ?>
		<?php echo $google_analytics; ?>	
	</head>
	<?php 
		$body = 'page';
		$lookbook = '';
		$press = '';
		$shop = '';
		$custom = '';
		
		if
		(isset($_GET['route'])) {
			if
			($_GET['route'] == 'information/information') {
				$body = 'information';
				if
				(isset($_GET['information_id'])) {
					if
					($_GET['information_id'] == '9') {
						$lookbook = 'active';
					}
					elseif
					($_GET['information_id'] == '8') {
						$press = 'active';
					}
					elseif
					($_GET['information_id'] == '10') {
						$custom = 'active';
					}
				}
			} else {
				$shop = 'active';
			}
		} else {
			$shop = 'active';
		}
	?>
	<body class="<?php echo $body; ?>">
	<div id="wrapper" class="container">
	<div id="binghis-boutique">
		<header id="header">
			<div id="primary-header" class="clearfix">				
				<a class="brand logo-bin" href="<?php echo $home; ?>"></a>
				<a class="em-subscribe visible-xs myBag" href="<?php echo $shopping_cart; ?>"><?php echo $cart; ?></a>
				<ul class="socials hidden-xs">
					<li class="facebook"><a href="https://www.facebook.com/binghisboutique" target="_blank"></a></li>
					<li class="twitter"><a href="https://twitter.com/binghisboutique" target="_blank"></a></li>
					<li class="youtube"><a href="https://www.youtube.com/channel/UC94t6_lU3O008AIBQd4UEDw" target="_blank"></a></li>
					<li class="instagram"><a href="http://instagram.com/binghisboutique" target="_blank"></a></li>
				</ul><!-- /socials -->
			</div><!-- /primary-header -->
			<div class="main-nav">
				<a class="brand logo-btq" href="<?php echo $home; ?>"></a>
				<div class="nav-container">
					<ul class="Mnav">
						<li class="<?php echo $shop; ?>">
							<a href="http://www.binghisboutique.com/">Shop</a>
						</li>
						<li class="<?php echo $lookbook; ?>">
							<a href="http://www.binghisboutique.com/index.php?route=information/information&information_id=9">Lookbook</a>
						</li>
						<li class="<?php echo $press; ?>">
							<a href="http://www.binghisboutique.com/index.php?route=information/information&information_id=8">Press</a>
						</li>
						<li class="account">
							<?php if ($logged) { ?>
								<a href="<?php echo $account; ?>" style="margin-right: 15px;"><?php echo $text_account; ?></a>
								<a href="http://www.binghisboutique.com/index.php?route=account/logout">Logout</a>
							<?php } else { ?>
								<a href="<?php echo $login; ?>">Login</a>
							<?php } ?>
						</li>
					</ul>
				</div>
				<a class="em-subscribe subscribe">Email sign up</a>
			</div>
			<div class="search-mob visible-xs">
				<div class="row">
					<div class="col-xs-8">
						<?php if ($filter_name) { ?>
							<input type="text" name="filter_name" value="" class="col-xs-12" />
						<?php } else { ?>
							<input type="text" name="filter_name" value="" class="col-xs-12" onclick="this.value = '';" onkeydown="this.style.color = '#000000';" />
						<?php } ?>
					</div>
					<a class="col-xs-4">SEARCH</a>
				</div>
			</div>
			<div id="secondary-header-wrapper">
				<div id="secondary-header">
					<div class="row">
					<div class="col-md-12">
						<div class="relative">
							<nav id="categories" class="pull-left">
								<ul class="clearfix">
									<?php if ($categories) { ?>
										<?php foreach ($categories as $category) { ?>
											<?php
												$cat_class = '';
												if ($category['children']) {
													$cat_class = 'children';
												}
											?>
											<li class="cat <?php echo $cat_class; ?>"><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
												<?php if ($category['children']) { ?>
													<div><div>
														<?php for ($i = 0; $i < count($category['children']);) { ?>
															<ul>
																<li><a href="<?php echo $category['href']; ?>">ALL</a></li>
																<?php $j = $i + ceil(count($category['children']) / $category['column']); ?>
																	<?php for (; $i < $j; $i++) { ?>
																		<?php if (isset($category['children'][$i])) { ?>
																		<li><a href="<?php echo $category['children'][$i]['href']; ?>"><?php echo $category['children'][$i]['name']; ?></a></li>
																	<?php } ?>
																<?php } ?>
															</ul>
														<?php } ?>
													</div></div>
												<?php } ?>
											</li>
										<?php } ?>
									<?php } ?>
									<li><a href="www.binghisboutique.com/index.php?route=information/information&information_id=10" class="custom  <?php echo $custom; ?>">Custom</a></li>
								</ul>	
							</nav><!-- nav#categories -->
							
						</div>
						<div id="sfbk-cart" class="pull-right">
							<ul>
								<li class="cart"><a href="<?php echo $shopping_cart; ?>"><?php echo $cart; ?></a></li>
								<li><a>SEARCH</a>
									<div id="search">
										<?php if ($filter_name) { ?>
											<input type="text" name="filter_name" value="<?php echo $filter_name; ?>" />
										<?php } else { ?>
											<input type="text" name="filter_name" value="<?php echo $text_search; ?>" onclick="this.value = '';" onkeydown="this.style.color = '#000000';" placeholder="Press <enter> to search" />
										<?php } ?>
									</div>
								</li>
								<li class="ipad_filters">
									<?php 
									if(isset($_GET['route'])) {
										if
										($_GET['route'] == 'product/category')  {
											echo '<a>Sort by</a>'; 
										}
									} 
									?>
									<div class="filters_container"></div>
								</li>
							</ul>
						</div><!-- /sfbk-cart.pull-right -->
					</div>
					</div><!-- /row -->
				</div><!-- /secondary-header -->
			</div><!-- /secondary-header-wrapper -->
		</header><!-- /header -->	

		<div id="sfbk-content" class="clearfix">

New member

Posts

Joined
Thu Jul 09, 2015 7:53 pm

Post by jay2kayuk » Sat Jul 11, 2015 5:55 am

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://www.binghisboutique.com/admin/');
define('HTTP_CATALOG', 'http://www.binghisboutique.com/');
define('HTTP_IMAGE', 'http://www.binghisboutique.com/image/');

// HTTPS
define('HTTPS_SERVER', 'http://www.binghisboutique.com/admin/');
define('HTTPS_CATALOG', 'http://www.binghisboutique.com/');
define('HTTPS_IMAGE', 'http://www.binghisboutique.com/image/');

// DIR
define('DIR_APPLICATION', '/home/users/web/b1522/ipg.binghisboutiquecom/admin/');
define('DIR_SYSTEM', '/home/users/web/b1522/ipg.binghisboutiquecom/system/');
define('DIR_DATABASE', '/home/users/web/b1522/ipg.binghisboutiquecom/system/database/');
define('DIR_LANGUAGE', '/home/users/web/b1522/ipg.binghisboutiquecom/admin/language/');
define('DIR_TEMPLATE', '/home/users/web/b1522/ipg.binghisboutiquecom/admin/view/template/');
define('DIR_CONFIG', '/home/users/web/b1522/ipg.binghisboutiquecom/system/config/');
define('DIR_IMAGE', '/home/users/web/b1522/ipg.binghisboutiquecom/image/');
define('DIR_CACHE', '/home/users/web/b1522/ipg.binghisboutiquecom/system/cache/');
define('DIR_DOWNLOAD', '/home/users/web/b1522/ipg.binghisboutiquecom/download/');
define('DIR_LOGS', '/home/users/web/b1522/ipg.binghisboutiquecom/system/logs/');
define('DIR_CATALOG', '/home/users/web/b1522/ipg.binghisboutiquecom/catalog/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'binghisboutiquecom.ipagemysql.com');
define('DB_USERNAME', '*******');
define('DB_PASSWORD', '*******'');
define('DB_DATABASE', 'binghisb_opencart');
define('DB_PREFIX', '');
?>

New member

Posts

Joined
Thu Jul 09, 2015 7:53 pm
Who is online

Users browsing this forum: No registered users and 11 guests