This question about Configuration: Task filed

Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.

Hello,

Here is my installed Foswiki:

https://utopya.isteutopyaisg.com/bin/view/

When I tried to upgrade two plugins ("GenPDFWeasyPlugin" and "ImagePlugin") from "Configure"; something unusual happened and "Webs and Topics" of my platform is not accessible anymore. Here is the message I see just after login screen:
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.

Can't locate Cachepath in @INC (@INC contains: path . path path path path path path path)

When I tried to contact techical support team of my hosting provider they did their best to resolve my problem but they failed. According to them, please find below error log of the server:
Can't locate Foswiki/Plugins/WorkflowPlugin.pm in @INC (@INC contains: /home/isteutopyaisg/utopya/lib . /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /home/isteutopyaisg/utopya/lib/CPAN/lib) at (eval 124) line 2.
 at (eval 124) line 2.
    Foswiki::Plugin::BEGIN() called at (eval 124) line 2
    eval {...} called at (eval 124) line 2
    eval 'use Foswiki::Plugins::WorkflowPlugin
;' called at /home/isteutopyaisg/utopya/lib/Foswiki/Plugin.pm line 107
    Foswiki::Plugin::new('Foswiki::Plugin', 'Foswiki=HASH(0x3264118)', 'WorkflowPlugin') called at /home/isteutopyaisg/utopya/lib/Foswiki/Plugins.pm line 191
    Foswiki::Plugins::preload('Foswiki::Plugins=HASH(0x3264388)') called at /home/isteutopyaisg/utopya/lib/Foswiki/Plugins.pm line 81
    Foswiki::Plugins::new('Foswiki::Plugins', 'Foswiki=HASH(0x3264118)') called at /home/isteutopyaisg/utopya/lib/Foswiki.pm line 2120
    Foswiki::new('Foswiki', undef, 'Foswiki::Request=HASH(0x323b798)', 'HASH(0x31f55a0)') called at /home/isteutopyaisg/utopya/lib/Foswiki/UI.pm line 363
    Foswiki::UI::__ANON__() called at /usr/share/perl5/vendor_perl/Error.pm line 419
    eval {...} called at /usr/share/perl5/vendor_perl/Error.pm line 411
    Error::subs::try('CODE(0x23ef640)', 'HASH(0x332baa8)') called at /home/isteutopyaisg/utopya/lib/Foswiki/UI.pm line 500
    Foswiki::UI::_execute('Foswiki::Request=HASH(0x323b798)', 'CODE(0x30df5f8)', 'view', 1) called at /home/isteutopyaisg/utopya/lib/Foswiki/UI.pm line 326
    Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x323b798)') called at /home/isteutopyaisg/utopya/lib/Foswiki/Engine/CGI.pm line 100
    Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x2b79640)') called at view line 30
BEGIN failed--compilation aborted at (eval 124) line 2.

Please also note that " https://utopya.isteutopyaisg.com/bin/view/Main " is accesible just after login screen. I can see all of the created webs on the left side in "Main Web" but can not open them; above mentioned same error message appears.

Could you please help me to solve this error.

Thanks in advance.

-- İsteUtopya - 21 Dec 2019

Please also note that " https://utopya.isteutopyaisg.com/bin/view/System/WebHome " is also accessible just after login screen including the topics of System Web.

-- İsteUtopya - 21 Dec 2019

Unfortunately there is a new dependency in the ImagePlugin. See Tasks.Item14891 On Ubuntu you can install libcache-cache-perl. Not sure what other distributions use. The actual Perl dependencies are CPAN:Cache::Cache CPAN:Cache::FileCache and CPAN:Digest::SHA1 The latter is needed if Cache::Cache has not been patched to use the core Digest routine.

-- GeorgeClark - 22 Dec 2019

The above explanation couldn't solve my problem. Don't we have any other solution? There is no back up of my platform so that all of my data is not accessible, and suffering a lot. I strongly need the help of Foswiki developers.

-- İsteUtopya - 22 Dec 2019

No idea what's going on.

The first error you report:
Can't locate Cachepath in @INC (@INC contains: path . path path path path path path path)

Is clearly the missing dependency of Cache::Cache The same thing happened on my site and resolving it fixed my site.

The second error:
Can't locate Foswiki/Plugins/WorkflowPlugin.pm in @INC
appears to be something different. I don't see how installing an updated ImagePlugin or GenPDFWeasyPlugin would cause this issue.

You could try disabling WorkflowPlugin and/or ImagePlugin in your lib/LocalSite.cfg to try to get around the issue.

Also, when you install plugins, the installer takes a backup for you. The backups are located in your-site/working/configure/backup/ and are named with the plugin name and a date/timestamp of the backup. You should be able to use that file to restore older versions of the plugin.

-- GeorgeClark - 22 Dec 2019

I would like to let you know that we have installed the Cache::Cache Perl module. Also, Cache:: FileCache and Digest::SHA1“ modules are installed. After enabling our lovely ImagePlugin again; all of my images are viewable again.

Many thank goes to GeorgeClark and Timothy Legge.

-- İsteUtopya - 23 Dec 2019
 

QuestionForm edit

Subject Configuration
Extension ImagePlugin
Version Foswiki 2.1.4
Status Task filed
Related Topics Tasks.Item14891
Topic revision: r5 - 23 Dec 2019, İsteUtopya
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy