Git Product home page Git Product logo

Comments (22)

effgarces avatar effgarces commented on July 18, 2024

It has been sometime since I last used xampp, these day's I mostly use a turnkey vm (https://www.turnkeylinux.org/) to test and play with php apps, but I've grabbed the latest xampp (with php 7.4) and installed booked and it seemed to work fine, no error like those. What version of xampp are you running?

from app.

nieuwefn avatar nieuwefn commented on July 18, 2024

I can give you more precice information later, but it was the latest XAMPP version, so it either contained PHP 8.0.2 or 7.4.15.
Can you give me a quick summary of the steps you performed to install the scheduler, so I can attempt to reproduce it tonight?

from app.

effgarces avatar effgarces commented on July 18, 2024

I've installed it using two methods, just to check. For both I created a new database called booked

  1. Using the web installer
    Created a booked folder on htdocs and extracted the latest maintenance release there
    Duplicated the config-dist.php file and renamed it to config.php
    Edited config.php with the correct url (http://localhost/booked/Web)
    Went to http://localhost/booked/Web/install and followed the steps
    There were some sql errors, that seem to be related to upgrading from previous versions, but at the end the installation was working fine

  2. Importing the full-install.sql and the sample data sql
    Created a booked folder on htdocs and extracted the latest maintenance release there
    Duplicated the config-dist.php file and renamed it to config.php
    Edited config.php with the correct url (http://localhost/booked/Web) and the correct database (name: booked, user: root, no password)
    Using phpmyadmin I imported the full-install.sql onto the "booked" database, I also imported the sample data
    Afterwards accessed http://localhost/booked/Web and all seemed well
    I did not encountered any errors using this method.

from app.

nieuwefn avatar nieuwefn commented on July 18, 2024

Okay, I'm quite sure, I attempted both methods you described above at some point in time. Following your first instructions using XAMPP 7.4 is now working though, so thanks a bunch.
If you want I can extend the readme soon including some basic instructions like you described above? I'll troubleshoot some more over the weekend, but I believe XAMPP 8.x must be causing some problems with the installation.

from app.

jyotisankar avatar jyotisankar commented on July 18, 2024

I've tried to setup booked using XAMPP 7.4 (https://www.apachefriends.org/xampp-files/7.4.16/xampp-windows-x64-7.4.16-0-VC15-installer.exe) multiple times using both methods shared by effgarces. However I can't get it get it working at all, it always shows Unknow Error. I've no clue what am I doing differenet or wrong, any help is appriciated.

from app.

effgarces avatar effgarces commented on July 18, 2024

Do you have any logs that might help pinpoint what is causing this issue? Namely the error.log should be usefull.

from app.

jyotisankar avatar jyotisankar commented on July 18, 2024

This is what I see in the log, when accessing, http://localhost/booked/web/

2021-04-23T05:23:59+02:00 [16452] ERROR default - [User= ()] Error connecting to database
Check your database settings in the config file
[File=C:\xampp\htdocs\booked\lib\Database\MySQL\MySqlConnection.php,Line=67]
2021-04-23T05:23:59+02:00 [16452] ERROR default - [User= ()] Uncaught exception: Exception: Error connecting to database
Error: in C:\xampp\htdocs\booked\lib\Database\MySQL\MySqlConnection.php:68
Stack trace:
#0 C:\xampp\htdocs\booked\lib\Database\Database.php(41): MySqlConnection->Connect()
#1 C:\xampp\htdocs\booked\Domain\Access\AnnouncementRepository.php(29): Database->Query(Object(GetDashboardAnnouncementsCommand))
#2 C:\xampp\htdocs\booked\Presenters\LoginPresenter.php(154): AnnouncementRepository->GetFuture(5)
#3 C:\xampp\htdocs\booked\Pages\LoginPage.php(138): LoginPresenter->PageLoad()
#4 C:\xampp\htdocs\booked\Web\index.php(43): LoginPage->PageLoad()
#5 {main} [File=C:\xampp\htdocs\booked\lib\Common\Logging\ExceptionHandler.php,Line=33]

from app.

effgarces avatar effgarces commented on July 18, 2024

Those errors indicate a problem connecting to the MySQL server, can you confirm that the config.php is correctly setup?

from app.

jyotisankar avatar jyotisankar commented on July 18, 2024

Yeah, I modified the config.php file as per instructions.

from app.

effgarces avatar effgarces commented on July 18, 2024

Have you tried to do a manual install? Using phpmyadmin create a new DB booked, import full-install.sql onto to it, afterwards import sample-data-utf8.sql for the sample data (default password for admin and user is password).
Next you just need to edit config.php to suit your environment, (I've attached my config.php so that you can see if there is any difference config.zip )

from app.

jyotisankar avatar jyotisankar commented on July 18, 2024

There was not any difference in config file.

from app.

Aender1 avatar Aender1 commented on July 18, 2024

Hey guys. I'm having the same problem. I need to configure the booked scheduler in local environment, using XAMPP + Windows 10, but I can never get to the installation screen. The steps I'm doing are the following:

  • Install XAMPP (latest version)
  • Download the booked scheduler ( version ( 2.8.5)
  • Extract the compressed contents of the booked scheduler in the XAMPP htdocs folder
  • Look for the config-dist.php file in the config folder and rename it to config.php
  • Open config.php and change the parameter ['script.url'] to = 'http://localhost/booked/Web';
  • Type in the browser http://localhost/booked/Web/install to start the automatic configuration screen.

But after following all these steps comes the following problem:

"Warning: Undefined array key "Validator" in C:\xampp\htdocs\booked\tpl_c\765c71a6c4d9e3fb9a18656cd344c3dfc6830da9_0.file.globalheader.tpl.php on line 119

Warning: Attempt to read property "value" on null in C:\xampp\htdocs\booked\tpl_c\765c71a6c4d9e3fb9a18656cd344c3dfc6830da9_0.file.globalheader.tpl.php on line 119

Warning: Undefined array key "InlineEdit" in C:\xampp\htdocs\booked\tpl_c\765c71a6c4d9e3fb9a18656cd344c3dfc6830da9_0.file.globalheader.tpl.php on line 124

Warning: Attempt to read property "value" on null in C:\xampp\htdocs\booked\tpl_c\765c71a6c4d9e3fb9a18656cd344c3dfc6830da9_0.file.globalheader.tpl.php on line 124

Warning: Undefined array key "Select2" in C:\xampp\htdocs\booked\tpl_c\765c71a6c4d9e3fb9a18656cd344c3dfc6830da9_0.file.globalheader.tpl.php on line 132

Warning: Attempt to read property "value" on null in C:\xampp\htdocs\booked\tpl_c\765c71a6c4d9e3fb9a18656cd344c3dfc6830da9_0.file.globalheader.tpl.php on line 132

Warning: Undefined array key "Timepicker" in C:\xampp\htdocs\booked\tpl_c\765c71a6c4d9e3fb9a18656cd344c3dfc6830da9_0.file.globalheader.tpl.php on line 136

Warning: Attempt to read property "value" on null in C:\xampp\htdocs\booked\tpl_c\765c71a6c4d9e3fb9a18656cd344c3dfc6830da9_0.file.globalheader.tpl.php on line 136

Warning: Undefined array key "Fullcalendar" in C:\xampp\htdocs\booked\tpl_c\765c71a6c4d9e3fb9a18656cd344c3dfc6830da9_0.file.globalheader.tpl.php on line 140

Warning: Attempt to read property "value" on null in C:\xampp\htdocs\booked\tpl_c\765c71a6c4d9e3fb9a18656cd344c3dfc6830da9_0.file.globalheader.tpl.php on line 140

Warning: Undefined array key "Owl" in C:\xampp\htdocs\booked\tpl_c\765c71a6c4d9e3fb9a18656cd344c3dfc6830da9_0.file.globalheader.tpl.php on line 146

Warning: Attempt to read property "value" on null in C:\xampp\htdocs\booked\tpl_c\765c71a6c4d9e3fb9a18656cd344c3dfc6830da9_0.file.globalheader.tpl.php on line 146

Warning: Undefined array key "cssFiles" in C:\xampp\htdocs\booked\tpl_c\765c71a6c4d9e3fb9a18656cd344c3dfc6830da9_0.file.globalheader.tpl.php on line 159
"

I no longer know how to proceed, it seems that I am doing it right, but the problem always occurs. Thank you guys for the help.

from app.

treborin avatar treborin commented on July 18, 2024

PHP version? , @Aender1

from app.

Aender1 avatar Aender1 commented on July 18, 2024

PHP version? , @Aender1

Thanks.
PHP versions 8.2.4 . XAMPP (latest version).

from app.

treborin avatar treborin commented on July 18, 2024

PHP version? , @Aender1

Thanks.
PHP versions 8.2.4 . XAMPP (latest version).

That's the issue, @Aender1 . Master branch is ready for PHP7.4.
There is a develop branch that should work with PHP8.1, but not sure for 8.2

from app.

Aender1 avatar Aender1 commented on July 18, 2024

PHP version? , @Aender1

Thanks.
PHP versions 8.2.4 . XAMPP (latest version).

That's the issue, @Aender1 . Master branch is ready for PHP7.4. There is a develop branch that should work with PHP8.1, but not sure for 8.2

That might be the problem. In the installation requirements is PHP 8.0, 8.1
with PHP 8.1 recommended. I'm going to install a previous version of XAMPP to test. Thank you for the tip. Hugs

from app.

Aender1 avatar Aender1 commented on July 18, 2024

Same problem unfortunately. I've tried with PHP 8.0 and 8.1.

I rename config-dist.php to config.php, add the parameter ['script.url'] = 'http://localhost/booked/Web/install'; but when I type in the browser to start the automatic installation, I always get the message:

"Warning: Undefined array key "Validator" in C:\xampp\htdocs\booked\tpl_c\d852d65d0a767877ba646c8e5497346323c69025_0.file.globalheader.tpl.php on line 119

Warning: Attempt to read property "value" on null in C:\xampp\htdocs\booked\tpl_c\d852d65d0a767877ba646c8e5497346323c69025_0.file.globalheader.tpl.php on line 119

Warning: Undefined array key "InlineEdit" in C:\xampp\htdocs\booked\tpl_c\d852d65d0a767877ba646c8e5497346323c69025_0.file.globalheader.tpl.php on line 124

Warning: Attempt to read property "value" on null in C:\xampp\htdocs\booked\tpl_c\d852d65d0a767877ba646c8e5497346323c69025_0.file.globalheader.tpl.php on line 124

Warning: Undefined array key "Select2" in C:\xampp\htdocs\booked\tpl_c\d852d65d0a767877ba646c8e5497346323c69025_0.file.globalheader.tpl.php on line 132

Warning: Attempt to read property "value" on null in C:\xampp\htdocs\booked\tpl_c\d852d65d0a767877ba646c8e5497346323c69025_0.file.globalheader.tpl.php on line 132

Warning: Undefined array key "Timepicker" in C:\xampp\htdocs\booked\tpl_c\d852d65d0a767877ba646c8e5497346323c69025_0.file.globalheader.tpl.php on line 136

Warning: Attempt to read property "value" on null in C:\xampp\htdocs\booked\tpl_c\d852d65d0a767877ba646c8e5497346323c69025_0.file.globalheader.tpl.php on line 136

Warning: Undefined array key "Fullcalendar" in C:\xampp\htdocs\booked\tpl_c\d852d65d0a767877ba646c8e5497346323c69025_0.file.globalheader.tpl.php on line 140

Warning: Attempt to read property "value" on null in C:\xampp\htdocs\booked\tpl_c\d852d65d0a767877ba646c8e5497346323c69025_0.file.globalheader.tpl.php on line 140

Warning: Undefined array key "Owl" in C:\xampp\htdocs\booked\tpl_c\d852d65d0a767877ba646c8e5497346323c69025_0.file.globalheader.tpl.php on line 146

Warning: Attempt to read property "value" on null in C:\xampp\htdocs\booked\tpl_c\d852d65d0a767877ba646c8e5497346323c69025_0.file.globalheader.tpl.php on line 146

Warning: Undefined array key "cssFiles" in C:\xampp\htdocs\booked\tpl_c\d852d65d0a767877ba646c8e5497346323c69025_0.file.globalheader.tpl.php on line 159

Warning: Attempt to read property "value" on null in C:\xampp\htdocs\booked\tpl_c\d852d65d0a767877ba646c8e5497346323c69025_0.file.globalheader.tpl.php on line 159

Warning: Undefined array key "printCssFiles" in C:\xampp\htdocs\booked\tpl_c\d852d65d0a767877ba646c8e5497346323c69025_0.file.globalheader.tpl.php on line 182
"
I don't know what to do anymore

from app.

Aender1 avatar Aender1 commented on July 18, 2024

treborin
Would you describe the steps you are using to install? Thanks.

from app.

treborin avatar treborin commented on July 18, 2024

PHP version? , @Aender1

Thanks.
PHP versions 8.2.4 . XAMPP (latest version).

That's the issue, @Aender1 . Master branch is ready for PHP7.4. There is a develop branch that should work with PHP8.1, but not sure for 8.2

As i told you, you need to use PHP 7.4 for the master stable branch. For PHP 8.1, use develop branch
And i see that all these warnings comes from tpl_c cache folder. You should empty that folder

from app.

Aender1 avatar Aender1 commented on July 18, 2024

treborin

OK , I'll try with PHP 7.4. Thank you very much.

from app.

Aender1 avatar Aender1 commented on July 18, 2024

PHP version? , @Aender1

Thanks.
PHP versions 8.2.4 . XAMPP (latest version).

That's the issue, @Aender1 . Master branch is ready for PHP7.4. There is a develop branch that should work with PHP8.1, but not sure for 8.2

As i told you, you need to use PHP 7.4 for the master stable branch. For PHP 8.1, use develop branch And i see that all these warnings comes from tpl_c cache folder. You should empty that folder

Thank you so much for your help, I was finally able to move forward with the installation using PHP 7.4 as you suggested, but I still can't finish the setup. When accessing the localhost/booked/Web/install address, I am directed to the initial configuration screen, but a Warning error appears.

booked2

Even so, I proceed with the installation and other errors are returned, which are described in the attached PDF file.
bookedpdf.pdf

I'm still at the beginning with SQL and I really don't know how to solve this. If you can still help me I will be very grateful.

from app.

Aender1 avatar Aender1 commented on July 18, 2024

Finally I managed to solve the Warning problem leaving the following configuration for the database in config.php;

database configuration
*/
$conf['settings']['database']['type'] = 'mysql';
$conf['settings']['database']['user'] = 'root'; // database user with permission to the booked database
$conf['settings']['database']['password'] = '';
$conf['settings']['database']['hostspec'] = '127.0.0.1'; // ip, dns or named pipe
$conf['settings']['database']['name'] = 'booked';

Now everything is up and running : Booked Booked Scheduler v2.8.5 + PHP 7.4 .

Thank you all for your help.

from app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.