Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default V157, stuck in System Setup

    [Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]

    I am doing a fresh install and get this message
    "Warning: Constants may only evaluate to scalar values in /home/httpd/vhosts/simmar.ch/httpdocs/CatalogTest/zc_install/includes/localConfig.php on line 43"

    My test site is in the same domain as my V155f shop so I am stuck with PHP5.6.4. until my upgrade is completed and I can change the domain to 7.4.7.

    Apache & nginx Settings are all default except enabled nginx caching

    Thanks for any help.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,694
    Plugin Contributions
    123

    Default Re: V157, stuck in System Setup

    The last block of zc_install/includes/localConfig.php lines 37-43:

    wrap it in

    if (defined('DEVELOPER_MODE') && DEVELOPER_MODE === true) {
    ...
    }


    The try again and see if it works.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Re: V157, stuck in System Setup

    Thanks for the lightning-fast answer

    Probably I added the code incorrectly now I get a new error message,
    "Parse error: syntax error, unexpected '}' in ........./zc_install/includes/localConfig.php on line 45". Line 45 is the final line
    see code block below

    Code:
    // optional configuration table keys to override on new installs when DEVELOPER_MODE===true
    if (defined('DEVELOPER_MODE') && DEVELOPER_MODE === true) { 
    define('DEVELOPER_CONFIGS', [
        'EMAIL_SMTPAUTH_MAILBOX' => 'Zen Cart',
        'EMAIL_SMTPAUTH_PASSWORD' => '',
        'EMAIL_SMTPAUTH_MAIL_SERVER' => 'localhost',
        'EMAIL_SMTPAUTH_MAIL_SERVER_PORT' => '2525',
        'EMAIL_TRANSPORT' => 'smtpauth',
    ])
    };

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,694
    Plugin Contributions
    123

    Default Re: V157, stuck in System Setup

    Change
    ])
    };

    to
    ]);
    }


    The long term solution might also be to verify that PHP7 is in use - this issue has been reported to the core team.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Re: V157, stuck in System Setup

    Great, thanks, works fine now.

    I am a failure at PHP syntax

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,694
    Plugin Contributions
    123

    Default Re: V157, stuck in System Setup

    Not a failure - you know more than you did yesterday! It's a process.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

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

    Default Re: V157, stuck in System Setup

    .

    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.

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

    Default Re: V157, stuck in System Setup

    General help for all with cPanel, the Subdomains Command, and MultiPHP Manager.

    Before installing your test, create a subdomain above your current root (or have your host set it up for you). In cPanel File Manager, the steps are:
    1. If your site is something like /home/my_username/public_html, open that folder in File Manager
    2. Click the Up One Level Command to go to /home/my_username/
    3. Use the Upload Command to upload the most current version of the Zen Cart zip file.
    4. Reload if the zip is not visible after upload, then highlight and Extract the zip (no need to enter anything in the Extract window - Just click Extract Files)
    5. Change the folder name created by the extraction to something like _test so you can easily find it later.
    6. Back to the main cPanel, click on Subdomains
    7. Under Subdomain, enter test
    8. Leave the Domain as is
    9. In Document Root, enter the _test
    10. Click Create.


    You now have a subdomain with the Zen Cart files in place.

    Create a database for use with this installation

    Using the MultiPHP Manager, select the test.your_domain.com line and set the PHP Version to 7.2 or higher (7.4 might be overkill for now)

    Enter test.your_domain.com/zc_install into your browser and setup your test site. The installer will automatically take into consideration your use of a subdomain and setup the two configure.php files correctly. Selecting SSL inclusion should automatically setup the subdomain with the credentials of your_site.com.

    If any of the features listed above are not available in your cPanel, you will need to coordinate with your host for setup.

    Setting the subdomain "above the root" allows you to maintain your original site at its current PHP level while properly setting up Zen Cart in a currently supported PHP level for testing.

  9. #9
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Re: V157, stuck in System Setup

    Great, thanks.

    I have Plesk not Cpanel but I could figure it out and implement OK.

  10. #10
    Join Date
    Dec 2017
    Location
    FLAH-DUH
    Posts
    25
    Plugin Contributions
    0

    Default Re: V157, stuck in System Setup

    I am also stuck in clean install of 1.5.7, keep getting error define 'DIR_FS_CATALOG' contains bad info

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. System Setup Required...4 years after setup
    By advancing in forum General Questions
    Replies: 6
    Last Post: 12 Mar 2015, 06:07 PM
  2. stuck on "system setup required" admin in update from 1.3.x to latest 1.5.x
    By samuelsmith1979 in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 19 Nov 2013, 04:20 AM
  3. I'm stuck on Setup db system
    By nomadrw in forum Installing on a Windows Server
    Replies: 3
    Last Post: 13 Sep 2007, 09:40 PM

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