[Solved] Admin-upgrade page not showing up


#1

I’ve just deployed my first Discourse instance with docker.
Everything seems to be working fine, except the admin/upgrade page, which shows up blank and has the following error:

Uncaught TypeError: Discourse._registerPluginScriptDefinition is not a function
    at docker-manager-vendor-4dd192655476ad4a9594bf218c3aab34ac1ad23cf54be7bb7174b6f475e67e86.js:1
Uncaught TypeError: Discourse._registerPluginScriptDefinition is not a function
    at docker-manager-app-05126b4030cfb026187ab683ad137e7eb9ce4d8cd69e33734d1d17cf2171f7eb.js:1

Any hint?


(cpradio) #2

How did you install Discourse? Sub-folder, sub-domain/domain?
Paste your app.yml plugin list


#3

@cpradio, thanks for your answer.

The instance is installed on the domain w|w|w.doc|u|ss.o|r|g (remove the pipes).

Here is the plugin list:

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git

But I have to say I’ve installed the Discourse Spoiler Alert plugin earlier, then uninstalled it. I found no doc about uninstalling a plugin, so I simply removed it from the yml file then ran ./launcher rebuild app again.


(Joshua Rosenfeld) #4

For future reference, no need to add random pipes to your domain. Linking to your site is useful when others are assisting with support issues, in fact we prefer it when users share their site link when they encounter issues like this.


#5

The pipes are for the link not to be indexed by Google, so that it doesn’t pollute search results for my (future) users.


(Jay Pfaffman) #7

I thought perhaps you were too new a user to be able to include a link in your post.

It’s difficult to imagine that a single link to your forum would lead people astray, but no need to worry. User links automatically have no-follow unless you’re trust level 3 or higher.


#8

I’m having the same problem after last update:


(David Taylor) #9

Hi @neso, the Discourse._registerPluginScriptDefinition is not a function error was fixed in Revert plugin js changes (#5139) · discourse/discourse@7d350d0 · GitHub last week.

In order to access the admin/upgrade page again, you’ll need to SSH into your server and run

cd /var/discourse
./launcher rebuild app

Here’s the topic from last week:


#10

It works, thanks a lot @David_Taylor.