Jump to content

"This page has no Process assigned." with lastest dev and some modules


maba
 Share

Recommended Posts

In the first post I try to output all vars interested in $url: all not installed modules are parsed and printed.

Only to confirm that is the $this->moduels->get call that generate my problems.

No problem, I'll disable MM for this site.

Probably a local problem but I can't find what.

Thanks

Link to comment
Share on other sites

This works:

if(substr($module->download_url,0,8) == 'https://' && !extension_loaded('openssl')) {
    $actions = 'no openssl installed!';
} else {
    if($action == 'edit') {
        $button = $this->modules->get('InputfieldMarkup');
        $url = "{$this->pages->get(21)->url}edit?name={$module->class_name}";
        $button->value = "<a href='$url' id='{$module->class_name}'>" . $this->_("edit") . "</a>";
    }
    else if($action == 'update') {
        $button = $this->modules->get('InputfieldMarkup');
        $url = "{$this->page->url}download/?url={$module->download_url}&class={$module->class_name}{$theme}";
        $button->value = "<a href='$url'$confirm id='{$module->class_name}'>" . $this->_("update") . "</a>";
    }
    // else if($action == 'download') {
    //  $button = $this->modules->get('InputfieldMarkup');
    //  $url = "{$this->page->url}download/?url={$module->download_url}&class={$module->class_name}{$theme}";
    //  $button->value = "<a href='$url'$confirm id='{$module->class_name}'>" . $this->_("download") . "</a>";

    // }
    else if($action == 'install') {
        $button = $this->modules->get('InputfieldMarkup');
        $button->value = "<button name='install' value='{$module->class_name}'>" . $this->_("install") . "</button>";
    }
    else if($action == 'not_install') {
        $button = $this->modules->get('InputfieldMarkup');
        $button->value = "<button name='not_install' disabled='disabled' value='{$module->class_name}'><s>" . $this->_("install") . "</s></button>";
    } 
    else {
        $button = $this->modules->get('InputfieldMarkup');
        $url = "{$this->page->url}download/?url={$module->download_url}&class={$module->class_name}{$theme}";
        $button->value = "<a href='$url'$confirm id='{$module->class_name}'>" . $this->_("download") . "</a>";
    }

    $actions = $button->render();
}

Only once!

Tests ended.

Edited by maba
Link to comment
Share on other sites

Hmm, not sure really. But the "edit" or "install" part works? Wouldn't make sense.

What you mean with "Only once!" ?

Here some more you could test.

1. make the getActions method public or protected instead of private.

2. try make the $this->modules->get('InputfieldMarkup'); => wire("modules")->get('InputfieldMarkup');

3. throw the computer out the window :P

Link to comment
Share on other sites

Edit and install actions works.

Remove "else if" and add the bottom "else" works only the first time. The next refresh generate the same "error".

1. Tested, same problem

2. Tested, same problem

3. Done. But.. how can test it now????:D

I'll mark di thread as solved.. and I'll open a new thread when I'll be able to repair my broken mac... ;)

Thanks

Link to comment
Share on other sites

TextDomainHelper is just a rough Helper module I did for some guy helping with finding translations in admin and not sure of any side effects.

I put TextDomainHelper.module in site/modules/ and it's still working. 

Then I installed it, along with ChromePhpLogger.module and I also get a timeout on ModulesManager. Other than what you mentioned but ok.

Little testing, it seems the ChromePhp::log() output in TextDomainHelper.module to output infos is causing trouble. So it looks like ChomePhp is the problem here but no idea what exactly or why, maybe something with loading files from assets.



Just can say that using ChromePhp logger in the admin (turned off in the module by default) works well with ModulesManager.



But glad you found out why it wasn't working, I don't think you need TextDomainHelper anyway. :)

Link to comment
Share on other sites

  • 9 years later...

Was having an issue with a module. Uninstalled it and installed it again. Then when I went to the page to add a new form I couldn't do anything. Said "no process assigned". This thread helped me realize that I could just find the page and reassign the process. Everything is working as a result. Thank you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...