Jump to content

Modules Manager


Soma

Recommended Posts

The "fix" is just for something that is shown when debug mode on. I see, but you can actually grab that new module from github and upload it manually. Rare case, and I update minor version usually.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Hello and thanks for the nice ModulesManager module.

I'm running into a problem after deploying the site on the live server. When I open ModulesManager I get this error:

TemplateFile: cannot read cache file /is/htdocs/.../site/assets/cache/ModuleManager.cache

The file is there and its permissions are set to 640 so it should be readable by PW.

Any idea what might be the cause?

Thank you

gerhard

Link to comment
Share on other sites

  • 3 weeks later...

Hi. I just ran into an odd problem, not sure what happened:

First I updated a few modules using a previous modules manager version without any problem.

Then I updated the teppokoivula-ProcessLoginHistory with modules manager. After that the whole site was out and I got this E-Mail error notification:

Compile Error: Cannot redeclare class ProcessLoginHistoryHooks (line 22 of /xxx/xxx/xxx/xxx/site/modules/ProcessLoginHistory/ProcessLoginHistoryHooks.module)

(xxx = server specific, my server)

I don´t know whether the problem here was caused by the module itself or the modules manager. I fixed it by replacing teppokoivula-ProcessLoginHistory with the previous version from my local install.

Now I don´t know if this is related, but after that I updated modules manager itself. Now it shows me "new version available!" messages for modules I´ve just previously updated, but there are no update-links for any modules, as there were before.

It is not a serious problem for me, as this is a test-install and of course I can update in the traditional way, but I wonder what might be the problem...

Link to comment
Share on other sites

@Joe: could you provide the version numbers of ProcessLoginHistoryHooks that a) work for you and b) don't work? I'm not aware of any issues related to it, but I'd still like to make sure..

Edit: you mentioned "teppokoivula-ProcessLoginHistory" in your post above. Are you just referring to the module with this name or is this an actual directory in your /site/modules/?

Just making sure, 'cause having one module in two locations (such as /site/modules/teppokoivula-ProcessLoginHistory/ and /site/modules/ProcessLoginHistory/) would definitely cause this kind of issue.

Edited by teppo
Link to comment
Share on other sites

Hi teppo, thanks for the quick reply :)

well, the folder in site/modules is "teppokoivula-ProcessLoginHistory-11af3f7" now. This is after the update, but I actually see in a previous install, that it is called the same there. No, there are not two folders for this module in the modules folder.

EDIT:

I boldly went ahead and tested updating Modules Manager on another version of my PW site... That went without a hitch.

After that I updated the ProcessLoginHistory module again, using Modules Manager and bang, the site was down again! Then I erased the ProcessLoginHistory module folder manually and de-installed the module: the site is working again.

Now I have installed the LoginHistory module, using Modules Manager, the install went without a problem and the LoginHistory module works.

To me there is no problem left and all I can say is that apparently there are circumstances under which an update of the LoginHistory module using Modules Manager fails, whereas a new install works. And when the update fails the site goes down completely (which I guess is of concern for future users, especially on a production site). By the way, the first occurrence was under the latest stable version, the second under one of the latest dev versions.

So it probably will be hard to pinpoint the problem. Anyway, both the ProcessLoginHistory module and the Modules Manager are good modules and seem to be working well! ^-^

Edited by Joe
Link to comment
Share on other sites

These problems may arise when installing a module manually and then updating using modules manager. This mostly has to do with folder naming of the module. MM takes class name entered on modules directory so it's possible you named the folder different when manually installing a module. Not sure there is a good way to prevent that but if you install modules explicit with mm only this shouldn't be a problem.

  • Like 1
Link to comment
Share on other sites

Thanks, Soma, this is what happened, I´m almost sure. Anyway, as I wrote above, I have been easily able to fix the issue and to me it´s not a problem now. Maybe it might be good to include the above information with the module somewhere.

Link to comment
Share on other sites

@soma

here are some upgrades for strings (translatable). Maybe better use some variables for repeating strings (like: 'more', 'installed: ') ?

line 239:
	$status = $this->_('found: ') . $local_version;

line 248:
	$status = '<span class="ui-state-installed">' . $this->_('installed: ').$local_version.'</span><br/>';
	$status .= '<span class="ui-state-update">' . $this->_('new version available!').'</span><br/>';

line 254:
	$status = '<span class="ui-state-installed">' . $this->_('installed: ').$local_version.'</span>';

line 284:
	$pretext = '<p>'.$this->_('Modules found on modules.processwire.com (').$count.') </p>';

line 498:
	return $this->_('(uninstallable)').'<br/><a href="'.$module->url.'" target="_blank" title="'.
	$this->_('Uninstallable with Modules Manager').'">'.
	$this->_('more').'</a>';

line 541+1:
	$actions = "<button name='install' value='{$module->class_name}'>" . $this->_("install") . "</button>";

line 543+1:
	$actions = '<a href="'.$module->url.'" target="_blank" title="'.$this->_('No download URL found').'">'.
	$this->_('more').'</a>';
  • Like 1
Link to comment
Share on other sites

I'm proud to announce a "major" update to 2.0.0.

I spent most of the weekend to make some changes, that makes it more convenient to browse, download, update, install and edit module from within ModulesManager.

Change log 2.0.0

  • added jQuery DataTables to list modules. This enables convenient browsing with pagination, live search filter and sorting. State saving via cookies is enabled so if you come back it shows the table how you left it.
  • added iframe modals for download, update, edit and install links. So you can now install modules without leaving the ModulesManager page. This is using Magnific lightbox by default, if installed, otherwise it will take the older Fancybox.
  • some more translations added

Update Note: This version requires you to install JqueryDataTables module before you will be able to use the new 2.0.0.

I hope I haven't forgot something on the way. My tests so far went well and everything still works as before, just a little more awesome ;)

Thanks and enjoy the rest of the weekend.

post-100-0-87843500-1390163025_thumb.png post-100-0-59468300-1390168822_thumb.png

post-100-0-30830700-1390168828_thumb.png post-100-0-27769200-1390168834_thumb.png

post-100-0-44923300-1390168839_thumb.png

  • Like 6
Link to comment
Share on other sites

Hey Soma this sounds great, but I just installed JQueryDataTables which installed fine, but then I went to upgrade the ModulesManager and got this error:

Warning: chmod(): Operation not permitted in xxx/wire/core/Functions.php on line 187

and this message whenever I try to open the modules manager:

ModulesManager: ModulesManager requires 'JqueryDataTables' module since version 2.0.

Any ideas?

Link to comment
Share on other sites

if(!$this->modules->isInstalled("JqueryDataTables")){
    $this->error($this->_("ModulesManager requires 'JqueryDataTables' module since version 2.0."));
    return;
}
 

The one who can read is clearly advantaged :P

  • Like 1
Link to comment
Share on other sites

There's no old and new one.

DataTables was a proof of concept integrating it in a admin page. It included the jQuery DataTables plugin, but unfortunately it may wasn't a good way to.

JqueryDataTables is a js module like Fancybox. It is a "integration" of the jquery plugin for developers to use datatables in their modules. It won't be loaded unless you do so. An example would be the ModulesManager. :)

They can coexist if you will.

Link to comment
Share on other sites

@Soma...maybe you want to make the above clearER in the JqueryDataTables thread?  ;)

I thought I did. But maybe a clarification wouldn't hurt. Also I'm maybe going to delete the DataTables module..

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
×
×
  • Create New...