Server Blog

News & discussion about the forum's server, hardware, software, upgrades, features, etc.

Moderator:Nissan_Ranger

Post Reply
User avatar
asavage
Site Admin
Posts:5351
Joined:15 years ago
Location:Duvall, Wash.
Contact:

#61

Post by asavage » 7 years ago

Well, it's not the forum code, as I rolled it back all the way to the old version, and the disappearing Preview persists. That means it's either the newer php (likely) or the newer mysql (less likely). Hmmm.
Regards,
Al S.

1982 Maxima diesel wagon, 2nd & 4th owner, 165k miles, rusty & burgundy/grey. Purchased 1996, SOLD 16Feb10
1983 Maxima diesel wagon, 199k miles, rusty, light yellow/light brown. SOLD 14Jul07
1981 720 SD22 (scrapped 04Sep07)
1983 Sentra CD17, 255k, bought 06Jul08, gave it away 22Jun10.

User avatar
asavage
Site Admin
Posts:5351
Joined:15 years ago
Location:Duvall, Wash.
Contact:

#62

Post by asavage » 7 years ago

The problem is an interaction with PHP v5.4.15 and phpBB2 v2.0.23 . There have been some changes to PHP recently that tend to make older code not work right anymore; backward compatibility is waning.

I rolled PHP back to 5.3.20, and that resolved the "no preview if a degree symbol exists in the post text" problem, but the server trapped with exceptions four times in fifteen minutes, which is no good. I've rolled PHP back further, to 5.3.4 . Crossing my fingers.

° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
Doing a 360°
Regards,
Al S.

1982 Maxima diesel wagon, 2nd & 4th owner, 165k miles, rusty & burgundy/grey. Purchased 1996, SOLD 16Feb10
1983 Maxima diesel wagon, 199k miles, rusty, light yellow/light brown. SOLD 14Jul07
1981 720 SD22 (scrapped 04Sep07)
1983 Sentra CD17, 255k, bought 06Jul08, gave it away 22Jun10.

User avatar
asavage
Site Admin
Posts:5351
Joined:15 years ago
Location:Duvall, Wash.
Contact:

#63

Post by asavage » 7 years ago

For my own reference, my testcase:

http://www.phpbb2refugees.com/viewtopic.php?p=7580#7580

It's a problem with the default charset encoding having changed for the function htmlspecialchars() between php 5.3.x & 5.4.x. The default used to be "ISO-8859-1" (<=5.3) and became "UTF-8" (5.4).

htmlspecialchars() now has four parameters. The phpbb2 code was written before parameters three & four existed, including the default charset encoding, but the default of those parameters was "ISO-8859-1" so it didn't matter for most of us.

However, with php 5.4 the default charset encoding changed to UTF-8, and now (in my case) we have (202) instances of htmlspecialchars that need to be modified with the 3rd & 4th parameters to explicitly define the correct charset encoding again.

I'm going to have to fire up sed or something for this one; hand-editing 202 function calls does not sound like fun.
Last edited by asavage 7 years ago, edited 1 time in total.
Regards,
Al S.

1982 Maxima diesel wagon, 2nd & 4th owner, 165k miles, rusty & burgundy/grey. Purchased 1996, SOLD 16Feb10
1983 Maxima diesel wagon, 199k miles, rusty, light yellow/light brown. SOLD 14Jul07
1981 720 SD22 (scrapped 04Sep07)
1983 Sentra CD17, 255k, bought 06Jul08, gave it away 22Jun10.

User avatar
asavage
Site Admin
Posts:5351
Joined:15 years ago
Location:Duvall, Wash.
Contact:

#64

Post by asavage » 7 years ago

I think I've got the problem with the non-backwards-compatible php 5.4 version of htmlspecialchars() fixed. Reference data is here.

Summary: wrote a wrapper function for the std htmlspecialchars() that adds the legacy 2nd & 3rd parameters if needed (AFAIK, for the 2.0.23 codebase, they're always needed, but future MODs might not), and used automation (sed) to rename all (202) function calls to htmlspecialchars() to the new wrapper.

Seems to work.
Degree symbols ahoy!
10°
20°
30°
40°
50°
60°
70°
80°
90°
100°
Regards,
Al S.

1982 Maxima diesel wagon, 2nd & 4th owner, 165k miles, rusty & burgundy/grey. Purchased 1996, SOLD 16Feb10
1983 Maxima diesel wagon, 199k miles, rusty, light yellow/light brown. SOLD 14Jul07
1981 720 SD22 (scrapped 04Sep07)
1983 Sentra CD17, 255k, bought 06Jul08, gave it away 22Jun10.

Nissan_Ranger
Posts:266
Joined:13 years ago
Location:Canada

#65

Post by Nissan_Ranger » 7 years ago

Wish I was as good with this black magic!
The old 'six gun' was as popular as the cell phone in its time and just as annoying when it went off in the Theater.

plenzen
Posts:869
Joined:13 years ago
Location:Cochrane Alberta Canada

#66

Post by plenzen » 7 years ago

Me too but he assures me he's only a minor deity :wink:
Retired Pauly
Problem with being retired is that you never get a day off.
1987 D21-J SD25 KC
KJLGD21FN

User avatar
asavage
Site Admin
Posts:5351
Joined:15 years ago
Location:Duvall, Wash.
Contact:

#67

Post by asavage » 7 years ago

Wow, that's a far-back dredging, Paul ;)

The new Apache (httpd) is not stable, and I don't know if it can be made stable. I have a cron job automatically killing it and restarting it every six hours, but a user called me yesterday around noon to tell me it was not responding, and when I went to the console, it wouldn't kill but was also not responding to requests. I had to reboot the box. That's very discouraging.

I'm now investigating if I can go back to the older Apache we've been running for the past ten years, but with newer mysql and somewhat newer php. I enjoyed very good uptime with the previous setup.
Regards,
Al S.

1982 Maxima diesel wagon, 2nd & 4th owner, 165k miles, rusty & burgundy/grey. Purchased 1996, SOLD 16Feb10
1983 Maxima diesel wagon, 199k miles, rusty, light yellow/light brown. SOLD 14Jul07
1981 720 SD22 (scrapped 04Sep07)
1983 Sentra CD17, 255k, bought 06Jul08, gave it away 22Jun10.

User avatar
asavage
Site Admin
Posts:5351
Joined:15 years ago
Location:Duvall, Wash.
Contact:

#68

Post by asavage » 7 years ago

As of today:
  • We are still running on the new hardware: HP DC7100CMT
  • We are running on the newer OS: eCS 2.1 GA
  • We are running the newest available MySQL: 5.1.68
  • Old Apache 1.3.41
  • Old php 4.3.10
I am rejoining the workforce tomorrow, so I have to call it quits on the attempt to update Apache 2.x & PHP 5.4. I got close, but Apache just keeps dying, and in a way that can't be scripted around reliably. As the old Apache 1.x & PHP 4.3.10 have been giving us no problems for years, I'm not going to chase this any more until more progress is made (external to me) to the Apache product port. Maybe I'll revisit it in a year.

Meanwhile, there's no loss of functionality using the old stuff.
Regards,
Al S.

1982 Maxima diesel wagon, 2nd & 4th owner, 165k miles, rusty & burgundy/grey. Purchased 1996, SOLD 16Feb10
1983 Maxima diesel wagon, 199k miles, rusty, light yellow/light brown. SOLD 14Jul07
1981 720 SD22 (scrapped 04Sep07)
1983 Sentra CD17, 255k, bought 06Jul08, gave it away 22Jun10.

plenzen
Posts:869
Joined:13 years ago
Location:Cochrane Alberta Canada

#69

Post by plenzen » 7 years ago

Just for an FYI Al

On my end at least

#1. The emoticons simply list an underlined "text" for what they are. If I click on that particular text like this one: :wink: ,,,, the word "wink" only appears in the body of the message and not the emoticon. ( not a big deal, but thought you would like to know )

#2. When I click on a "quote" to include in a replay. It takes a certain amount of time for the text within in the quote to "focus" for lack of a better term. The longer its left stationary the clearer it becomes. Not that it's unreadable but kind of like the old typewriter ribbon needs replacing.


Again, not a big deal, and it is legible, but thought it something you would like to know.

Good luck on your "rejoining" of the army of Drones.


Paul
Retired Pauly
Problem with being retired is that you never get a day off.
1987 D21-J SD25 KC
KJLGD21FN

User avatar
asavage
Site Admin
Posts:5351
Joined:15 years ago
Location:Duvall, Wash.
Contact:

#70

Post by asavage » 7 years ago

The focus thing, I can't think of what could cause that. It really sounds like a User Agent thing (ie your browser), but let's see if anyone else reports.

I'll look into the emoticon problem this week.
Regards,
Al S.

1982 Maxima diesel wagon, 2nd & 4th owner, 165k miles, rusty & burgundy/grey. Purchased 1996, SOLD 16Feb10
1983 Maxima diesel wagon, 199k miles, rusty, light yellow/light brown. SOLD 14Jul07
1981 720 SD22 (scrapped 04Sep07)
1983 Sentra CD17, 255k, bought 06Jul08, gave it away 22Jun10.

User avatar
asavage
Site Admin
Posts:5351
Joined:15 years ago
Location:Duvall, Wash.
Contact:

#71

Post by asavage » 6 years ago

I'm sorry that I haven't worked on fixing the emoticons. I know what I have to do, I just haven't devoted the time to chase it.

New news: we've had an cable internet outage here since sometime early Sunday morning 11Jan. As I write this, it's still out, and this won't get posted until we get internet back, so I don't know how long it will be out. Wave Broadband, my broadband provider out here in Duvall, Wash., has an automated recording that just says, "it's bad, we know about it, and no ETA for fixing it."

[later]
Seems we're back online at about 8pm PST.
Regards,
Al S.

1982 Maxima diesel wagon, 2nd & 4th owner, 165k miles, rusty & burgundy/grey. Purchased 1996, SOLD 16Feb10
1983 Maxima diesel wagon, 199k miles, rusty, light yellow/light brown. SOLD 14Jul07
1981 720 SD22 (scrapped 04Sep07)
1983 Sentra CD17, 255k, bought 06Jul08, gave it away 22Jun10.

User avatar
asavage
Site Admin
Posts:5351
Joined:15 years ago
Location:Duvall, Wash.
Contact:

The MySQLd (database server) is updated

#72

Post by asavage » 6 years ago

I updated the MySQLd (database server) from 5.1.68 to 5.1.72 yesterday. It was found that the C compiler (GCC) was generating stack corruption, so this is the first version of MySQLd ported to OS/2 with the repaired compiler.
Regards,
Al S.

1982 Maxima diesel wagon, 2nd & 4th owner, 165k miles, rusty & burgundy/grey. Purchased 1996, SOLD 16Feb10
1983 Maxima diesel wagon, 199k miles, rusty, light yellow/light brown. SOLD 14Jul07
1981 720 SD22 (scrapped 04Sep07)
1983 Sentra CD17, 255k, bought 06Jul08, gave it away 22Jun10.

Nissan_Ranger
Posts:266
Joined:13 years ago
Location:Canada

#73

Post by Nissan_Ranger » 6 years ago

I bow to your great genius, oh wise and munificent master of the ethernet subweb electronic quark quark particles!

Andy :-)
The old 'six gun' was as popular as the cell phone in its time and just as annoying when it went off in the Theater.

User avatar
asavage
Site Admin
Posts:5351
Joined:15 years ago
Location:Duvall, Wash.
Contact:

#74

Post by asavage » 6 years ago

Well, that didn't go so well. MySQLd crapped out four times in less than a day, so I've rolled back to 5.1.68 and am forwarding trap files to the appropriate place.
Regards,
Al S.

1982 Maxima diesel wagon, 2nd & 4th owner, 165k miles, rusty & burgundy/grey. Purchased 1996, SOLD 16Feb10
1983 Maxima diesel wagon, 199k miles, rusty, light yellow/light brown. SOLD 14Jul07
1981 720 SD22 (scrapped 04Sep07)
1983 Sentra CD17, 255k, bought 06Jul08, gave it away 22Jun10.

plenzen
Posts:869
Joined:13 years ago
Location:Cochrane Alberta Canada

#75

Post by plenzen » 6 years ago

Our very own Sheldon Cooper keeps us going

Thanks again Al.
Retired Pauly
Problem with being retired is that you never get a day off.
1987 D21-J SD25 KC
KJLGD21FN

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest