chrometweaks.org

Need to upload a picture to a free iPage web host site w/out loss of size?

Click Here To View All Answers...


First question I have is Need to upload a picture to a free iPage web host site w/out loss of size? Thanks for any comment. Another question I got... OK, I've been looking around for a while for older topics on this issue I'm having. I have a dedicated ssl on gardenvines.com through geotrust. When I set up the cart (just redid it fully with a fresh MS2) for ssl everything looks like it is going well. The pages that are supposed to go to https do it just fine.

A similar thing happens in Opera..

I found a post on codebase href that made me look at a few things..

(.

Http://forums.oscomm...howtopic=118744.

).

When I tweak the configre.php to force http server to https, I get the base href https at the beginning of each page (viewing source), of course I can't leave the entire iPage site on https or it will tax the server, so I changed it back and got the same disappearing padlock. Mozilla claims (when I click on the padlock with a red bar) that the iPage site is secured. However, there must be something wrong for the bar to appear and the padlock to be missing entirely in IE..

So, now I'm looking at functions like html_output.php and general.php.

In html output it really looks like the function sets this base href with this:.

// The HTML href link wrapper function.

Function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {.

Global $request_type, $session_started, $SID;.

If (!tep_not_null($page)) {.

Die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');.

}.

If ($connection == 'NONSSL') {.

$link = HTTP_SERVERDIR_WS_HTTP_CATALOG;.

} elseif ($connection == 'SSL') {.

If (ENABLE_SSL == true) {.

$link = HTTPS_SERVERDIR_WS_HTTPS_CATALOG;.

} else {.

$link = HTTP_SERVERDIR_WS_HTTP_CATALOG;.

}.

} else {.

Die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>');.

}.

...but I can't get it to do what I want (because I'm just a hack at php)..

So, I tried this: I viewed source and copied one of my https pages (one with the disappeared padlock). The base href was, of course, http. I dropped it into an html editor (dreamweaver) and added that little s in there (to make the base href https) and saved it to the main directory of my site. Then I viewed the page.

Https://www.gardenvines.com/test.htm.

And, hey, there's my padlock! And the links showing on the page weren't forced to https like when I tweaked the configure.php as mentioned above..

So, the iPage site is MS2 standard with default setup for ssl, my config files are "right outa the box". the url is www.gardenvines.com. Can anyone help?..

Comments (178)

That's a good question. I'm not sure what is the answer. I'll do some research in Google and get back to you if I bump into an decent answer. You should email the people at iPage as they probably could help you..

Comment #1

I understand what you're saying vger, but then why does it work on the page I linked above?.

Https://www.gardenvines.com/test.htm.

Shouldn't it be subject to the same setup problem with the cert? and yet, the padlock remains...

Comment #2

I looked at the certificate, it has www.gardenvines.com in it, not.

Http://www.gardenvines.com.

It could be if you have changed any of the code from osCommerce dealing with oscommerce, therein lies your problem. backup the iPage site and copy untouched code back up to the site, and then post your configure.php file here...

Comment #3

Because it's been changed. Previously the Geotrust link showed the certificate as being for.

Http://www.gardenvines.com.

Now, as you said, it shows as being for www.gardenvines.com..

Vger..

Comment #4

Replace ALL your code for the iPage site with untouched osCommerce code. Post your configure.php file so we can make sure you have things setup properly. until this is accomplished there is nothing we can do to help...

Comment #5

Thanks for the support, mibble! This is a completely fresh installation. I didn't mess with anything this time. but here it is anyway:.

<?php.

/*.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

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.gardenvines.com'); // eg,.

Http://localhost.

- should not be empty for productive servers.

Define('HTTPS_SERVER', 'https://www.gardenvines.com'); // eg,.

Https://localhost.

- should not be empty for productive servers.

Define('ENABLE_SSL', true); // secure webserver for checkout procedure?.

Define('HTTP_COOKIE_DOMAIN', 'www.gardenvines.com');.

Define('HTTPS_COOKIE_DOMAIN', 'www.gardenvines.com');.

Define('HTTP_COOKIE_PATH', '/');.

Define('HTTPS_COOKIE_PATH', '/');.

Define('DIR_WS_HTTP_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', '/homepages/0/***********/htdocs/os/');.

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

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

// define our database connection.

Define('DB_SERVER', 'db128.****.net'); // eg, localhost - should not be empty for productive servers.

Define('DB_SERVER_USERNAME', '**********');.

Define('DB_SERVER_PASSWORD', '**********');.

Define('DB_DATABASE', '*******');.

Define('USE_PCONNECT', 'false'); // use persistent connections?.

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

?>..

Comment #6

Every time I have clicked my Geotrust link, it has always (including just a minute ago) said.

Https://www.gardenvines.com..

Comment #7

What is your document root? store admin/ tools / server info search for document_root and post that here..

Comment #8

/homepages/0/d112133822.

And the directory is os not catalog. I've left the fully modded directory intact and repointed the url to os...

Comment #9

So I guess that means,.

/homepages/0/d112133822/os.

But, again, I'm a noob so this might only be a part of it...

Comment #10

Your configure.php shows this:.

Define('DIR_FS_CATALOG', '/homepages/0/***********/htdocs/os/');.

And you have this now you just posted:.

/homepages/0/d112133822/os.

So you need to change the one in your configure.php..

Comment #11

Oh, I just bleeped out things I thought might compromise security and at first that looked like one..

Sorry it took so long to get back on this. I had to run my daughters to a party...

Comment #12

HEY HEY HEY! Joy and happiness! In one of the other posts I found a place to change the base href! I've changed a few and it loks like it is working out fine!!!! For anyone else with this problem, read the post and replies above. I went into each file that I wanted secure for sure (create _account etc. ) and manually changed the base href from a php code to the actual.

Https://www.gardenvines.com.

And it appears to work just fine! If I'm wrong and something else is messed up as a result, I'll come back and update..

My thanks go to cyanide from Canada who pointed the way!.

Oh, and definitely to Mibble for standing by and helping a noob...

Comment #13

You probably did more work than you needed, and some things may not work right with this change. The base is determined by whether osC thinks you're in SSL mode or not, the test being done in application_top.php. On some hosts, this test may need to change slightly. For example, here's what I have:.

// set the type of request (secure or not).

 $request_type = (getenv('HTTPS') == 'on' or getenv('SERVER_PORT') == 443) ? 'SSL' : 'NONSSL';.

Some have said that the 'on' needs to be '1' on their host..

This post has been edited by.

Stevel.

: 31 October 2004, 00:38..

Comment #14

Oh my god, you're right! I'm in the middle of changing each file and I did what you said in application_top. I surfed to a page I haven't manually changed yet and bing, there's my padlock! Thanks for adding your input about this for me and for future noobs!..

Comment #15

Glad to hear it. Now change the other pages back to the original PHP code for the base tag...

Comment #16

Yes, I did change them all back to make sure they didn't affect anything else. Thanks again!.

PS, I'm hoping this will help Keg, who is on the same host and experiencing trouble. I fear his issue is related to his shared certificate and not a setting, but this may get him a little closer. I've sent a detailed message to him about the 1 versus on signal..

This post has been edited by.

Brushwood.

: 31 October 2004, 13:19..

Comment #17

OK, I've been looking around for a while for older topics on this issue I'm having. I have a dedicated ssl on gardenvines.com through geotrust. When I set up the cart (just redid it fully with a fresh MS2) for ssl everything looks like it is going well. The pages that are supposed to go to https do it just fine. However, the padlock appears then disappears in IE and appears then gets a red bar in Mozilla. A similar thing happens in Opera..

I found a post on codebase href that made me look at a few things..

(.

Http://forums.oscomm...howtopic=118744.

).

When I tweak the configre.php to force http server to https, I get the base href https at the beginning of each page (viewing source), of course I can't leave the entire iPage site on https or it will tax the server, so I changed it back and got the same disappearing padlock. Mozilla claims (when I click on the padlock with a red bar) that the iPage site is secured. However, there must be something wrong for the bar to appear and the padlock to be missing entirely in IE..

So, now I'm looking at functions like html_output.php and general.php.

In html output it really looks like the function sets this base href with this:.

// The HTML href link wrapper function.

Function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {.

Global $request_type, $session_started, $SID;.

If (!tep_not_null($page)) {.

Die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');.

}.

If ($connection == 'NONSSL') {.

$link = HTTP_SERVERDIR_WS_HTTP_CATALOG;.

} elseif ($connection == 'SSL') {.

If (ENABLE_SSL == true) {.

$link = HTTPS_SERVERDIR_WS_HTTPS_CATALOG;.

} else {.

$link = HTTP_SERVERDIR_WS_HTTP_CATALOG;.

}.

} else {.

Die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>');.

}.

...but I can't get it to do what I want (because I'm just a hack at php)..

So, I tried this: I viewed source and copied one of my https pages (one with the disappeared padlock). The base href was, of course, http. I dropped it into an html editor (dreamweaver) and added that little s in there (to make the base href https) and saved it to the main directory of my site. Then I viewed the page.

Https://www.gardenvines.com/test.htm.

And, hey, there's my padlock! And the links showing on the page weren't forced to https like when I tweaked the configure.php as mentioned above..

So, the iPage site is MS2 standard with default setup for ssl, my config files are "right outa the box". the url is www.gardenvines.com. Can anyone help?..

Comment #18

I don't believe you're posting this topic again! For the last time - your iPage site doesn't show your padlock properly because you messed up when you ordered your ssl cert. You ordered it as.

Http://www.yourdomain.com.

And not as www.yourdomain.com. A click on your Geotrust link shows it as being.

Http://yourdomain.com.

And not.

Https://yourdomain.com.

..

You can tweak the code as long as you like - it ain't gonna make any difference!!!.

Please ...stop wasting other people's time..

To other forum members - please don't reply to his post, you'll only encourage him..

MODS - please have a word with this guy!.

Vger..

Comment #19


This question was taken from a support group/message board and re-posted here so others can learn from it.