-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install failing: FATAL ERROR Uncaught Error: Class "Smarty" not found ..... #163
Comments
As part of the effort to update librebooking to PHP 8, and also to make it more modern, the smarty template engine was removed and should now be added using composer, just do a |
Thank you so much, I'll give it a go as soon as I can. |
I've got the same problem and it does not help to run the composer. To enable extensions, verify that they are enabled in your .ini files: This is the output from composer and the active module from php are as follows: Configuration File (php.ini) Path: /etc/php/8.2/cli |
I reinstalled xmlwrite and Smarty modules for php 8.2 but still the same error messages. Is there anything new that could help? |
Hi, I just took a very quick look at this. |
php -v [PHP Modules] [Zend Modules] I installed Smarty via the composer |
Curl seems to be missing from the list of modules.
|
I installed curl after writing the comment and reisntalled everything via the composer but the error messages are the same. |
After an complete reinstall everything works fine. I dont what the problem was, maybe because I upgraded from php7 but thanks for the help |
Hi, firstly thank you for trying to keep this brilliant resource going.
I've been running multiple instances of booked 2.7.2 on xampp 7.2.10 on win 7 but am being forced to move to win10 on another PC. I've used latest xampp 8.2.0 and latest Librebooking.
When I point to \Web\install to initiate the installation, I get a fatal error.
Fatal error: Uncaught Error: Class "Smarty" not found in C:\xampp\htdocs\BIUbooked\lib\Email\SmartyEmail.php:9 Stack trace: #0 C:\xampp\htdocs\BIUbooked\lib\Email\namespace.php(7): require_once() #1 C:\xampp\htdocs\BIUbooked\lib\Email\Messages\AccountCreationEmail.php(3): require_once('C:\xampp\htdocs...') #2 C:\xampp\htdocs\BIUbooked\Domain\Access\UserRepository.php(7): require_once('C:\xampp\htdocs...') #3 C:\xampp\htdocs\BIUbooked\Domain\Access\namespace.php(13): require_once('C:\xampp\htdocs...') #4 C:\xampp\htdocs\BIUbooked\lib\Common\Validators\TermsOfServiceValidator.php(3): require_once('C:\xampp\htdocs...') #5 C:\xampp\htdocs\BIUbooked\lib\Common\Validators\namespace.php(20): require_once('C:\xampp\htdocs...') #6 C:\xampp\htdocs\BIUbooked\lib\Common\SmartyPage.php(8): require_once('C:\xampp\htdocs...') #7 C:\xampp\htdocs\BIUbooked\lib\Common\namespace.php(5): require_once('C:\xampp\htdocs...') #8 C:\xampp\htdocs\BIUbooked\Pages\Page.php(10): require_once('C:\xampp\htdocs...') #9 C:\xampp\htdocs\BIUbooked\Pages\Install\InstallPage.php(3): require_once('C:\xampp\htdocs...') #10 C:\xampp\htdocs\BIUbooked\Web\install\index.php(10): require_once('C:\xampp\htdocs...') #11 {main} thrown in C:\xampp\htdocs\BIUbooked\lib\Email\SmartyEmail.php on line 9
I can't find anything relating to this online.
As per installation instructions, I've followed my notes for my existing installation and I've set config.php with
$conf['settings']['script.url'] = '152.78.6.222:8080/BIUbooked/Web';
(I will have multiple, separate instances of LibreBooking running under one xampp from separate subdirectories in htdocs)
and SYSTEM has full control of tpl and tpl_c folders in C:\xampp\htdocs\BIUbooked
I would be very grateful for any suggestions as this has me stumped. Could it be a PHP issue with PHP 8.2 and I need to revert to xampp 7.2.10?
Many thanks
DAJ
The text was updated successfully, but these errors were encountered: