Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
After upgrade to Greebo, failed to open stream
Avatar
MaxDrown #1
Member since Sep 2012 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: After upgrade to Greebo, failed to open stream
After updating from Frusterick Manners to Greebo, am I getting these errors. I use WAMP with a virtual host pointing to a DropBox folder. WAMP uses PHP 5.6.25 and 7.0.10. I have no idea how to fix this.

( ! ) Warning: require(C:\Users\mdrown\Dropbox\Work\www\wiki/inc/Plugin.php): failed to open stream: No such file or directory in C:\Users\mdrown\Dropbox\Work\www\wiki\inc\load.php on line 110
Call Stack
#    Time    Memory    Function    Location
1    0.0011    401704    {main}( )    ...\doku.php:0
2    0.0026    509432    require_once( 'C:\Users\mdrown\Dropbox\Work\www\wiki\inc\init.php' )    ...\doku.php:34
3    0.1045    4744216    Doku_Event_Handler->__construct( )    ...\init.php:207
4    0.1099    4745352    plugin_load( )    ...\events.php:182
5    0.1099    4745352    Doku_Plugin_Controller->load( )    ...\pluginutils.php:45
6    0.1099    4745424    class_exists ( )    ...\plugincontroller.class.php:95
7    0.1099    4745424    spl_autoload_call ( )    ...\plugincontroller.class.php:95
8    0.1099    4745512    load_autoload( )    ...\plugincontroller.class.php:95
9    0.1110    4760168    require( 'C:\Users\mdrown\Dropbox\Work\www\wiki\lib\plugins\acl\action.php' )    ...\load.php:153
10    0.1111    4760168    spl_autoload_call ( )    ...\action.php:15
11    0.1111    4760256    load_autoload( )    ...\action.php:15
12    0.1117    4763088    require( 'C:\Users\mdrown\Dropbox\Work\www\wiki\lib\plugins\action.php' )    ...\load.php:110
13    0.1117    4763088    spl_autoload_call ( )    ...\action.php:15
14    0.1118    4763168    load_autoload( )    ...\action.php:15

( ! ) Fatal error: require(): Failed opening required 'C:\Users\mdrown\Dropbox\Work\www\wiki/inc/Plugin.php' (include_path='.;C:\php\pear') in C:\Users\mdrown\Dropbox\Work\www\wiki\inc\load.php on line 110
Call Stack
#    Time    Memory    Function    Location
1    0.0011    401704    {main}( )    ...\doku.php:0
2    0.0026    509432    require_once( 'C:\Users\mdrown\Dropbox\Work\www\wiki\inc\init.php' )    ...\doku.php:34
3    0.1045    4744216    Doku_Event_Handler->__construct( )    ...\init.php:207
4    0.1099    4745352    plugin_load( )    ...\events.php:182
5    0.1099    4745352    Doku_Plugin_Controller->load( )    ...\pluginutils.php:45
6    0.1099    4745424    class_exists ( )    ...\plugincontroller.class.php:95
7    0.1099    4745424    spl_autoload_call ( )    ...\plugincontroller.class.php:95
8    0.1099    4745512    load_autoload( )    ...\plugincontroller.class.php:95
9    0.1110    4760168    require( 'C:\Users\mdrown\Dropbox\Work\www\wiki\lib\plugins\acl\action.php' )    ...\load.php:153
10    0.1111    4760168    spl_autoload_call ( )    ...\action.php:15
11    0.1111    4760256    load_autoload( )    ...\action.php:15
12    0.1117    4763088    require( 'C:\Users\mdrown\Dropbox\Work\www\wiki\lib\plugins\action.php' )    ...\load.php:110
13    0.1117    4763088    spl_autoload_call ( )    ...\action.php:15
14    0.1118    4763168    load_autoload( )    ...\action.php:15
Avatar
MaxDrown #2
Member since Sep 2012 · 8 posts
Group memberships: Members
Show profile · Link to this post
Well, I downloaded the latest stable version, unzipped, and overwrote the files in my installation and everything is working now. Something didn't work with the update plugin.
Avatar
MaxDrown #3
Member since Sep 2012 · 8 posts
Group memberships: Members
Show profile · Link to this post
Then I removed old files, and my install is broken again.
Avatar
MaxDrown #4
Member since Sep 2012 · 8 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #1
Removing inc/plugin.php appears to be breaking my installation.

# removed in 2018-04-22
data/security.png
data/security.xcf
inc/EmailAddressValidator.php
inc/blowfish.php
inc/feedcreator.class.php
inc/lessc.inc.php
inc/plugin.php
lib/images/loading.gif
lib/tpl/dokuwiki/css/_search.css
vendor/easybook/geshi
vendor/phpseclib/phpseclib/composer.lock
Avatar
andi (Administrator) #5
User title: splitbrain
Member since May 2006 · 3503 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
The problem should be fixed in the upgrade plugin now.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
TP75 #6
Member since Apr 2018 · 9 posts · Location: Berlin
Group memberships: Members
Show profile · Link to this post
Unfortunately using the upgrade plugin today (25.04.2018) showed the same error after updating from an appropriate Frusterick Manners to the current Greebo. Furthermore the 'Remove outdated files' admin plugin should be updated, I presume.

I was able to repair our local dokuwiki by manually copying the lost Plugin.php file into the inc folder. You may notice the capital 'P' in the file name. As a workaround I manually downloaded an update copy from the dokuwiki.org project homepage and unpacked the tar archive to copy just the one file indentified.

The 'Remove outdated files' admin plugin was remaining at version Thu, 23 Mar 2017 18:43:12 +0000 after the update. I manually re-installed this plugin to the apparently current Wed, 25 Apr 2018 17:36:44 +0200 version, but the indicated source remains at 2017-02-03 which seems to be outdated.

However after the repair a test run of 'Remove outdated files' admin plugin shows:
a) the below quoted remove list
b) indicates just the file inc/plugin.php to be deleted in the long simulation listing of files.

# This is a list of files that were present in previous DokuWiki releases
# but were removed later. An up to date DokuWiki should not have any of
# the files installed

# removed in 2018-04-22
data/security.png
data/security.xcf
inc/EmailAddressValidator.php
inc/blowfish.php
inc/feedcreator.class.php
inc/lessc.inc.php
inc/plugin.php
lib/images/loading.gif
lib/tpl/dokuwiki/css/_search.css
vendor/easybook/geshi
vendor/phpseclib/phpseclib/composer.lock

# remove in 2017-02-19
...

Our local dokuwiki is based on a Mac OS X / macOS Sierra 10.12 Version 5.3.1 Server environment including Apache/2.4.28 (Unix) PHP/5.6.30 LibreSSL/2.2.7 configuration with HFS+ case insensitive file system. Considering https://www.macports.org/ for PHP 7 and more current Apache modules.

Last not least a big thanks and keep the good work please.
This post was edited 3 times, last on 2018-04-25, 18:48 by TP75.
Avatar
andi (Administrator) #7
User title: splitbrain
Member since May 2006 · 3503 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by TP75:
Unfortunately using the upgrade plugin today (25.04.2018) showed the same error after updating from an appropriate Frusterick Manners to the current Greebo. Furthermore the 'Remove outdated files' admin plugin should be updated, I presume.

Did the problem exist after running the upgrade plugin or after running the remove outdated files plugin? the latter is superfluous - that functionality is part of the upgrade plugin anyway.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
TP75 #8
Member since Apr 2018 · 9 posts · Location: Berlin
Group memberships: Members
Show profile · Link to this post
Subject: apparent issue with the upgrade plugin
Quote by andi:
Did the problem exist after running the upgrade plugin or after running the remove outdated files plugin? the latter is superfluous - that functionality is part of the upgrade plugin anyway.

Thanks for the immediate reply.

1) The problem with the missing Plugin.php exists after running the upgrade plugin. The upgrade plugin showed no failure messages and did complete with a misleading success message.

2) The remove outdated files plugin was run as a test simulation only (was mentioned above) and thus did not delete anything. The repair by adding manually the Plugin.php had happened before this test and the test would not have been possible without the repair due to an inaccessible dokuwiki installation. This was done intentionally to learn the results of the test simulation after upgrade and repair.

3) The upgrade plugin itself was not listed for an update in the admin plugin view. Explicitly re-installing the upgrade plugin after the upgrade and the repair did not update the source date of the upgrade plugin to a more recent date.

Hope this helps.
Avatar
andi (Administrator) #9
User title: splitbrain
Member since May 2006 · 3503 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Ah got it. There was indeed still a bug in my fix. It should work now. Could you try again?
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
TP75 #10
Member since Apr 2018 · 9 posts · Location: Berlin
Group memberships: Members
Show profile · Link to this post
Quote by andi on 2018-04-26, 00:23:
Ah got it. There was indeed still a bug in my fix. It should work now. Could you try again?

The 'Remove outdated files' plugin admin was indicated for update now. On Fri, 27 Apr 2018 09:39:35 +0200 I manually updated this plugin to the current version and the source is given as 2018-04-25 now.

However, running the remove outdated files plugin shows the same result as before (see https://forum.dokuwiki.org/post/60496) and wants to delete the inc/plugin.php file.

With the manually repaired Release 2018-04-22 "Greebo" a second update is impossible as there is no newer "Greebo" version available.

To my knowledge the inc/load.php file was part of the Release 2018-04-22 "Greebo" and references the inc/Plugin.php (capital P) which must not be deleted due to this reference. Why is the 'Remove outdated files' plugin from 2018-04-25 still the removeold plugin listing the inc/plugin.php for deletion?
This post was edited 2 times, last on 2018-04-27, 16:16 by TP75.
Avatar
andi (Administrator) #11
User title: splitbrain
Member since May 2006 · 3503 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I don't know about that plugin. Have you submitted a bug report to the plugin author?

I'm trying to fix the upgrade plugin here.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
TP75 #12
Member since Apr 2018 · 9 posts · Location: Berlin
Group memberships: Members
Show profile · Link to this post
Quote by andi:
I don't know about that plugin. Have you submitted a bug report to the plugin author?

I'm trying to fix the upgrade plugin here.

I stand corrected and please accept my apologies. I misunderstood an earlier remark by you and just forgot that Remove outdated files is not an embedded function of the DokuWiki Upgrade Plugin but an extra plugin named removeold instead.

I note the a.m. issue as solved and will try to contact the author of the (rather outdated?) removeold plugin instead.

NB:

IMHO the removeold plugin has a dependency to the official update of dokuwiki and Github https://raw.githubusercontent.com/splitbrain/dokuwiki/stab….

Please be aware that is the first discrepancy between the removal list and the required files of an upgrade I am aware of since a long time. Thus it may nevertheless be good to ensure that the inc/plugin.php file is not deleted by either the current Release 2018-04-22 "Greebo" update package nor the DokuWiki Upgrade Plugin.

Anyway filed as issue #5 for the removeold plugin at https://github.com/Taggic/removeold/issues/5.

BTW you andi may have a look at https://github.com/Taggic/removeold/issues/3 as you seem to be the author of that remaining issue there.

Thank you very much and I will rest my case here. Your fix apparently solved the major issue and I will use it for updates of other dokuwiki sites now.
This post was edited 2 times, last on 2018-04-27, 16:12 by TP75.
Avatar
dokojo #13
Member since Apr 2018 · 6 posts
Group memberships: Members
Show profile · Link to this post
inc/plugin.php [sic] is on a line in data/deleted.files of Greebo. I might be wrong, but to me it seems, this line is wrong, and fixing the Updater plugin(s) seems to me to address the issue at the wrong location?
Avatar
andi (Administrator) #14
User title: splitbrain
Member since May 2006 · 3503 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
https://github.com/splitbrain/dokuwiki/issues/2328#issueco…
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-12-14, 08:52:25 (UTC +01:00)