Jump to content

Talk:Beta Features/PHP7

Add topic
From mediawiki.org
Latest comment: 6 years ago by Peter James in topic Please update this page


Beta feature

[edit]

I am amazed by the possibility to enable something as deeply server-side as PHP7 in the beta preferences, with a single click, for only those who would like to participate in the beta project. Thank you for making both PHP7 and this beta test possible. ToBeFree (talk) 00:29, 25 January 2019 (UTC)Reply

I haven't looked into the mechanism in use but I wouldn't be surprised if it's a simple cookie or something that indicates to varnish to send to a different server, or to apache to handle differently or something. But yes, yay for testing new stuff. Krenair (talkcontribs) 11:57, 25 January 2019 (UTC)Reply

PHP7 Timeout causes plaintext warning

[edit]

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


At https://en.wikipedia.org/wiki/Special:ProtectedPages

MediaWiki internal error.

Original exception: [XEparwpAIC0AAKvnybwAAACB] 2019-01-25 00:40:33: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information. ToBeFree (talk) 00:46, 25 January 2019 (UTC)Reply

The timeout is nothing new, my preferences show 1000 entries by default, and that's too much for 60 seconds. Wondering if PHP7 accelerates this process enough to finish within 60 seconds, I opened the page, and received plaintext instead of the "usual" warning design. I guess this is relatively intentional and can be ignored. ToBeFree (talk) 00:48, 25 January 2019 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

What interest for the wikisource contributor ?

[edit]

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi, we have recently seen this Beta feature appear on wikisource, and like all beta features, I gave it a try... but I don't see any difference, nor do I understand what it should do.

Could you please explain ? Hsarrazin (talk) 18:22, 29 January 2019 (UTC)Reply

It is a technical backend thing. Not seeing any difference is, in this case, ideal. It shows that using a different piece of software to run the wiki's code is not breaking anything noticeable. Krenair (talkcontribs) 18:30, 29 January 2019 (UTC)Reply
OK, the thins is a PHP7 tag appears in log of Recent modifications, and there has been no explanations about it... admins and patrollers were a little anxious :) Hsarrazin (talk) 18:42, 29 January 2019 (UTC)Reply
I have added an entry to the Q&A section. You'd think by now I would know how translations work around here, but I don't, so it might not show up right in translations. If someone reading this knows what to do please help :) Krenair (talkcontribs) 18:47, 29 January 2019 (UTC)Reply
LOL I see what you mean ! I'm always in trouble with it too... Hsarrazin (talk) 18:56, 29 January 2019 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Lines appearing in "pending changes"-protected pages while enabling en-wp's Legacy Toolbar gadget and using IE11

[edit]

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


  1. Open Microsoft Internet Explorer 11, especially if you have either Microsoft Windows 7 or 8
  2. The PHP7 Beta feature should be enabled.
  3. Then go to "Gadget" tab in Preferences
  4. Un-check the "Enable the editing toolbar" (2010 wikitext editor) to disable the toolbar
  5. When the editor goes back to the default/2003, toolbar-less editor, checkmark the "Enable the legacy (2006) editing toolbar" option
  6. Go to any page listed under w:en:Special:StablePages
  7. Use the mouse scroll wheel, i.e. mouse scroller, to scroll down the if your mouse has one.

Expected result: The lines should not appear around the editor.

Actual result: The lines appear when scrolling down and then up (seen in the below picture). The lines then disappears when:

  1. the mouse pointer moves out of the editor (with the Legacy toolbar enabled)
  2. you press the "Enter" key within the editor
  3. you press "Page Down"/"PgDown" and/or the "Page Up"/"PgUp" key
  4. you use a mouse to highlight any text within the editor

I wanted to take this to the Phabricator, but the gadget is not part of the Mediawiki software. I decided to describe the issue here instead.

I found out that it's the gadget itself, not the PHP7. I disabled the PHP7, and I found the same results. George Ho (talk) 09:10, 2 February 2019 (UTC)Reply

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

lua / maps issue

[edit]

https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&oldid=882171666#Template:OSM_Location_map_syntax_error

"The en:Template:OSM Location map is showing "Syntax error" as an output for all instances of its use (for example, en:2019 Jolo Cathedral bombings and en:Alameda, California#Attractions ."

When previewing the page, it seems that toggling php7 beta feature triggers this error. —TheDJ (Not WMF) (talkcontribs) 08:41, 7 February 2019 (UTC)Reply

This might be the same issue as T214984? Deskana (talk) 09:45, 7 February 2019 (UTC)Reply
I fixed trailing comma's
https://en.wikipedia.org/w/index.php?title=Template:Highway_system_OSM_map&diff=prev&oldid=882181669
and an incorrect value:
https://en.wikipedia.org/w/index.php?title=Template:OSM_Location_map/Labelitem&diff=prev&oldid=882186194
(wikicode generated the literal 0 + 1, but json doesn't do calculations ;)
This seems to fix it. Interesting that the inline comments did not cause a validation error. —TheDJ (Not WMF) (talkcontribs) 11:38, 7 February 2019 (UTC)Reply

Here's a bug

[edit]

https://en.wikipedia.org/w/index.php?title=User_talk:42.106.209.62&diff=883557721&oldid=883557532


Note how the sample unblock request is signed. ~ Drmies (talk) 03:57, 16 February 2019 (UTC)Reply

Is that really PHP7 related? I'd expect an editor bug to have happened instead. ToBeFree (talk) 23:38, 25 February 2019 (UTC)Reply

Using PHP7 via the API

[edit]

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


As a tool author, is there a way I can set the API requests I make to use PHP7 instead of HHVM? That might provide some additional coverage of code not usually reached by website users. Lucas Werkmeister (talk) 12:37, 27 February 2019 (UTC)Reply

The way the beta feature works is by setting a cookie, which is sent along with every request. The cookie indicates PHP7 should be used - extract this cookie and adjust the tool so that it will always send that cookie along with its requests. Mainframe98 talk 12:42, 27 February 2019 (UTC)Reply
From what I can see in my browser, the cookie that should be sent is called PHP_ENGINE and should have the value of php7, as observed by toggling the beta feature. Mainframe98 talk 12:48, 27 February 2019 (UTC)Reply
Thanks, that works! (code change, example edit) Lucas Werkmeister (talk) 13:05, 28 February 2019 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Is IP users enabled to choose whether to use the PHP7 feature?

[edit]

I have noticed some edits in Chinese Wikipedia. It seems that an IP user can choose which PHP engine they use? DreamerBlue (talk) 03:41, 6 March 2019 (UTC)Reply

It looks like the PHP_ENGINE cookie, which the beta feature uses, is not deleted on logout, so if a user selects the PHP7 beta feature and then logs out, I think they’ll continue to use PHP7. Perhaps that is what happened here?
That said, there are also plans to enable PHP7 for some anonymous users as part of A/B testing (T216676), so I would expect this to happen more frequently soon. 87.138.110.76 (talk) 14:51, 6 March 2019 (UTC)Reply
@Lucas Werkmeister (WMDE): Some local sysops are wondering if these IPs are socket puppets, since enabling a beta feature manually is strange for an IP user. Anyway, thank you. DreamerBlue (talk) 11:28, 7 March 2019 (UTC)Reply
Bahaha, I had logged out on metawiki to test this and apparently I needed to reload this talk page after the re-login :D (filed T217774 for this) Lucas Werkmeister (WMDE) (talk) 14:58, 6 March 2019 (UTC)Reply

Bug of course, but PHP7?

[edit]

I activated the Beta of PHP7 today and tried to give it a go.

However, on my second (third?) edition, after I have tried to preview the article, my mouse went mad and everything I clicked or hovered on had some sort of offset compared to where the pointer actually is. For instance, if I wanted to click on the preview button, I had to have the mouse over the text edition zone, This offset changed every time I managed to preview or review my changes, without a clear pattern.

Also, this offset only applied inside the web page, not on Mozilla Firefox window (v65.0.2 64bits, it got that far?!), nor on my Windows computer.


Ultimately, I had to abandon the changes, because when I wanted to preview one last time before publishing them, all the edition zone and more generally the bottom of the page (including some of the article) went blank, like if someone cut it clean. Therefore, without the magic button :'(...


I did not register to any other beta (the last one about mixing wikicode editor and the visual one's toolbar gave me the itches, due to how fearful the publish-but-you-can-also-preview-and-review-changes button is). However I do use some gadgets, which are :

  • AncreTitres : Adds links to copy in the clipboard the internal links or URLs to reach directly a section.
  • ArchiveLinks : Adds a link to [archive] next to every external link, pointing to a cached version. This is actually a gadget??
  • LastContrib : Indicates on page loading whether it has been modified recently or not, to avoid nasty conflicts. Never saw it, to be honest.
  • DotsSyntaxHighlighter : More colorful colors on the wikicode editor.
  • MonobookToolbarStandard : Adds the standard buttons during the -layouting? in French it's "mise en forme"- when editing an article. The question is, what is the standard? And why is it not standard to have the standard buttons?
  • DeluxeHistory : More colorful colors in the history!
  • Wdsearch : Don't actually know what it does; maybe it was on by default when I registered? Description is talking about adding Wikidata when researching on Wikou and add them at the bottom of the page. When I think about it, if I don't know what it does, why do I have it x_x.
  • Accessibilité : A toolbox for accessibility on the left menu.
  • Oh and not in the gadget menu, but I have the fast preview enabled to avoid a full page refresh every time I want to preview/review.

In my opinion, none of the gagdets are responsible for that. I mean, they've been on for more than a year and more than 365 edits, so the reverse would be surprising. Tortliena (talk) 21:28, 11 March 2019 (UTC)Reply

I don't think it's likely that the PHP runtime will have an impact on the JavaScript experience directly. It's possible that there was already a race condition between your gadgets that is exposed due to different server-side timings. I'd recommend disabling all gadgets and then enabling them one by one until it works. Note that you can load a page without any gadgets, users scripts, or site scripts with ?safemode=1, e.g. https://fr.wikipedia.org/w/index.php?title=Special:Random&redirect=no&veaction=edit&safemode=1 – if you can find a way to replicate your issue in safe mode, I'd be very interested! Jdforrester (WMF) (talk) 23:35, 12 March 2019 (UTC)Reply
Oh no! Not my colorful history and wikicode... Alas, the bug is not happening frequently, so enabling the gadgets one by one will probably make me miss the bug.
But alright, I'll disable all gadgets for a while (most of them aren't useful to me anyway :p) and I will reach back to you if I stumble on the issue again! Tortliena (talk) 12:08, 13 March 2019 (UTC)Reply
~~~~
Why is the possibility of 'Thanking'skipped with PHP7 ?? Boss-well63 (talk) 16:24, 6 July 2019 (UTC)Reply

Moved out of Beta; "PHP7" still tagged in edit summary

[edit]

I noticed that PHP7 is no longer a Beta Feature. However, I see that "PHP7" is still tagged in edit summaries. Is "PHP7" tagging still necessary? If so, how long? George Ho (talk) 04:50, 16 May 2019 (UTC)Reply

The removal of the beta feature doesn't mean the functionality is gone. 5% of users, randomly selected, go to PHP7. I expect they will continue tagging until 100% of users get PHP7. Krenair (talkcontribs) 11:11, 16 May 2019 (UTC)Reply
@Krenair is correct. Jdforrester (WMF) (talk) 14:11, 16 May 2019 (UTC)Reply
When do you believe will 100% of users get PHP7? George Ho (talk) 17:03, 16 May 2019 (UTC)Reply
Looking at phab:T219127 they appear to be targetting the next six weeks. Krenair (talkcontribs) 17:07, 16 May 2019 (UTC)Reply

Thanks for the really clear explanation

[edit]

I am not technical at all but I found the explanation really easy to understand. Thanks whoever wrote it :) Redfiona99 (talk) 21:55, 21 May 2019 (UTC)Reply

Tag PHP suddenly

[edit]

Hello from en.wiktionary. Suddenly, since the 27th of May, all my edits are marked with the phrase: '''Tag: PHP7'''. How could I stop it from appearing please? --Sarri.greek (talk) 03:36, 29 May 2019 (UTC) [Sarri.greek@en.wiktionary (talk)] Sarri.greek (talk) 03:36, 29 May 2019 (UTC)Reply

Ok! thanks: it vanished --~ Sarri.greek (talk) 10:50, 29 May 2019 (UTC)Reply
It disappeared from en.wiktionary, but it is still appearing at el.wiktionary. It would be very nice if you could take if away from there too. Thank you. --~~~~ Sarri.greek@el.wiktionary - talk Sarri.greek (talk) 12:06, 29 May 2019 (UTC)Reply
10% of all traffic is currently being randomly assigned to the PHP7 testing servers. The tag will show up on any edits made from servers running php7 to help us track issues that may ultimately be related to the php7 software. This isn't anything that a particular editor should be concerned about. BDavis (WMF) (talk) 21:24, 29 May 2019 (UTC)Reply
If it doesn't concern us and isn't an issue, then make the tagging invisible to the editors. What purpose does it serve marking all the public spaces with this backend issue?~ LlywelynII (talk) 15:56, 16 June 2019 (UTC)Reply
@LlywelynII MediaWiki doesn't generally have different levels of user interface details for editors vs patrollers vs other general classes of users. These tags are very useful for patrollers and folks working on the roll-out of the PHP7 runtime system as they help us correlate problems seen in the content with the PHP runtime that was active when the changes were made. BDavis (WMF) (talk) 17:29, 16 June 2019 (UTC)Reply

Elimination of the PHP7 beta Selection

[edit]

I really do not understand the rationale behind removing this. I had the beta feature enabled, and now I have never seen a time on the site when I was not using HHVM again. Seems that something is broken. I am talking mainly about the en wikipedia, but I have observed this on other wikis, too. Tystnaden (talk) 13:15, 18 June 2019 (UTC)Reply

Please update this page

[edit]

It says... PHP 7 support should be production-complete in the first half of 2019.


The second half of the 2019 has already started, so that sentece is nonsense. Please update! Wikimedia is still running HHVM.


Please update (talk) 10:06, 14 July 2019 (UTC)Reply

I've marked it as historical for you. Jdforrester (WMF) (talk) 16:34, 15 July 2019 (UTC)Reply
So what will happen now? 74.102.35.98 (talk) 13:41, 16 July 2019 (UTC)Reply
Will HHVM be default? 74.102.35.98 (talk) 13:41, 16 July 2019 (UTC)Reply
Edits to English Wikipedia are still being tagged with "PHP7" and the link redirects to this page. Is this a historical page or just in need of updating? And if it's a historical page, is there a current page to link to?

Peter James (talk) 20:56, 21 July 2019 (UTC)Reply
This page covered the Beta Feature roll out, which ended in May.
Remaining work by the Core Platform and SRE Service Ops teams is tracked in https://phabricator.wikimedia.org/T219127. Jdforrester (WMF) (talk) 14:40, 22 July 2019 (UTC)Reply
Most edits are still being tagged with a link to it. Also when looking for information about it here should it return a page stating that PHP7 may be "obsolete and/or no longer supported"? Peter James (talk) 22:31, 22 July 2019 (UTC)Reply