Jump to content

I can't install fresh Cube Cart v3.


Recommended Posts

Hi All, 

I want to install a fresh version of CubeCart v3, in order to restore my database from old backup. then do in-place upgrade.

I downloaded the files from cubcart website, and I do the manual installation, but it doesn't show the next button for the installation, I tried different browsers though. Do you know what might be the reason?

 

Capture.PNG

Link to comment
Share on other sites

Is the image posted above the complete image?

If so, then have your browser show you the HTML source the browser is displaying.

If the source cuts off abruptly, the next to last thing you might see is:

<tr>
  <td colspan="4" class="blueHead">Step 1 - License Agreement</td>
</tr>

We are interested in whatever else may be in the source that follows the above.

Link to comment
Share on other sites

  • 3 weeks later...

This is the complete image, yes.

and below is the Body source code 

<body>
<div class="main"><div style="padding: 20px 0px 10px 20px;"><img src="../images/logos/ccLogo.gif" alt="" width="280" height="55" title="" /></div>
<div class="mainPad">
<div class="subTitle">CubeCart Installation v3.0.20</div>
<div> 
<table border="0" cellspacing="2" width="100%" cellpadding="0">
  <tr>
  	<td>Step 1 out of 5	</td>
    <td height="13" width="13" class='progressOn'>1</td>
    <td height="13" width="13" class='progressOff'>2</td>
    <td height="13" width="13" class='progressOff'>3</td>
    <td height="13" width="13" class='progressOff'>4</td>
    <td height="13" width="13" class='progressOff'>5</td>
  </tr>
</table>
<br />
<form name="install" action="index.php?step=2&amp;l=en" method="post" enctype="multipart/form-data">
<table width="100%"  border="0" cellspacing="0" cellpadding="3" class="formTable">
  <tr>
    <td colspan="4" class="blueHead">Step 1 - License Agreement</td>
  </tr>
     <!--
   <tr>
     <td colspan="4" style="text-align:center;">
	 <strong>
	 Choose Language:	 </strong>
	 <select name="langSwitch" class="dropDown" onchange="jumpMenu('parent',this,0)">
	 

 

Edited by Ahmed Gamal
Link to comment
Share on other sites

The code that follows is:

<?php
$path = "../language";
if ($dir = opendir($path)) {
	while (false !== ($folder = readdir($dir))) {
		if(!eregi("[.]", $folder)){
		include($path."/".$folder."/config.inc.php");
			?><option value="index.php?step=1&l=<?php echo $folder; ?>" <?php if($langFolder==$folder){ echo "selected='selected'"; } ?> onmouseover="javascript:getImage('../language/<?php echo $folder; ?>/flag.gif');"><?php echo $langName; ?></option> 
			<?php 
		}
	} 
}
?> 

Looking at the various PHP functions used in this code segment, I see that eregi() (one of the ereg() family of functions) is known to have been removed from PHP7, and deprecated in PHP5.3. (Deprecated functions will still work, but there will be warnings shown.)

If your server environment is running PHP7, this is the likely cause of the problem because PHP has crashed.

CubeCart 3 has dozens of instances of using the ereg() family of functions. So, if you really want to stay with CC3, there will be some work involved rewriting the code to use preg_replace(), or make sure you are running PHP5 (there will be Deprecated warnings, but these can be suppressed).

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...