Skip to content
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

Cannot install #473

Open
AxelDuerrbaum opened this issue Mar 11, 2024 · 1 comment
Open

Cannot install #473

AxelDuerrbaum opened this issue Mar 11, 2024 · 1 comment

Comments

@AxelDuerrbaum
Copy link

Hello,

I cannot install a new version of Webcalendar (git clone from today == v1.9.12)

System is Debian bookworm/php.2/mariadb 10.5, database"webcalendar" is dropped
database type is mysqli.

During the installation I get stuck at step /webcalendar/install/index.php?action=createdb

I get alwas the error:
PHP Fatal error: Uncaught Error: Call to a member function real_escape_string() on bool in /opt/WWW/webcalendar/includes/dbi4php.php:712\nStack trace:\n#0 /opt/WWW/webcalendar/includes/dbi4php.php(757): dbi_escape_string()\n#1 /opt/WWW/webcalendar/install/install_functions.php(46): dbi_execute()\n#2 /opt/WWW/webcalendar/install/index.php(309): getDbVersion()\n#3 {main}\n thrown in /opt/WWW/webcalendar/includes/dbi4php.php on line 712, referer:.../webcalendar/install/index.php?action=dbsettings

The string in real_escape_string in dbi4php:712 is "WEBCAL_PROGRAM_VERSION", not "v1.9.12"

@42daha
Copy link

42daha commented Dec 15, 2024

I ran into a similar problem while upgrading from v1.2.9 to 1.9.10. It kept going into the automatic installer/upgrader because it thought the WEBCAL_PROGRAM_VERSION was still v1.2.9 instead of 1.9.10. When I looked at the webcal_config table in the database, the field there said it was 1.9.10. What I eventually traced it to was a database caching mechanism that webcalendar has/had enabled. In includes/settings.php, there was a line that read:
`db_cachedir: /tmp
I had to remove that line AND clear out the cache files from /tmp: *.dat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants