maba Posted November 26, 2013 Author Share Posted November 26, 2013 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 More sharing options...
maba Posted November 26, 2013 Author Share Posted November 26, 2013 (edited) 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 November 26, 2013 by maba Link to comment Share on other sites More sharing options...
Soma Posted November 26, 2013 Share Posted November 26, 2013 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 Link to comment Share on other sites More sharing options...
maba Posted November 28, 2013 Author Share Posted November 28, 2013 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? 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 More sharing options...
maba Posted November 28, 2013 Author Share Posted November 28, 2013 Damn! The winner is.. ... .... ..... TextHelperDomain!! No longer used but in modules folder After I removed it MM works like a charm. Link to comment Share on other sites More sharing options...
Soma Posted November 29, 2013 Share Posted November 29, 2013 TextHelperDomain? You mean TextDomainHelper from my gists https://gist.github.com/somatonic/4520324 ? I'm not sure what this would have to do with the problems you have/had. ? Link to comment Share on other sites More sharing options...
maba Posted November 29, 2013 Author Share Posted November 29, 2013 Yes, sorry TextDomainHelper. I don't know Soma, removed it and MM works well. Now I removed ChromePHPLogger.. reinstalled it with TextDomainHelper.. and MM works well. I don't know Soma, I don't know. Link to comment Share on other sites More sharing options...
Soma Posted November 29, 2013 Share Posted November 29, 2013 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 More sharing options...
caffeineben Posted July 29, 2023 Share Posted July 29, 2023 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now