Missing PHP files, not able to install properly

700 views
Skip to first unread message

Remco Teer

unread,
Dec 16, 2015, 3:09:20 AM12/16/15
to Easy!Appointments - Support Group
Hi there,

I'm having troubles installing EA correctly and it's giving me a database error:

A Database Error Occurred

Unable to connect to your database server using the provided settings.

Filename: core/Loader.php

Line Number: 346

I checked all the credentials numerous times and they seem to be correct, I found some "missing" php files in e.g. /third_party though I didn't downloaded the files from Github but from the Easy!Appointments website.
Is there someone with the same problem or anyone who can assist me with the problems I have,

Thanks,
Regards,
Remco

Pacífico SC

unread,
Dec 18, 2015, 4:23:58 PM12/18/15
to Easy!Appointments - Support Group
Hi Remco!
Exists in the config.php file, a line should be changed to:
  const BASE_URL = 'http://www.namesite.com/directory';

Remco Teer

unread,
Dec 19, 2015, 7:55:31 AM12/19/15
to Easy!Appointments - Support Group
The configuration seems fine to me:
// General Settings
public static $base_url = 'http://www.remcoteer.nl/velospa/velospa_agenda/';

// Database Settings
public static $db_host = 'localhost';
public static $db_name = 'DB******';
public static $db_username = 'U******';
public static $db_password = '*********';

I followed all the step by step installation guides and even tried to install it manually...

But thanks for the response,
Remco

Remco Teer

unread,
Dec 19, 2015, 7:59:17 AM12/19/15
to Easy!Appointments - Support Group
Furthermore,
I'm getting the following error now:

Fatal error: Uncaught exception 'Exception' with message '$name setting does not exist in database : company_name' in /mnt/webw/b0/16/54377316/htdocs/velospa/velospa_agenda/application/models/settings_model.php:28 Stack trace: #0 /mnt/webw/b0/16/54377316/htdocs/velospa/velospa_agenda/application/controllers/user.php(31): Settings_Model->get_setting('company_name') #1 [internal function]: User->login() #2 /mnt/webw/b0/16/54377316/htdocs/velospa/velospa_agenda/system/core/CodeIgniter.php(359): call_user_func_array(Array, Array) #3 /mnt/webw/b0/16/54377316/htdocs/velospa/velospa_agenda/index.php(203): require_once('/mnt/webw/b0/16...') #4 {main} thrown in /mnt/webw/b0/16/54377316/htdocs/velospa/velospa_agenda/application/models/settings_model.php on line 28

Remco

Remco Teer

unread,
Dec 19, 2015, 8:11:55 AM12/19/15
to Easy!Appointments - Support Group
Been tweaking,
and now getting this error:

Fatal error: Cannot redeclare class SystemConfiguration in /mnt/webw/b0/16/54377316/htdocs/velospa/velospa_agenda/configuration.php on line 2

Pacífico SC

unread,
Dec 19, 2015, 4:54:21 PM12/19/15
to Easy!Appointments - Support Group
Remco, insert here the line that is experiencing the error. So that we can analyze.

<?php
class SystemConfiguration {
    // General Settings
    public static $base_url    = 'http://url-to-easyappointments-folder/';

   
    // Database Settings
    public static $db_host     = 'localhost';
    public static $db_name     = '';
    public static $db_username = '';
    public static $db_password = '';

Remco Teer

unread,
Dec 22, 2015, 6:44:12 AM12/22/15
to Easy!Appointments - Support Group
Thanks Pacifico SC, 
will do and try that when I have time,
Remco

Pacífico SC

unread,
Dec 22, 2015, 6:54:31 AM12/22/15
to Easy!Appointments - Support Group
Ok Remco, we are waiting.

Lorie Knapp

unread,
Feb 26, 2016, 9:29:33 AM2/26/16
to Easy!Appointments - Support Group
I'm not Remco, but I'm having a similar problem. I've uploaded all the files to my server, however it's within a subdirectory.

The config.php file has the correct BASE_URL to find it:
const BASE_URL = 'http://subdirectory.mydomain.com/directory/appointments'

I've also tried it with the trailing slash at the end.

The database settings are also correct. I've attached an image of the error message I'm getting about an error at line 347 of the core/Loader.php file. I'd appreciate any help you can offer to get past this.
EasyApp-failure.JPG

Ricardo Domingues

unread,
Mar 23, 2016, 5:16:38 AM3/23/16
to Easy!Appointments - Support Group
I'm getting the same error. My DB is hosted on another server but the DB settings are correct. My config file is as follows:
    const BASE_URL      = 'http://subdomain.mydomain.com/';
    const DB_HOST       = 'xx.xxx.xxx.xx';
    const DB_NAME       = ‘dbname’;
    const DB_USERNAME   = ‘dbuser’;
    const DB_PASSWORD   = 'password';

Any idea why we're getting this error? 

Thanks,
Ricardo
Reply all
Reply to author
Forward
0 new messages