Roundcubeplugins 2.0.0 - Modules::Plugin::_call: Can't locate object method "factory" via package "Servers::cron"

  • Hi.I'm using the 1.3.6 version of imscp panel. I'm using Ubuntu 16.04
    I downloaded the new version of plugin "Roundcubeplugins". I loaded the new plug-in and during the update I get this error:
    Modules::Plugin::_call: Can't locate object method "factory" via package "Servers::cron" (perhaps you forgot to load "Servers::cron"?) at /var/www/imscp/gui/plugins/RoundcubePlugins/backend/RoundcubePlugins.pm line 94


    Can you help me?


    Kind Regards
    Danilo

  • @ndstyle


    Morning,


    Edit the /var/www/imscp/gui/plugins/RoundcubePlugins/backend/RoundcubePlugins.pm file and change line 34:


    Perl
    1. use Class::Autouse qw/ :nostat iMSCP::Database iMSCP::Dir iMSCP::File Servers::po iMSCP::Service Servers::Cron /;

    by


    Perl
    1. use Class::Autouse qw/ :nostat iMSCP::Database iMSCP::Dir iMSCP::File Servers::po iMSCP::Service Servers::cron /;

    There is a typo in package name Servers::Cron should be Servers::cron. Will be fixed in next RoundcubePlugins plugin version.


    Also: Don't forget to install php7.0-ldap package manually prior triggering plugin update retry.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @ndstyle


    About PHP package, I meant php7.0-ldap (on xenial) with i-MSCP 1.3.x Serie.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hi Nuxwin.


    Thanks for your reply.


    I made the changes you've shown me and now I get this error:


    Thanks very musch for your support!
    Danilo

  • @ndstyle


    Did you installed the php7.0-ldap package as stated in my previous answer?: apt-get update && apt-get install php7.0-ldap ?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @ndstyle


    Result of php /var/local/imscp/composer.phar --version ?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @ndstyle


    Please do:


    Shell-Script
    1. # rm /var/local/imscp/composer.phar


    Once done, rerun the i-MSCP installer with the -dc options

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206