Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2023-12-15 13:27:14

ywfineart
New Member
Registered: 2023-12-14
Posts: 4

Need Assistance : Function get_magic_quotes_gpc() is deprecated

Hey Textpattern Family !!
My name is yvette. Need your assistance getting two sites back online.
My first problem was accessing the password which kept giving me an incorrect
password error. Checked the config.php file so know the password is correct.
Second issue after a Host update was “ get_magic_quotes. “ Error.
Followed threads for Function get_magic_quotes_gpc() is deprecated
In the forum . Tried changing the password on the Host platform and that
led to blank / white screen.

You need to know that my HTML/CSS skills.are intermediate and am not
a developer. If you can help please keep things simple for me. Appreciate
any assistance. Thank You

God Bless You
yvette

URL to sites are. below as well as error messages

https://yvettewatsonfineart.com/blog/
https://www.yvettewatsonfineart.com/ywnews/?

11/23
Message on both websites – Both sites visible but broken and had access to the password login page

YWFINEART- BLOG
Deprecated: Function get_magic_quotes_gpc() is deprecated in /data/22/2/94/160/2746812/user/3019189/htdocs/blog/textpattern/lib/constants.php on line 29
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 /data/22/2/94/160/2746812/user/3019189/htdocs/blog/textpattern/lib/txplib_db.php on line 23
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; comment_evaluation has a deprecated constructor in /data/22/2/94/160/2746812/user/3019189/htdocs/blog/textpattern/publish/comment.php on line 409
Tag error: <txp:page_title /> -> Notice: Trying to access array offset on value of type null while parsing form header on page default
textpattern/lib/txplib_publish.php:426 page_title()
textpattern/lib/txplib_publish.php:326 processTags()
textpattern/lib/txplib_misc.php:1974 parse()
textpattern/publish/taghandlers.php:305 parse_form()
textpattern/lib/txplib_publish.php:426 output_form()
textpattern/lib/txplib_publish.php:326 processTags()
textpattern/publish.php:544 parse()
index.php:83 textpattern()

YWNEWS
Deprecated: Function get_magic_quotes_gpc() is deprecated in /data/22/2/94/160/2746812/user/3019189/htdocs/ywnews/textpattern/lib/constants.php on line 29
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 /data/22/2/94/160/2746812/user/3019189/htdocs/ywnews/textpattern/lib/txplib_db.php on line 23
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; comment_evaluation has a deprecated constructor in /data/22/2/94/160/2746812/user/3019189/htdocs/ywnews/textpattern/publish/comment.php on line 409

Logged into Host database – changed passwords hoping for access with new password but afterwards received the error message below. Both sites down Blank / white-with error messages and data base unavailable

12/13/23
YWNEWS

Deprecated: Function get_magic_quotes_gpc() is deprecated in /data/22/2/94/160/2746812/user/3019189/htdocs/ywnews/textpattern/lib/constants.php on line 29
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 /data/22/2/94/160/2746812/user/3019189/htdocs/ywnews/textpattern/lib/txplib_db.php on line 23
Database unavailable.

YWFINEART- BLOG
Deprecated: Function get_magic_quotes_gpc() is deprecated in /data/22/2/94/160/2746812/user/3019189/htdocs/blog/textpattern/lib/constants.php on line 29
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 /data/22/2/94/160/2746812/user/3019189/htdocs/blog/textpattern/lib/txplib_db.php on line 23
Database unavailable.

Offline

#2 2023-12-15 14:44:23

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: Need Assistance : Function get_magic_quotes_gpc() is deprecated

Hi Yvette and welcome,

The error messages you are seeing likely mean your host has updated their server PHP version but the version of Textpattern you are using is quite old. The current version of Textpattern already resolves that error, so you would need to upgrade to the current version of Textpattern.

The password problem is something else. The password you need to login to Textpattern is different to the password needed to access the database. It sounds like you have changed the database (user’s) password and Textpattern can now no longer access the database and replies with “Database unavailable”.

In your host’s file editor and check the file /blog/textpattern/config.php, which as you mentioned contains the database password. Update that to match your newly set password and you should see the “broken” site as before.

To reset the password to login to the admin area of Textpattern, there should be a “Forgot password?” button that sends you an email to reset the password.

Generally, before doing an update, it’s a good idea to take a backup of your site’s files and of the database before your start. If you need any assistance, we can try and help walk you through it on the forum, or alternatively feel free to get in touch via the forum email.


TXP Builders – finely-crafted code, design and txp

Offline

#3 2023-12-15 15:21:23

ywfineart
New Member
Registered: 2023-12-14
Posts: 4

Re: Need Assistance : Function get_magic_quotes_gpc() is deprecated

Hey Jakob

Thank you for the Welcome, the assit and simple to follow steps to recover the site !! Will update the password in the config file as suggested. Have used the forgot password option on the password login page but haven’t received the email. God willing will try again once the site is restored. Thank you again

God Bless You
yvette

Offline

#4 2023-12-15 15:27:18

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: Need Assistance : Function get_magic_quotes_gpc() is deprecated

See also this help page on ways for resetting an admin password if you receive no email. The last option is the most fiddly but should give you access in the event that nothing else works. Be sure to replace your user name and desired password in the example shown.


TXP Builders – finely-crafted code, design and txp

Offline

#5 2023-12-15 21:57:14

ywfineart
New Member
Registered: 2023-12-14
Posts: 4

Re: Need Assistance : Function get_magic_quotes_gpc() is deprecated

Great !! Thank you again Jakob

God Bless You
yvette

Offline

#6 2023-12-16 15:44:17

ywfineart
New Member
Registered: 2023-12-14
Posts: 4

Re: Need Assistance : Function get_magic_quotes_gpc() is deprecated

Hey Jakob

Praise God !! Both sites are back online. Still no success with “reset password” on the login page. Will be working on admin password recovery option you linked to. Thank you so much for you help. A blessing to see the sites again. Have a great weekend

God Bless You
yvette

Offline

Board footer

Powered by FluxBB