Jump to content

Topic on Project:Support desk

Error after Upgrade 1.26 to 1.27

10
Ravelli67 (talkcontribs)

After upgrading from 1.26 to 1.27 my Wiki does not work anymore. Die Content is visible for a second and then it disappears. There are no php errors shown. In Chrome Developer Tools I see the javascript arrors on the picture attached..

The same happens if i import the database from this site in an new clean Wiki.

All extensions are disabled

php version: 7.0.13

10.1.19-MariaDB

MarkAHershberger (talkcontribs)

If your wiki is public, please link to it so we can see the problem.

Also, it looks like the problem is because you're depending on some js from de.wikipedia.org ... what happens if you remove that js?

Ciencia Al Poder (talkcontribs)

document.write is causing the page blank. It should not be used anymore on modern browsers!

Ravelli67 (talkcontribs)

Thanks for the reply.

Unfortunately the wiki is not public.

I made an xml dump from the DB and found the following entrys several times. Can you tell me how to remove them from the database?

})});</text>
      <sha1>m0bdi680shdhv6fk57f8siuc11u7p74</sha1>
    </revision>
    <revision>
      <id>1836</id>
      <parentid>1833</parentid>
      <timestamp>2013-12-02T15:56:55Z</timestamp>
      <contributor>
        <username>Username</username>
        <id>11</id>
      </contributor>
      <comment>Änderung 1833 von [[Special:Contributions/username|User]] ([[User talk:username|Diskussion]]) rückgängig gemacht. Geht nicht und braucht es auch nicht. Es gibt eine Wikitable Calls, die denselben Zweck erfüllt</comment>
      <model>javascript</model>
      <format>text/javascript</format>
      <text xml:space="preserve" bytes="2469">/* Das folgende JavaScript wird für alle Benutzer geladen. */
/* Typografie-Tool */

document.write('&#x3C;script type=&#x22;text/javascript&#x22; src=&#x22;'
 + 'http://de.wikipedia.org/w/index.php?title=Benutzer:Jowereit/typografie.js'
 + '&#x26;action=raw&#x26;ctype=text/javascript&#x26;dontcountme=s&#x22;&#x3E;&#x3C;/' + 'script&#x3E;');
/* Einfaches Signatur-Nachtragen */

document.write('&#x3C;script type=&#x22;text/javascript&#x22; src=&#x22;http' + '://de.wikipedia.org/w/index.php?title=User:lustiger_seth/unsigned.js' + '&#x26;action=raw&#x26;ctype=text/javascript&#x26;dontcountme=s&#x22;&#x3E;&#x3C;/script&#x3E;');

/* Sperrstatus von Seiten */ document.write('&#x3C;script src=&#x22;' + 'http://de.wikipedia.org/w/index.php?title=Benutzer:Stefan/Sperrstatus.js' + '&#x26;action=raw&#x26;ctype=text/javascript&#x22;&#x3E;&#x3C;/script&#x3E;');
MarkAHershberger (talkcontribs)

It looks like that may be in your MediaWiki:Common.js page.

Ravelli67 (talkcontribs)

Unfortunately i cannot edit this page using the wiki. Is it possible to change that in the Database directly?

MarkAHershberger (talkcontribs)

You should have an on-wiki user to do that. If you can edit the db, you can run createAndPromote.php to create an administrative user or give your user administrative privileges.

Ravelli67 (talkcontribs)

I have the administrative privileges and can edit the database. But i cannot do that Editing using the wiki page because it only shows blank pages.

MarkAHershberger (talkcontribs)

Turn off JS and you'll be able to edit the page.

Ravelli67 (talkcontribs)

Thank you very much. I removed the external links from the common.js. Now it is working again.