Question

I'm trying to use the template from http://jenkins-php.org in my installation of Jenkins. As soon as I go in to configure the project I get a grey screen appearing and the words 'Loading'

Jenkins & PHP-Template - Stuck on Loading

If I look in the Browser error console I get TypeError: 'undefined' is not an object (evaluating 'registry.get')

Has anyone else experienced this problem? How can this be fixed?

Was it helpful?

Solution

We had this problem when upgraded to 1.528.

Digging further, we found out that the problem is originated from one of the client-side script files called "hudson-behavior.js" and is caused by the "Publish Over SSH" plugin. There have been other plugins that have caused this in the past, as well. We couldn't disable the plugin anyway. So we searched further.

Long story short, we ended up changing the script for the time being. If you, like us, install Jenkins using the war file, then the script file is probably extracted and cached in "/var/cache/jenkins/war/scripts/hudson-behavior.js".

The following change we made was in a function called "registerValidator":

        if (depends==null) { // legacy behaviour where checkUrl is a JavaScript

           try {
              return eval(url); // need access to 'this', so no 'geval'
           } catch (e) {
              // set depends to an empty array.
              depends = [];
           }
        }

        var q = qs(this).addThis();

The URL may not always be valid. Thus, a try-catch is in order. Hope this helps!

OTHER TIPS

I've just had the same issue, I'm using version 1.523 of Jenkins on an Ubuntu server.

The solution I found was to manually edit the project config.xml file.

sudo vim /var/lib/jenkins/jobs/yourProjectName/config.xml

  • I had images in the description and I removed those leaving the description tag empty.
  • I also had an empty plot section which I removed completely from the publishers section.

After saving the config and going back to 'manage Jenkins' and then 'Reload Configuration from Disk' I then reopend my project and the config opened normally again.

I wasn't getting quite the same error message as you in the browser console to start with, but I hope that helps.

I too downgraded to 1.523 and then it worked... So it's obviously some bug introduced after 1.524.

Upgrading from 1.530 to 1.531 fixed it for me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top