Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2006
    Posts
    3
    Plugin Contributions
    0

    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?

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,175
    Plugin Contributions
    11

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

  3. #3
    Join Date
    Aug 2006
    Posts
    3
    Plugin Contributions
    0

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

  4. #4
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

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

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Aug 2006
    Posts
    3
    Plugin Contributions
    0

    Default Problem solved

    You were right !!!

    I downloaded the latest version of XAMPP and everything works with no script change.

    Thank you

 

 

Similar Threads

  1. Curl fails
    By mhess in forum General Questions
    Replies: 1
    Last Post: 14 Aug 2013, 05:04 PM
  2. download fails
    By goalsurfer in forum Managing Customers and Orders
    Replies: 3
    Last Post: 12 Mar 2011, 01:11 AM
  3. Installation complete. When i remove installation folder it resets?
    By zindras2 in forum Installing on a Windows Server
    Replies: 1
    Last Post: 3 Oct 2009, 07:43 PM
  4. Setup fails
    By FEQ in forum Installing on a Windows Server
    Replies: 2
    Last Post: 21 Jul 2007, 09:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR