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 compatibility #2

Closed
newburns opened this issue Jul 5, 2017 · 5 comments
Closed

PHP 7 compatibility #2

newburns opened this issue Jul 5, 2017 · 5 comments
Assignees

Comments

@newburns
Copy link

newburns commented Jul 5, 2017

Is PHP 7.x on the roadmap?

@craigk5n
Copy link
Owner

craigk5n commented Jul 6, 2017

Yes, I am planning on supporting PHP 7. There is a php7 patch on sourceforge for 1.2.7, but I have not looked at it yet since I do not yet have a PHP 7 dev environment setup.

@craigk5n
Copy link
Owner

craigk5n commented Jul 9, 2017

I've made a first attempt at PHP7 compatibility in the devel-1.2.7 branch. Not yet tested on PHP7 yet. Most of the code changes were taken from the sourceforge patch for PHP7.

@craigk5n craigk5n self-assigned this Jul 9, 2017
@craigk5n
Copy link
Owner

craigk5n commented Aug 2, 2017

I've tested most of the master branch of WebCalendar with PHP 7.1, and I don't see any issues. If you find any specific issues, please create a new issue for it.

@craigk5n craigk5n closed this as completed Aug 2, 2017
@newburns
Copy link
Author

newburns commented Aug 11, 2017

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

@newburns
Copy link
Author

Would not reopen
#28

craigk5n pushed a commit that referenced this issue Aug 27, 2017
craigk5n pushed a commit that referenced this issue Mar 17, 2021
Merge Craig's into mine. I hope.
craigk5n added a commit that referenced this issue Sep 11, 2023
max951 pushed a commit to max951/webcalendar that referenced this issue Mar 12, 2024
Fatal error: Uncaught TypeError: Cannot assign null to property Event::$_dueDate of type string in /var/www/html/includes/classes/Event.php:205 Stack trace: #0 /var/www/html/includes/functions.php(5324): Event->__construct() craigk5n#1 /var/www/html/includes/functions.php(5498): query_events() craigk5n#2 /var/www/html/month.php(44): read_events() craigk5n#3 {main} thrown in /var/www/html/includes/classes/Event.php on line 205
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