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

PHP 7.0 throws stderr #28

Closed
newburns opened this issue Aug 11, 2017 · 3 comments
Closed

PHP 7.0 throws stderr #28

newburns opened this issue Aug 11, 2017 · 3 comments

Comments

@newburns
Copy link

Updated to the latest Master for WebCalendar.

Using PHP 5.6, webcalendar version 1.3.0 (28 Sep 2008)

Using PHP 7.0 -- Error Log

mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home/************/public_html/*********/includes/dbi4php.php:144
mod_fcgid: stderr: Stack trace:
mod_fcgid: stderr: #0 /home/******/public_html/*********/includes/config.php(244): dbi_connect('localhost', '********', '******************...', '**********', false)
mod_fcgid: stderr: #1 /home/*********/public_html/***********/includes/classes/WebCalendar.class(292): do_config('/home/*********/...')
mod_fcgid: stderr: #2 /home/************/public_html/************/includes/classes/WebCalendar.class(978): WebCalendar->_initConfig()
mod_fcgid: stderr: #3 /home/************/public_html/************/includes/classes/WebCalendar.class(990): WebCalendar->_doInit(1)
mod_fcgid: stderr: #4 /home/************/public_html/************/includes/init.php(64): WebCalendar->initializeFirstPhase()
mod_fcgid: stderr: #5 /home/************/public_html/************/index.php(2): include_once('/home/newburns/...')
mod_fcgid: stderr: #6 {main}
mod_fcgid: stderr:   thrown in /home/************/public_html/************/includes/dbi4php.php on line 144
@craigk5n
Copy link
Owner

For PHP7, I think we need to change the db from mysql to mysqli in include/settings.php. PHP7 removes mysql functions.

@newburns
Copy link
Author

That seems to work.
Changing to mysqli in the settiings.php seems to allow usage.
I will watch the log files and report anything else that I may see

@craigk5n
Copy link
Owner

Ok, good to hear. Did you go through the install/upgrade pages?

Wondering if there's a bug in the installer....

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