Fatal error after forced update?

Started by atomicblue, January 29, 2020, 04:31:35 PM

Previous topic - Next topic

atomicblue

Hey there!

My forum was updated (not by choice) because apparently I'd been using a very old version of SimpleMachines. I can't tell you what the old version was or what it was being upgraded to as I can't access the forum or site at ALL at the moment. All I can do is share this error message that I get whenever accessing the site:

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/allantmn/all-antm.net/include/functions.inc.php:181 Stack trace: #0 /home/allantmn/all-antm.net/include/init.inc.php(173): cpg_db_connect() #1 /home/allantmn/all-antm.net/index.php(26): require('/home/allantmn/...') #2 {main} thrown in /home/allantmn/all-antm.net/include/functions.inc.php on line 181

That's if I go to the parent site (which is actually an image gallery). If I go to the forum page (all-antm.net/forums) I just get a blank white page with nothing on it.

Kindred

nope... that error is because your PHP version on the server was updated and whatever version of SMF that you are currently running is NOT up-to-date.

Your solution is that you have to update SMF.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

Look in your database, forum version is in smf_settings table.  Or look in /Sources/Load.php, version is up top.
When in Emor, do as the Snamors.
                              - D. Lister

shawnb61

My initial thought is that your phone version was updated.

What version of php is running?   You may need to run phpinfo....

What version of smf is running?  You can look at a source file, the version is near the top.
A question worth asking is born in experience & driven by necessity. - Fripp

atomicblue

Quote from: Kindred on January 29, 2020, 04:46:06 PM
nope... that error is because your PHP version on the server was updated and whatever version of SMF that you are currently running is NOT up-to-date.

Your solution is that you have to update SMF.

Ahhhh, that would make sense.

Quote from: Sir Osis of Liver on January 29, 2020, 09:02:44 PM
Look in your database, forum version is in smf_settings table.  Or look in /Sources/Load.php, version is up top.


And, um... where does one look in their database? I've never actually had to do that before, since nothing has ever broken down.

Quote from: shawnb61 on January 29, 2020, 10:10:15 PM
My initial thought is that your phone version was updated.

What version of php is running?   You may need to run phpinfo....

What version of smf is running?  You can look at a source file, the version is near the top.

Also, how would I find this out?

I basically just pay the hosting fees each year, have never really looked into any of this since I took the site over from the original founder (who basically bounced pretty quickly and is now uncontactable). I can access the hosting site, am I meant to be looking around there?

Sir Osis of Liver

If you have access to the host account, you can look in MySQL databases to find your database, and look through it with phpmyadmin.  You can use file manager or ftp client to view/upload/download files.

Nothing loads at http://all-antm.net or http://all-antm.net/forums.
When in Emor, do as the Snamors.
                              - D. Lister

atomicblue

Quote from: Sir Osis of Liver on January 29, 2020, 10:52:04 PM
If you have access to the host account, you can look in MySQL databases to find your database, and look through it with phpmyadmin.  You can use file manager or ftp client to view/upload/download files.

Okay, is there like a "for dummies" spot where I can learn how to do this?

I googled phpmyadmin - so from what I'm gathering, I use that program somehow to modify my site? Do I have that right? Is phpmyadmin a file manager / ftp client or are you saying I also need to download a file manager / ftp client?

a10

Try some initial stuff: contact the host, assuming it was a php upgrade, ask what php version they put you on, what it was before (when the forum was working), with a little luck there may still be an option to revert to the older php, so you can see the forum and then plan the coming what\where\how.
2.0.19, php 8.0.30, MariaDB 10.6.18. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.
Stand with 🇺🇦

Sir Osis of Liver

phpmyadmin is used to work with mysql databases, it's in the database section of your host control panel.  It's different from cpanel file manager and ftp clients, those allow you to work with files, not databases.  You can view the overall database structure, browse through tables to see the data that constitutes your forum content, and export part or all of the db for local backups.  But DO NOT CHANGE ANYTHING, you'll be sorry if you do. :(
When in Emor, do as the Snamors.
                              - D. Lister

atomicblue

Quote from: a10 on March 01, 2020, 03:21:45 PM
Try some initial stuff: contact the host, assuming it was a php upgrade, ask what php version they put you on, what it was before (when the forum was working), with a little luck there may still be an option to revert to the older php, so you can see the forum and then plan the coming what\where\how.

Nope, there's not. I already checked that. There was an option for a couple of weeks but unfortunately I was working and/or sick and didn't have a chance to get to this.

They've moved me to php 7.2. I was on php 5.6 or 5.8 (can't see what it was now).

a10

Ahh, so missed the bus. On how to upgrade an invisible forum, I'll leave this to the experts here.

...my wartime solution, if nothing else can plug the holes in the ship :O) find some host still offering 5.x or 7.1, get an inexpensive account, download (and securely backup) everything (files\db, ftp\phpmyadmin), install the lot on new host, do all the upgrades and fixes, restore files\db on original host. ...& after all this you'll be an officially certified expert forum admin :O)
2.0.19, php 8.0.30, MariaDB 10.6.18. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.
Stand with 🇺🇦

atomicblue

Hah, I was actually considering that. It's my Plan B.

My host apparently has some service where they can upgrade everything for me, but I'm afraid to ask how much that costs. I'd much rather just know how to back everything up and then attempt to upgrade things myself.

Sir Osis of Liver

You really need to know which old version you were using.  The forum doesn't have to be running to upgrade the database.
When in Emor, do as the Snamors.
                              - D. Lister

atomicblue

I just found an old message that refers to it! I was on PHP 5.6.

Sir Osis of Liver

When in Emor, do as the Snamors.
                              - D. Lister

a10

"I can access the hosting site, am I meant to be looking around there?"

Log in to host account, control panel > file manager, get index.php.
Open it in some text editor, the smf version will show near the top, example $forum_version = 'SMF 2.0.17';
2.0.19, php 8.0.30, MariaDB 10.6.18. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.
Stand with 🇺🇦

atomicblue

That's so funny, I think my forum version is 2.0.17.

I'm looking here, have I got the right spot?


geminiman

yes your in the right place if you want to export (download ) a copy of certain part or parts of your database or the entire database .

there is a tick box to the LEFT of each file in your database , if you just want selected files just put a tick in the tick box of those files and then click EXPORT . if you want to download the complete database tick all tick boxes , there should be an option to click on that will tick them all for you or just tick them yourself individually . then click on export . you will be asked where ON YOUR COMPUTER that you want to download the database to . i would create a new folder maybe call it DATABASES . then open that folder and create a second folder maybe call it database backup followed by todays date . and then download the database to that folder . at a later date when your forum is fixed you may decide to make regular backups of your database , so again each time open the DATABASES FOLDER then create a new folder , call it database backup followed by the date and save the new database there . that way you have your databases backed up and dated so its then easy to locate a database backup when needed .


sending a backup of your database to your forum is really just the opposite of what you just did above , instead of clicking export you click IMPORT .

yes from what i can see in the picture you attached it does say smf 2.0.17 so on that basis you do seem to be up to date .

ill let the other great experts here help you with the more complicated stuff as im still learning my self .

atomicblue

Eek, busy couple of weeks!

So 2.0.17 is the current version of SMF?

What might be the problem, then? Why would upgrading to the latest version of PHP cause issues? Any ideas on where to look?

(Also, I'm pretty sure I haven't imported or exported anything yet.)

To recap: my host forced an upgrade from PHP 5.6 to 7.2 I'm on (assuming I'm reading the host account correctly) SMF 2.0.17. I'm assuming something in the forced PHP upgrade doesn't agree with my forum. How do I go about fixing things?

vbgamer45

If it is 2.0.17 then upgrading php version to PHP 7.1 TO PHP 7.3
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: