line 345

scrabulista

Consul

  • Consul

Location:
Tennessee
I want to say I haven't seen this one in a couple of weeks....not sure though.

  • : preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/latindco/public_html/_latindiscussion.com/includes/unicode.inc on line 345.
 
B

Bitmap

Guest

quid malum

That function has been deprecated for at least 5 years. The forum software was still using it in the 2019 update?
 
E

Etaoin Shrdlu

Guest

For those of us who wouldn't recognise a deprecated modifier if it hit us on the head, can you explain what essential thing can no longer be done?
 
B

Bitmap

Guest

A deprecated function is a function that is in the process of being thrown out (and/)or being replaced by something else in a programming language. It's usually still working in your current version, but it may become obsolete in the next update of the programming language (PHP in this case) ... or in the one after that. In other words, declaring a function to be deprecated is a warning that your source code will soon get fucked. But preg_replace() was thrown out years ago. I.e. when the warning actually shows up in your output, you already are fucked.

If that happens, your entire page may malfunction over that error. However, in this case, it just seems to be a script that is loaded via the include function, so only the stuff you include seems to crash. I've just realised that scrabulista was talking about the LatinD main page:

1642117217135.png


That page was not affected by any forum update, and the last time it got updated might be before some members of this forum had even been born ... and it's questionable whether that page is of any use at all, anyway.

What you see there is the included script crashing over a function that is no longer in use.

What preg_replace() used to do was to replace a string. For example, whenever you post a pure URL, you'll notice that the forum will turn it into a link, possibly with even more information that it can retrieve from that site. That's because the forum script notices that there is a URL and replaces it with a more sophisticated kind of link.*
The same was done on that page as far as I remember. "Latin Forum Highlights" linked to a couple of threads on this forum.

(At least that's my analysis as an outsider. That's what it looks like. Obviously, I can't read the source code)

*A simpler example would probably be that whenever you write quid malum, it gets replaced by quid malum ... or vappa being replaced by vappa.
 
Last edited by a moderator:
B

Bitmap

Guest

This, in other words, means that the script of the forum itself is probably up to date ... otherwise it would probably hardly be working at all, anymore.

Unless @scrabulista noticed that error on some other page than the non-forum mainpage. In which case he should provide a screenshot and more detailed explanation of when and where it happened.

I edited a few things in the previous post.
 

scrabulista

Consul

  • Consul

Location:
Tennessee
Bitmap summed it up just right.
 
 

Godmy

Sīmia Illūstris

  • Censor

Location:
Bohemia
The function isn't deprecated (there isn't other way how to work with regex), but the /e modifier is...

I could probably fix the home page, but then, I think the homepage itself is sort of "deprecated" and I don't intend on improving it content-wise, so then, I don't know what to do with it. Akela did suggest once removing the page altogether, I could probably do that, maybe I'll ask her tomorrow.

So what kind of application did you used to code, Bitmap?
 
Top