We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 54824
    • 1 Posts
    We are running the site using MODx Evolution 1.0.10, linux OS, using maria DBs.

    We are seeing deprecated remarks in the php_errors.log from our server.

    It looks like we may be faced with an error with a function constructor for what we believe is the DB connection driver for modx.

    Can anyone help us find the best upgrade path (but not by upgrading to Revolution)

    Thank you!

    Deb

    php_errors.log:
    [02-Jan-2019 12:57:44 America/Chicago] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; DocumentParser has a deprecated constructor in /mnt/target04/367616/513298/staging.domainname.com/web/content/manager/includes/document.parser.class.inc.php on line 7
    [02-Jan-2019 12:57:44 America/Chicago] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; SystemEvent has a deprecated constructor in /mnt/target04/367616/513298/staging.domainname.com/web/content/manager/includes/document.parser.class.inc.php on line 3118
    [02-Jan-2019 12:57:44 America/Chicago] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; DBAPI has a deprecated constructor in /mnt/target04/367616/513298/staging.domainname.com/web/content/manager/includes/extenders/dbapi.mysql.class.inc.php on line 8
    [02-Jan-2019 12:57:44 America/Chicago] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /mnt/target04/367616/513298/staging.domainname.com/web/content/manager/includes/extenders/dbapi.mysql.class.inc.php:89
    Stack trace:
    #0 /mnt/target04/367616/513298/staging.domainname.com/web/content/manager/includes/document.parser.class.inc.php(1215): DBAPI->connect()
    #1 /mnt/target04/367616/513298/staging.domainname.com/web/content/index.php(137): DocumentParser->executeParser()
    #2 {main}
      thrown in /mnt/target04/367616/513298/staging.domainname.com/web/content/manager/includes/extenders/dbapi.mysql.class.inc.php on line 89
    
    [ed. note: iusemodx last edited this post 5 years, 3 months ago.]
      • 13226
      • 953 Posts
      Try here first

      Read the last post - you may want to do one or two steps more

      Hope that helps, if not, post in the Evo Github for help.