Forum

Notifications
Clear all

[Solved] Upgrading to 3.5.6

Azurite
(@azurite)
Estimable Member

I know 3.5.5 and 3.5.6 are basically the same except for version numbers, but I haven't touched my eFiction archive in a while, so I thought it might be due to at least try and upgrade it. However, I'm getting errors:

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/*****/www/drfa.seventh-star.net/public_html/header.php on line 31
A fatal MySQL error was encountered.
ERROR: Failed to connect to the database!

Obviously I went to go check on header.php, but the path I follow in my SiteGround File Manager is a little different, yet there don't appear to be any other folders with my archive's prefix (drfa) in it. (My setup is to have the site on a subdomain, which means there's a redirect in my public_html folder to this drfa.seventh-star.net folder, located in my root directory. (I hope that makes sense.)

So I edited the header.php file by stripping the outdated get_magic_quotes_gpc lines, and I double-checked the database username and password in config.php, but I'm still having no luck. So is this an eFiction issue, or an issue with my host and this unusual setup?

Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

Quote
Topic starter Posted : 13/11/2021 2:23 pm
Topic Tags
Azurite
(@azurite)
Estimable Member

Turns out it was a caching issue on my end. Once I deleted the dynamic cache, I got a new error about the TemplatePower class not being properly defined, even though the file was in the correct location in the includes/ folder.

However, that file didn't have the correct permissions (644) set to it, so once I set the right permissions, the error went away and I was able to access the eFiction site!

To save myself some future trouble, I created an .htaccess file that made sure I wouldn't have to worry about clearing the cache every time I made a backend change to eFiction's files:

<IfModule mod_headers.c>
Header set Cache-Control "private"
</IfModule>

This may not apply to your specific host/server setup if you have a different dynamic cache method in place, or if you don't use cache control at all.

I also had to delete the install/ folder to get rid of the error once I was able to login to the Admin side of things.

Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

ReplyQuote
Topic starter Posted : 13/11/2021 3:44 pm
Jimmi liked
Share: