Problem upgrading from trial to pro version

Discussion in 'Installation' started by jhundley, Mar 13, 2011.

  1. jhundley

    jhundley New Member

    Joined:
    Mar 12, 2011
    Messages:
    5
    Hi,

    I'm trying to install the paid version (latest one) and when I go to get my license key at http://www.yourbook4mybook.com/members/fixlicense.php I get an error saying

    Warning: require_once(/home/jhundley/public_html/yourbook4mybook.com/members/config.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/jhundley/public_html/yourbook4mybook.com/members/lite.inc.php on line 7

    Fatal error: require_once() [function.require]: Failed opening required '/home/jhundley/public_html/yourbook4mybook.com/members/config.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jhundley/public_html/yourbook4mybook.com/members/lite.inc.php on line 7

    When I installed the paid version files it told me to delete config.inc since it had information on it from the trial version. The problem is, I don't see a new config.inc in the folder with the paid version's files. All I see is config-dist.inc. What do I do?
  2. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    Personally I would delete the trial version and upload the paid version and start from scratch. Keep the database of course and use its details etc when setting up.

    There is no config.inc in the downloaded files as it is constructed at setup time.
  3. jhundley

    jhundley New Member

    Joined:
    Mar 12, 2011
    Messages:
    5
    :( That didn't work. I get the same error. I submitted a support ticket last night. Thank you for the advice, though!
  4. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Did you rerun config on the fresh install?

    Does this file exist:

    /home/jhundley/public_html/yourbook4mybook.com/members/lite.inc.php
  5. jhundley

    jhundley New Member

    Joined:
    Mar 12, 2011
    Messages:
    5
    Skippy,

    Yes,
    /home/jhundley/public_html/yourbook4mybook.com/members/lite.inc.php does exist.

    I'm not sure what you mean by rerun config. When I reinstalled the paid version there was no config.inc.php because I hadn't done the install yet. The problem I'm running into is when I try to get my license from fixlicense.php. It seems like it's telling me that I need the config file in order to get my license but the config file isn't created until the installation is done. So I don't understand how I'm supposed to get my license key in order to do the installation.
  6. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    @jhundley: have you actually gone through the installation process of aMember with the new pro version? That process will create the config.inc.php file.

    That being said, if for some odd reason it is not, you can make a copy of amember\config-dist.inc.php to config.inc.php and replace the following lines with the appropriate values:

    Code:
        $pc['db']   = '@DB_MYSQL_DB@';
        $pc['user'] = '@DB_MYSQL_USER@';
        $pc['pass'] = '@DB_MYSQL_PASS@';
        $pc['host'] = '@DB_MYSQL_HOST@';
        $pc['prefix'] = '@DB_MYSQL_PREFIX@';
        $pc['charset'] = ''; // replace with 'utf8' for example
  7. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    Did you delete ALL the old files from server before reinstalling pro version?
  8. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    This was fixed in helpdesk.
    jhundley , you didn't made an upgrade correct way. When you upgrade from Trial to PRO you do not need to delete all files. Just upload new fiels and overwrite old.
  9. jhundley

    jhundley New Member

    Joined:
    Mar 12, 2011
    Messages:
    5
    Thank you all for your replies. I guess I just didn't understand the instructions fully. Thank you Alexander for getting this taken care of.
  10. kimboy

    kimboy New Member

    Joined:
    May 2, 2011
    Messages:
    20
    Did you delete ALL the old files from server before reinstalling pro version?

Share This Page