Jump to content

Please Help. SSL Mishap


Guest quietype

Recommended Posts

Guest quietype

I selected "yes" to enable SSL in the admin panel and entered in the root path and the absolute secure path. One of them was wrong.

I'd rather not fool around with it anymore than I have because I dont know what I am doing now.

Now I cant access the admin panel or shopping cart and checkout pages. :blink: I can only access the store homepage and product pages.

Please tell me what to do to fix this and go back to the "No SSL" enabled feature. I do not want to try to correctly enable the SSL feature just yet. I just want to undo it. Thanks

Link to comment
Share on other sites

root path should be /

Copy the following and save it as editconf.php. Upload it to your root directory and run it in a browser (www.yoursite.com/editconf.php) and you will be able to turn off ssl.

<?php

/*

+--------------------------------------------------------------------------

| CubeCart v3.0.3

| ========================================

| by Alistair Brookbanks

| CubeCart is a Trade Mark of Devellion Limited

| &copy; 2005 Devellion Limited

| Devellion Limited,

| Westfield Lodge,

| Westland Green,

| Little Hadham,

| Nr Ware, HERTS.

| SG11 2AL

| UNITED KINGDOM

| http://www.devellion.com

| UK Private Limited Company No. 5323904

| ========================================

| Web: http://www.cubecart.com

| Date: Thursday, 25 August 2005

| Email: info (at) cubecart (dot) com

| License Type: CubeCart is NOT Open Source Software and Limitations Apply

| Licence Info: http://www.cubecart.com/site/faq/license.php

+--------------------------------------------------------------------------

| editconf.php

| ========================================

| Config recovery tool

+--------------------------------------------------------------------------

*/

if(!isset($_GET['c'])){

header("Location: editconf.php?c=config");

exit;

}

include_once("includes/ini.inc.php");

include_once("includes/global.inc.php");

include_once("classes/db.inc.php");

$db = new db();

include_once("includes/functions.inc.php");

include_once("admin/includes/functions.inc.php");

if(isset($_POST['data'])){

//$config = fetchDbConfig($_GET['c']);

$msg = writeDbConf($_POST['data'],$_GET['c'], $config, $_GET['c']);

}

$config = fetchDbConfig($_GET['c']);

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>CubeCart - Config Recovery Tool</title>

<script language="JavaScript" type="text/JavaScript">

<!--

function MM_jumpMenu(targ,selObj,restore){ //v3.0

eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

if (restore) selObj.selectedIndex=0;

}

//-->

</script>

<style type="text/css">

<!--

body,td,th {

font-family: Verdana, Arial, Helvetica, sans-serif;

}

.code {

font-family: "Courier New", Courier, mono;

color: #000000;

}

.redText {color: #FF0000}

-->

</style></head>

<body>

<span class="redText"><?php if(isset($msg)) { echo $msg; } ?></span>

<h1>Config Recovery Tool</h1>

<p><strong>Devellion Ltd & CubeCart provide this script without any warranty of any kind and by proceeding you are doing so entirely at your own risk.</strong></p>

<p>This tool is designed to edit your config file if for some reason your store becomes corrupt due to incorrectly changing your settings.</p>

<p>Example: If you have switched on SSL mode and your store has become broken. Select "config" from the dropdown menu below and set

$config['ssl']

to 0. No test to see if your store has been fixed and if so delete this file from the server. </p>

<p class="redText"><strong>IMPORTANT:</strong> You must NOT leave this file on your server as it is a VERY high security risk!</p>

<p><a href="index.php" target="_blank">View Store Front</a> - (Opens in New Window)<br />

<a href="admin/" target="_blank">View Store Admin</a> - (Opens in New Window)</p>

<p>Select Config to edit:

<?php

$query = "SELECT * FROM ".$glob['dbprefix']."CubeCart_config";

$results = $db->select($query);

?>

<select name="menu1" onchange="MM_jumpMenu('parent',this,0)">

<?php for ($i=0; $i<count($results); $i++){ ?>

<option value="?c=<?php echo $results[$i]['name']; ?>" <?php if($_GET['c']==$results[$i]['name']) { echo "selected=\"selected\""; } ?>><?php echo $results[$i]['name']; ?></option>

<?php } ?>

</select>

</p>

<form name="form1" id="form1" method="post" action="editconf.php?c=<?php echo $_GET['c']; ?>">

<table border="1" cellspacing="0" cellpadding="2">

<tr>

<td><strong>Variable name: </strong></td>

<td><strong>Current Value: </strong></td>

<td><strong>New Value: </strong></td>

</tr>

<?php foreach($config as $key => $value) { ?>

<tr>

<td class="code"><?php echo "\$".$_GET['c']."['".$key."']"; ?></td>

<td class="code"><?php echo $value; ?></td>

<td>

<textarea name="data[<?php echo $key; ?>]" cols="30" rows="2"><?php echo $value; ?></textarea>

</td>

</tr>

<?php } ?>

<tr>

<td> </td>

<td> </td>

<td><input type="submit" name="Submit" value="Update Config" /></td>

</tr>

</table>

</form>

</body>

</html>

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 4 weeks later...
  • 3 weeks later...
Guest Mrs. B.

root path should be /

Copy the following and save it as editconf.php. Upload it to your root directory and run it in a browser (www.yoursite.com/editconf.php) and you will be able to turn off ssl.

Awesome, Roban! Thanks!!

I vote for this topic getting pinned as well :D

Link to comment
Share on other sites

I vote for this topic getting pinned as well :D

:huh: This tool is available in the downloads section (see the download button above) straight from Devellion, and always has been (since CubeCart version 3.0.3).

I also think there needs to be a pinned post about it, something that newbies cannot miss, like "Can't enter Admin due to SSL - FIX!" No one who experiences the problem ever knows about the tool, and it has to be posted again and again.

Link to comment
Share on other sites

Guest quietype

I vote for this topic getting pinned as well :D

:huh: This tool is available in the downloads section (see the download button above) straight from Devellion, and always has been (since CubeCart version 3.0.3).

I also think there needs to be a pinned post about it, something that newbies cannot miss, like "Can't enter Admin due to SSL - FIX!" No one who experiences the problem ever knows about the tool, and it has to be posted again and again.

I agree that it needs to be pinned.

Link to comment
Share on other sites

  • 3 weeks later...
Guest edudi

My Admin Page show 404 Not Page Found.

This is my store unless modifications whith editconf.php copied from this post, I don´t know what i must change.

Please Help me.

--------------------------------------------------------------------

Variable name: Current Value: New Value:

$config['defaultCurrency'] USD USD

$config['siteCountry'] 226 226

$config['siteCounty'] 57 57

$config['storeAddress'] My Store Ltd, Street, City, State. USA 12345 My Store Ltd, Street, City, State. USA 12345

$config['taxCountry'] 226 226

$config['taxCounty'] 57 57

$config['filePerms'] 0 0

$config['dateFormat'] l jS F Y l jS F Y

$config['defaultLang'] en en

$config['dirSymbol'] / /

$config['displaycatRows'] 2 2

$config['dnLoadExpire'] 172800 172800

$config['dnLoadTimes'] 3 3

$config['gdmaxImgSize'] 390 390

$config['gdquality'] 80 80

$config['gdthumbSize'] 75 75

$config['gdversion'] 2 2

$config['mailMethod'] mail mail

$config['masterEmail'] [email protected] [email protected]

$config['masterName'] My Store My Store

$config['maxImageUploadSize'] 524288 524288

$config['metaDescription'] This is the meta description. This is the meta description.

$config['metaKeyWords'] keyword1, keyword2, keyword3. keyword1, keyword2, keyword3.

$config['noPopularBoxItems'] 10 10

$config['noSaleBoxItems'] 10 10

$config['outofstockPurchase'] 0 0

$config['priceIncTax'] 0 0

$config['productPages'] 10 10

$config['productPrecis'] 120 120

$config['rootDir_SSL']

$config['rootRel_SSL']

$config['saleMode'] 1 1

$config['salePercentOff'] 20 20

$config['shipAddressLock'] 1 1

$config['siteTitle'] My Store Ltd My Store Ltd

$config['skinDir'] Classic Classic

$config['sqlSessionExpiry'] 172800 172800

$config['ssl'] 0 0

$config['stockLevel'] 1 1

$config['storeName'] My Store Ltd My Store Ltd

$config['storeURL_SSL']

$config['timeFormat'] %b %d %Y, %H:%M %p %b %d %Y, %H:%M %p

$config['timeOffset'] 0 0

$config['weightUnit'] Lbs Lbs

$config['installTime'] 1180698476 1180698476

$config['offLine'] 0 0

$config['offLineContent'] The store is currently offline. Please visit again soon. The store is currently offline. Please visit again soon.

$config['offLineAllowAdmin'] 1 1

$config['showLatestProds'] 1 1

$config['noLatestProds'] 3 3

$config['floodControl'] 1 1

$config['gdGifSupport'] 0

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...