Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-11-18 04:58:17

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Upgrading PHP 5.6.x to 7.x gives errors with Txp 4.5.7 ... !?

Can I troubleshoot this without upgrading Txp to 4.6? Or do I have to upgrade? I doesn’t have enough knowledge of PHP and mySQL … so any help is appreciated.

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; DB has a deprecated constructor in /Users/Jochem/Websites/waterlijf.nl.dev/textpattern/lib/txplib_db.php on line 23

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /Users/Jochem/Websites/waterlijf.nl.dev/textpattern/lib/txplib_db.php:34 Stack trace: #0 /Users/Jochem/Websites/waterlijf.nl.dev/textpattern/lib/txplib_db.php(50): DB->DB() #1 /Users/Jochem/Websites/waterlijf.nl.dev/textpattern/publish.php(31): include_once(‘/Users/Jochem/W…’) #2 /Users/Jochem/Websites/waterlijf.nl.dev/index.php(82): include(‘/Users/Jochem/W…’) #3 {main} thrown in /Users/Jochem/Websites/waterlijf.nl.dev/textpattern/lib/txplib_db.php on line 34

Offline

#2 2016-11-18 09:14:20

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: Upgrading PHP 5.6.x to 7.x gives errors with Txp 4.5.7 ... !?

You’ll have to upgrade to txp 4.6, I’m afraid. Some php functions used in 4.5 are deprecated in php 7.

Offline

#3 2016-11-18 09:34:22

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Re: Upgrading PHP 5.6.x to 7.x gives errors with Txp 4.5.7 ... !?

Oleg … thanks. In the meantime I found this thread … I didn’t search good enough, sorry.

And of course I get all kind of errors due to the (old) state of the site (and plugins). This ISP doesn’t offer a toggle to stay at PHP 5.6. PHP offers security updates up till the end 2018.

So moving to another ISP with more PHP choices is a lot cheaper than fixing all Txp related errors. Better my client saves some money to buy a new and modern (responsive) site. Don’t you think?

Offline

#4 2016-11-18 09:41:27

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: Upgrading PHP 5.6.x to 7.x gives errors with Txp 4.5.7 ... !?

RedFox wrote #302967:

… I get all kind of errors due to the (old) state of the site (and plugins).

That could be easier to fix than it sounds. Most plugins just need to register their tags in 4.6, otherwise you get a warning, but only in debug/testing mode. Posting here generally helps, but it’s your choice, Joop. :-)

Offline

Board footer

Powered by FluxBB