phrets Version Error

64 views
Skip to first unread message

pth...@gmail.com

unread,
Nov 26, 2020, 7:18:44 AM11/26/20
to PHRETS

hi


I got this error, My Database not update, our server upgrade php version after that I got the issue

Anyone know how to fix, I used old version (1.0) phrets file  

[26-Oct-2020 16:25:35 America/Boise] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; phRETS has a deprecated constructor in /home2/oneoneto/public_html/ret2/phrets.php on line 3

[26-Oct-2020 16:25:35 America/Boise] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home2/oneoneto/public_html/ret2/config.php:14

Stack trace:

#0 /home2/oneoneto/public_html/ret2/phrets.php(2): require_once()

#1 /home2/oneoneto/public_html/ret2/index.php(9): require_once('/home2/oneoneto...')

#2 {main}

  thrown in /home2/oneoneto/public_html/ret2/config.php on line 14


Troy Davisson

unread,
Nov 27, 2020, 6:51:43 PM11/27/20
to PHRETS
That indicates 2 problems.  With the old version of PHRETS, there's a method there called PHRETS instead of __construct.  Changing that name should be enough to fix that.

The other problem is that your code is using old MySQL function calls.  That's external from PHRETS and would require changing to use mysqli or PDO or some other abstraction.


--
You received this message because you are subscribed to the Google Groups "PHRETS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phrets+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/phrets/0fececa9-1259-4da2-95d9-ded556ebd56cn%40googlegroups.com.

pth...@gmail.com

unread,
Nov 28, 2020, 1:26:41 PM11/28/20
to PHRETS
we use one page phrets cording like version 1 ( not this link  https://github.com/troydavisson/PHRETS
Do you have one page phrets coding link for new version  pls let me know 
Reply all
Reply to author
Forward
0 new messages