moinwiki / moin-1.9

MoinMoin Wiki (1.9, also: 1.5a ... 1.8), stable, for production wikis
https://moinmo.in/
Other
140 stars 51 forks source link

moin 1.9.11 renders pages differently than 1.9.10 #77

Closed robertosussex closed 3 years ago

robertosussex commented 3 years ago

Hi there,

I am testing a moin moin server 1.9.11 created with Centos7+Apache 2.4 using the data from Centos6+moin 1.9.10 + Apache 2.2. I was able to make it work copying the data across. However, the pages are rendered differently image

(old version)

image image image

(New version)

=======================================

Any idea where to start from to troubleshoot this?

Many thanks

Dr Roberto Scipioni MPS Research Computing Support Engineer

ThomasWaldmann commented 3 years ago

looks like your CSS is not getting loaded.

check HTML source for CSS URLs.

Check wiki config for url_prefix_static or so.

robertosussex commented 3 years ago

Hi,

What do I put in (in my farmconfig.py)?

===================== . . **# If you run your wiki script at /mywiki, you need to use this:

url_prefix_static = '/mywiki' + url_prefix_static

url_prefix_static '/moinstatic1911'****

. .

Not sure I understand fully what to put as " url_prefix_static"

Please advice

Roberto

ThomasWaldmann commented 3 years ago

Check the CSS URLs you see in the generated HTML (in Firefox, press Ctrl-u). This comes from the url_prefix_static which moin is using to generate the CSS URL (and also URLs for icons and other static files, esp. for the themes).

Also check the apache configuration for the URL where you serve that CSS (the static files of moin themes).

Both have to match, so moin generates URLs that actually work and are served by your web server.

robertosussex commented 3 years ago

So on the original site ctrl-u image in the file farmconfig.py image in the file /etc/httpd/conf.d/epp.conf image

The new server ctrl-u image the file farmconfig.py same as the other image From file moin.wiki.epp-https.conf

==============

Am I missing something ?

Many thanks

Roberto

ThomasWaldmann commented 3 years ago

You didn't show where you serve the URL /moin_static1911.

What happens if you click on the CSS url in the source view?

robertosussex commented 3 years ago

On the old server clicking for instance on

gives image

On the new one clicking on ...

gives something different image

================

I am not sure I can make any sense of this :-(

R.

robertosussex commented 3 years ago

image

in the first case

image

in the second case

robertosussex commented 3 years ago

Apparently adding url_prefix_static='/moin_static1911' to farmconfig.py did it! In the version 1.9.10 that command is not there! Any reason for that is this a new option

robertosussex commented 3 years ago

Any reason for that ? Is this a new option? Anyway. It is working now.

Lessons to take home

Moin 1.9.11 + Apache 2.4:

1) Add Apache permission to /moin/server

2) Add url_prefix_static='/moin_static1911' to farmconfig.py ot wikiconfig.py

As far as I could see these two things were NOT required in version 1.9.10 (Apache 2.2)

Many thanks

Roberto Scipioni MPS Research Computing Support Engineer Mathematical and Physical Sciences School University of Sussex, Falmer, Brighton UK Roberto

ThomasWaldmann commented 3 years ago

url_prefix_static exists since ages. i am currently not aware of any changes in its functionality, but i'll check.

ThomasWaldmann commented 3 years ago

https://github.com/moinwiki/moin-1.9/blob/1.9.11/MoinMoin/config/multiconfig.py#L1048 see comment there.

https://github.com/moinwiki/moin-1.9/blob/1.9.11/MoinMoin/config/__init__.py#L41

https://github.com/moinwiki/moin-1.9/blob/1.9.11/MoinMoin/version.py#L19

ThomasWaldmann commented 3 years ago

So, what you set in your config should be the default (see code urls) anyway.

robertosussex commented 3 years ago

So I may have just gotten confused 😀 Thanks for your help Roberto


From: TW @.> Sent: 07 May 2021 14:38 To: moinwiki/moin-1.9 @.> Cc: Roberto Scipioni @.>; Author @.> Subject: Re: [moinwiki/moin-1.9] moin 1.9.11 renders pages differently than 1.9.10 (#77)

So, what you set in your config should be the default (see code urls) anyway.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/moinwiki/moin-1.9/issues/77#issuecomment-834398548, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI5LMGXHK3HCXWXQVT4EACLTMPUMFANCNFSM44GCOL2A.

robertosussex commented 3 years ago

I think we can close this ticket now Many thanks Roberto