Solved: 5 Days, 4 Hours, 53 Minutes ago Warnings after Upgrade
#1
Solved: 5 Days, 4 Hours, 53 Minutes ago
I've just upgraded fr1.8.39 to 1.8.41 and it seemed to go OK.

It said something about deleting a lock file but I couldn't find it.  I assume it was in the install directory which I did delete.

I got these errors displayed at the top when I connected to the forum.

http://forum.survivaluk.net/Screenshot%2...-17-54.jpg

Any ideas?
Reply
#2
Solved: 5 Days, 4 Hours, 53 Minutes ago
You need to update all, when you run update system.

1. Update mybb core files.
2. Update plugins.
3. Update theme.

All of those things are necessary to prevent failures.

You can import original mybb theme from a clean install and import it, test it and make your own theme compatible and functional with your current version.
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

Reply
#3
Solved: 5 Days, 4 Hours, 53 Minutes ago
Hey there did you desactivate all your plugins before the update? and upload all the mybb original files?

Server and Optimization Options in admin cp, hide errors and and warnings, but check you error.log file in your server
https://docs.mybb.com/1.8/faq/errors/
Reply
#4
Solved: 5 Days, 4 Hours, 53 Minutes ago
I disabled all plugins. I only has askismet and while you were typing. I am using a slightly modified default theme.

I simply updated the core files then enabled the plugins as I have done previously.

If I have to do a fresh build from scratch it's been years, more than a decade, since I installed and configured the site. I'll never remember the changes I made, although there were not many. Is there a way to identify them so I can make a note of them or are they in the DB?
Reply
#5
Solved: 5 Days, 4 Hours, 53 Minutes ago
Looks like there is more wrong than I thought. I went into the system and was checking files. I went to Tools - Maintenance - Validate File and clicked Yes. System returned with 'There was a problem communicating with the MyBB server. Please try again in a few minutes.' It keeps saying that. So something is screwed up.

I'm going to try reinstalling again by restoring the old files and the DB to pre install and check all the stats again.
Reply
#6
Solved: 5 Days, 4 Hours, 53 Minutes ago
Hi there hard to say, you have an 404 error now
Reply
#7
Solved: 5 Days, 4 Hours, 53 Minutes ago
Could you validate files with the mybb server in the past?  As I recall, the validater gets the checksums from mybb.com via a file_get_contents() call.  However, for that to work with a URL (as mybb.com is) you need to have the setting allow_url_fopen in your php.ini - that was disabled on my server and may be on your as well.  I ended up adding this to my copy of file_verification.php and calling it instead:

function curl_file_get_contents($url)
{
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	$response = curl_exec($ch);
	curl_close($ch);
	return $response;
}


I'm not sure where you are in the process, but I went to your site and it offered to let me either install it or upgrade it.  (I didn't do either.)  I don't know if you (or some random stranger) did an install - you don't want to install, you want to upgrade.  Note - install means creating a new database - and I think with the install script exposed to the world, anyone can potentially do that.
Reply
#8
Solved: 5 Days, 4 Hours, 53 Minutes ago
(2026-11-06, 09:15 PM)Dave H Wrote: Could you validate files with the mybb server in the past?  As I recall, the validater gets the checksums from mybb.com via a file_get_contents() call.  However, for that to work with a URL (as mybb.com is) you need to have the setting allow_url_fopen in your php.ini - that was disabled on my server and may be on your as well.  I ended up adding this to my copy of file_verification.php and calling it instead:

function curl_file_get_contents($url)
{
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	$response = curl_exec($ch);
	curl_close($ch);
	return $response;
}


I'm not sure where you are in the process, but I went to your site and it offered to let me either install it or upgrade it.  (I didn't do either.)  I don't know if you (or some random stranger) did an install - you don't want to install, you want to upgrade.  Note - install means creating a new database - and I think with the install script exposed to the world, anyone can potentially do that.

I've never validated files.   I'm not even sure how to.  I just downloaded the latest version from the main site.

I've been rebuilding and installing for a couple of days now.   and I think I know what the issue is although it makes no sense.

I restore the files and the db.      I got the same errors on the restored system.  So it must be something to do with PHP which is now at 8.4.  So I rolled that back to 7.4 and the errors disappeared.

I went in and ensured I disabled plugins and locked the board.   100% sure.    I then ran the upgrade script again and it appeared to work fine again. 

I then upgraded PHP to 8.4 and the messages appeared again.

So I restored everything back to 7.4, old forum, old db and checked it was fine.    I've updated the forum to the latest version and it appears to be working fine.    Only thing is when I change PHP to 8.4 it comes up with the error message warnings.  Every time.

I'm stuck now.  Any ideas?   My next move is a new install and restoring the data but I don't want to do that if I can help it.
Reply
#9
Solved: 5 Days, 4 Hours, 53 Minutes ago
On validating files - I was referring to this:

(2026-11-05, 08:38 PM)SUK Wrote: Looks like there is more wrong than I thought.  I went into the system and was checking files.  I went to Tools - Maintenance - Validate File and clicked Yes.  System returned with 'There was a problem communicating with the MyBB server. Please try again in a few minutes.'  It keeps saying that.  So something is screwed up.

Just pointing out that that can easily be fixed and doesn't necessarily indicate a serious problem.

Warnings are just warnings and some are to be expected. Your picture link doesn't work for me so I don't know what warnings you get. Warnings related to themes and plugins are the most interesting to look at. As for core MyBB warnings, as long as the MyBB team gets rid of them all before PHP 9 is the only supported PHP, then things will be fine. (That's at least a few years away.)

But for now, if the forum works, just log them and don't display them and continue on.
Reply
#10
Solved: 5 Days, 4 Hours, 53 Minutes ago
Ah. I was just flailing about. Thought it might highlight something corrupt. Never used it before.

Now I have it back and working I can't just leave it as the ISP is pushing me to migrate to a supported version.

So I'm going to set up a test domain with the latest version of PHP and the latest version of MyBB. If I don't get any errors I'll try loading some data from my backups. There is a lot of junk in there build up over decades. I just want to threads and the users. I can build the rest up myself.

What tables do I need to restore to give me the forum, keep the users and leave a functioning site.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)