Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Pics Problem After migrating from plesk to cpanel


Guest

Recommended Posts

Posted

I have migrated/copied a slightly modified osmax2 store from a plesk server to a cpanel server.

It worked fine the plesk server.

I have modified the config files for the new server.

 

The problem is that the pics come up as red X's and no styles are being applied.

 

When checking the properties for the pics I get something like this for the path:

http:///images/OSCMAX_top.jpg'>http:///images/OSCMAX_top.jpg

 

or

 

http:///catalog/images/WW115Home.jpg'>http:///catalog/images/WW115Home.jpg

 

Where is the http:/// coming from?

 

I have tried everything I can think of.

 

www.deejackson.com

 

I have spent 2 days trying to fix this. Any Ideas Anyone?

 

Also, the admin sections works perfect.

 

Please help, as always it is an emergency - need running again before monday morning.

 

Thanks in advace.

Posted

Looks like you are halfway through a re-installation.

 

Just need to delete the install directory.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

As mentioned in my original post - this is a migration/copy - not a new install - it worked fine on the plesk server.

 

The install directory was there simply becuase I used the install program to simply make sure I was using the correct doc root etc for the store.

Posted

I'd say something in your /catalog/includes/configure.php files needs modified.

 

Post it's contents, LEAVING OUT THE DATABASE ACCESS INFO (USERNAME & PASSWORD) INFO THAT MAY BE PRESENT IN IT.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

I'm wondering if it has something to do with templates, but I am lost.

I just got thru migrating another store over from plesk to cpanel with no problems at all.

 

HELP!!!!!!

 

/*

osCMax v2.0, Open Source E-Commerce Solutions

http://www.osCDox.com

 

Copyright 2006 osCMax2005 osCMax

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.deejackson.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.deejackson.com');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/deejackson/public_html/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', '99.99.99.99'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'XXXXXXXX');

define('DB_SERVER_PASSWORD', 'XXXXXXXX');

define('DB_DATABASE', 'XXXXXXXX');

define('USE_PCONNECT', 'true'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Posted

The problem with your images shows up in the HTML here:

 

<base href="">

That should say something like:

 

<base href="http://www.deejackson.com/catalog/">

Look towards the top of your /catalog/index.php for a line that looks similar to this:

 

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

Post what yours says.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

That line isn't in my catalog/index.php at all

 

It is in the template index files - I'm not really sure if/which template I used to create this site - it was 2 years ago.

Posted

Well, if you can find where it's at, I can probably help you change it to get it to work.

 

Since it's a "template", I wouldn't have a clue where to suggest to look though....

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

I think I just modifed the fallback template.

 

Is there any way to tell which template is being called/used?

 

 

 

/public_html/catalog/includes/languages/english/mainpage.php is definately being used

 

Please advise

Posted

Sorry, but I haven't a clue.

 

I've never used templates for an osC site.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

OK, It was the AAbox template.

 

When I changed the base href like u suggested it started working again.

 

Fantastic!

 

Way to go!

 

The enlarge pic is not funtioning though.

 

Same type of property for the pic.

 

http:///

 

Can you help with that?

Posted

The only help I can offer there is that the click to enlarge has the exact same problem.

 

Look at the HTML source for the "Click to enlarge" page and your "old buddy" is back:

 

<base href="">

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

I see you figured it out.

 

Obi Wan taught you well, Young CodeWalker...

:thumbsup:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

The Dark Side is still very strong.

 

Maybe it is trying to blind me.

 

The enlarge still does not work for me...

 

Please advise...

Posted

But it works for me...

:unsure:

 

Like here:

 

Click Me

 

The click to enlarge works on that page for me in IE7 and Firefox.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Hmm, I'm using IE 6 and I get the same as I did before with the standard pics - that http:/// in the image properties

Posted

Time to upgrade....

:lol:

 

You have no other browser to test it with?

:unsure:

 

As far as I'm concerned, you hit the nail on the head - problem solved!!!

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

It should work fine under IE 6 - it did before.

 

I can't exactly tell all customers/clients to upgrade their browser...

 

Well they are not my customers, this is a site of one of my clients.

 

Hmm...

Posted

Well, if it isn't because you have a pop-up blocker stopping it, I wouldn't know what to check.

 

On my PC at work, they still use IE6, but I won't be able to check it there until tomorrow around 5:30 AM (CDT)

:huh:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

That would be kool, but I think it is still a path problem.

 

I have checked on 3 other pc's here running IE6 and all get the same thing.

 

Definatly not a OS cache problem.

 

checking mopics javascript.....

Posted

I think I found the problem.

 

The source for one of the pop-up pages:

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="en">
<head>
<title> : Dee Jackson Watercolors & Calligraphy</title>
<base href="http://www.deejackson.com/catalog/">
<meta name="description" content="Dee Jackson Watercolors & Calligraphy :  - Love & Marriage,Words of Wisdom,Southern/Northern,Humor,Professions,Home,Friends,Children/Family,Faith/Religion,Family,Large Calligraphy,Savannah Watercolors,Watercolors," />
<meta name="keywords" content="Love & Marriage,Words of Wisdom,Southern/Northern,Humor,Professions,Home,Friends,Children/Family,Faith/Religion,Family,Large Calligraphy,Savannah Watercolors,Watercolors," />
<link rel="stylesheet" type="text/css" href="templates/aabox/stylesheet.css">
 <link rel="stylesheet" type="text/css" href="dynamic_mopics.css">
<style type="text/css">
<!--
body {
margin: 10px;
}
-->
</style>
<script language="javascript" type="text/javascript"><!--
var i=0;
function resize() {
 if (navigator.appName == 'Netscape') i=10;
 if (document.images[0]) {
 imgHeight = document.images[0].height+65-i;
 imgWidth = document.images[0].width+30;
 var height = screen.height;
 var width = screen.width;
 var leftpos = width / 2 - imgWidth / 2;
 var toppos = height / 2 - imgHeight / 2; 
 window.moveTo(leftpos, toppos);  
 window.resizeTo(imgWidth, imgHeight);
 }
 self.focus();
}
//--></script></head>
<body  onload="resize();">
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="en">
<head>
<title>Comes The Dawn Images</title>
<base href="">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
 <link rel="stylesheet" type="text/css" href="dynamic_mopics.css">
</head>

<body class="popupImage">
<div align="center">
	<a href="java script:window.close();"><img src="images/images_big/XC100.jpg" border="0" alt="Comes The Dawn" title=" Comes The Dawn " width="400" height="618"><br /><span class="smallText">Close Window <u>[x]</u></span></a>
</a>
</div></body>
</html>

Note how some of the code repeats.

 

When I look at the source from a popup on my site, all it has is this:

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>A) Massachusetts D (Roll)</title>
<base href="http://www.bobscurrency.com/">
<script language="javascript"><!--
var i=0;
function resize() {
 if (navigator.appName == 'Netscape') i=40;
 if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);
 self.focus();
}
//--></script>
</head>
<body onload="resize();">
<img src="images/MA.jpg" width="90" height="84" border="0" alt=" A) Massachusetts D (Roll) " title=" A) Massachusetts D (Roll) "></body>
</html>

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...