timeclock icon indicating copy to clipboard operation
timeclock copied to clipboard

PHP7 Support?

Open jslay88 opened this issue 8 years ago • 9 comments

I am assuming why I am getting a white page is because I am trying to do this in a PHP7 env.

Fatal error: Uncaught Error: Call to undefined function mysql_pconnect() in /var/www/timeclock/header.php:33

jslay88 avatar May 11 '16 16:05 jslay88

all mysql_* functions have been depricated after 5.3 and deleted in 7. They have to be replaced with mysqli functions. I did that in the fork at boatright/timeclock

BoatrightTBC avatar Jan 26 '17 00:01 BoatrightTBC

I am working on a PHP7 upgrade it will be ready very soon just finishing up some testing will make a pull request

Kayoti avatar May 30 '20 19:05 Kayoti

created a pull request with php7 upgrades

Kayoti avatar May 31 '20 05:05 Kayoti

Thank you for sharing this, @Kayoti !

trbolexis avatar Nov 08 '20 12:11 trbolexis

https://github.com/Kayoti/timeclock

Kayoti avatar Nov 08 '20 17:11 Kayoti

Hey @Kayoti i have been getting an error with your PHP7 compatible version of "PHP Timeclock" with Bootstrap Implemenation

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Timecard has a deprecated constructor in /home/user/public_html/time/punchclock/class.Timecard.php on line 9

Warning: session_start(): Cannot start session when headers already sent in /home/user/public_html/time/punchclock/entry.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home/towqblao/public_html/time/punchclock/class.Timecard.php:9) in /home/user/public_html/time/punchclock/lib.common.php on line 286

lokilust avatar Jun 11 '21 02:06 lokilust

what is the action you were trying to perform

Kayoti avatar Jul 31 '21 08:07 Kayoti

Hello, well there is one thing it will not let me login to my timecard or My Time Entry ?

lokilust avatar Aug 04 '21 00:08 lokilust

Hello, well there is one thing it will not let me login to my timecard or My Time Entry ?

looking into that

Kayoti avatar Dec 15 '21 19:12 Kayoti