-
Installation fails
Just downloaded the 1.3.0.2 version and I try to install it.
I left all options at default, and received this message when going to the installation screen, the one with "Installation Progress" on top:
Fatal error: Unsupported operand types in F:\xampp\xampp\htdocs\zen\zc_install\includes\functions\general.php on line 287
this is the script:
// show progress bar
global $zc_show_progress;
if ($zc_show_progress=='yes') {
$counter++;
if ($counter/5 == (int)($counter/5)) echo '~ ';
if ($counter>200) {
echo '<br /><br />';
$counter=0;
}
I disabled line 287 not to be used, like this:
// show progress bar
global $zc_show_progress;
if ($zc_show_progress=='yes') {
$counter++;
// if ($counter/5 == (int)($counter/5)) echo '~ ';
if ($counter>200) {
echo '<br /><br />';
$counter=0;
}
( after all it seems it only displays an "~" to show progress)
in both cases I receive now this error:
1146 Table 'zencart.zen_configuration' doesn't exist
in:
[update zen_configuration set configuration_value='F:/xampp/xampp/htdocs/zen/cache' where configuration_key='SESSION_WRITE_DIRECTORY']
any ideas?
-
Re: Installation fails
Did you use the full fielset for 1.3.0.2? Ssounds like you got a file missing somewhere. Either that or you didn't match database prefixes on the upgrade.
-
Re: Installation fails
yes, it is the fileset just downloaded.
meanwhile I tried something else:
I changed line 287 like this:
echo '~ ';
as I see it, it was supposed to display a "~" every 5 actions originally, so now will diplay all.
What happened is that on the "installation progress" screen I got ~~~ (3 of them) and then the bomb screen.
I looked on mySQL and see that one table it is created, the _exceptions one, with no contents when this happens.
I downloaded everything one more time to make sure everything is there.
Very strange, I never had problems with other packages.
-
Re: Installation fails
I think the best fix is to change that line to say:
Code:
if (($counter/5) == (int)($counter/5)) echo '~ ';
... since your version of PHP may be treating the 5 as a specific value for comparison, rather than as a mathematical element in the calculation like it was intended.
I'm surprised no other XAMPP users have reported this... hmmmm .... that's why I suspect it may be unique to the PHP version you are using...
-
Problem solved
You were right !!!
I downloaded the latest version of XAMPP and everything works with no script change.
Thank you