I see your message was sent 2 weeks ago but apparently was held for moderation, and I only got it now.

Thanks for trying it and for the detailed report. I did some tests with a more recent version of Worse on a new empty wiki.

I added the PmWikiFr group pages, enabled uploads, UTF-8 and French language, and included worse.php:

  $EnableUpload = 1;
  $DefaultPasswords['upload'] = pmcrypt('admin');

  include_once("$FarmD/scripts/xlpage-utf-8.php");
  XLPage('fr','PmWikiFr.XLPage');

  include_once("$FarmD/cookbook/worse.php");
  $DefaultPageTextFmt = "(:worse:)(:worseend:)\n";

It appears to work as expected - editing, uploading (when authenticated), creating a new page. Even some of the Worse labels are translated into French (Éditer, Résumé, Auteur, Enregister, Abandon; not all => to do).

In your config.php, I don't see Worse included -- I assume it is included from either local/MonWiki.php or from config-local.php?

Can you try with the latest version of Worse, and report. Does it work if you include it from config.php, and do not include config-local.php?

Petko

P.S. Today I've fixed an unrelated bug in Worse. There is also a newer PmWiki version, but Worse should work with the previous 2.2.101 version as well.

--
PmWeekly Blog  :  http://www.pmwiki.org/News
If you upgrade :  http://www.pmwiki.org/Upgrades


On 2017-07-31 19:15, Patrice PELLE wrote:
Hello
It does not work on my new installation. I try the test page and it
works (great job by the way). Here is what happens :




As ou can see, the page is blank and there is no extra « edit » on the
right. even though I added manually the (:worse:) (:worseend:)


A search for « essai » shows only pages contained in PmWikiFr


The page is saved and here is it’s content :

version=pmwiki-2.2.100 ordered=1 urlencoded=1
agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:54.0)
Gecko/20100101 Firefox/54.0
author=admin
charset=ISO-8859-1
csum=
ctime=1501520728
host=::1
name=MonWiki.Accueil
rev=1
targets=
text=(:worse:)%0aessai%0a(:worseend:)
time=1501520728
author:1501520728=admin
diff:1501520728:1501520728:=1,3d0%0a%3c (:worse:)%0a%3c essai%0a%3c
(:worseend:)%0a\ No newline at end of file%0a
host:1501520728=::1

pmwiki : 2.2.101
worse : latest

OS : mac OS 10.12.5
server : MAMP 4 latest version
php : 7.1.6
firefox : 54.0.1

Here is my config file :

<?php if (!defined('PmWiki')) exit();
$WikiTitle = "My New Wiki";
//$PageLogoUrl = "http://example.com/mylogo.gif";;

# Uncomment these if needed
#$ScriptUrl = 'http://example.com/pmwiki/pmwiki.php';
#$PubDirUrl = 'http://example.com/pmwiki/pub';

$DefaultPasswords['admin'] = pmcrypt('admin');

$EnableUpload = 1;
// $EnableUpload = 0; does not work either
$DefaultPasswords['upload'] = pmcrypt('admin');

include_once("scripts/xlpage-utf-8.php");
$DefaultPageCharset = array(''=>'ISO-8859-1');


include_once("config-local.php"); this is the internationalization
file (French), no more, no less

the cookbook file contains only worse.php
I put the Worse file in the pub directory as required

_______________________________________________
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to