[dokuwiki] Re: plugincontroller.class.php broken for me

  • From: Werner Flamme <werner.flamme@xxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 12 Apr 2010 13:12:06 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Gohr [11.04.2010 11:53]:
>> for several days I was unable to upload my newest DW (from git) to my
>> internet site. Now I did - and I don't get any pages shown, since I
>> receive a "Fatal error: Call to undefined method
>> syntax_plugin_translation::isSingleton() in
>> /inc/plugincontroller.class.php  on line 69".
> 
> Are you sure you're using a most recent git pull? isSingleton should
> be implemented in the base class for syntax plugins.

Hi Andi,

yes, I am sure. I did a "git pull" before uploading it, and I got an
"Already up-to-date.". Unfortunately, my computer's power supply broke
down, so I can't look at the original data.

Now I just downloaded the whole Site on my office PC, and a "grep -rni
'function issingleton' ." gives this result:

./inc/parser/renderer.php:57:    function isSingleton() {
./inc/plugin.php:238:    function isSingleton() {

whereas in a fresh checked out version of DW i get:

./inc/parser/renderer.php:57:    function isSingleton() {
./inc/plugin.php:238:    function isSingleton() {
./lib/plugins/syntax.php:274:    function isSingleton() {

Which of those files is the base class for syntax plugins? I think it is
lib/plugins/syntax.php, but there is no "function isSingleton" in my file.
This might be because of the .gitignore file, where I see (among others)
a line that reads /lib/plugins/* - so syntax.php might never be updated.
The .gitignore file - including this line - is created by git when I do
the "git clone git://github.com/splitbrain/dokuwiki.git" as mentioned on
<http://www.dokuwiki.org/devel:git>. So, I will never have an up to date
version of the files inside lib/plugins/ "out of the box" :-(

Now I did the update - took Midnight Commander and copied all files (and
dirs) from lib/plugins and copied them to my site's dir, when the size
was different - and there were many files copied...

Regards,
Werner

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkvDAAYACgkQk33Krq8b42O8lACeO/lDVJhfdjE6ok2uSF8SnnH2
NM8AnRZD8TrH5cX0U0/PNWiA3CmsX7jm
=sezH
-----END PGP SIGNATURE-----
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: