Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moin 1.9.11 renders pages differently than 1.9.10 #77

Closed
robertosussex opened this issue May 6, 2021 · 14 comments
Closed

moin 1.9.11 renders pages differently than 1.9.10 #77

robertosussex opened this issue May 6, 2021 · 14 comments
Labels
question Further information is requested

Comments

@robertosussex
Copy link

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
Copy link
Member

ThomasWaldmann commented May 6, 2021 via email

@robertosussex
Copy link
Author

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 '/moin_static1911'_****

.
.

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

Please advice

Roberto

@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented May 6, 2021

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.

@ThomasWaldmann ThomasWaldmann added the question Further information is requested label May 6, 2021
@robertosussex
Copy link
Author

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
Copy link
Member

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
Copy link
Author

On the old server clicking for instance on

gives ![image](https://user-images.githubusercontent.com/37402138/117373205-b3e5c380-aec2-11eb-99e3-5fb9704fe38a.png)

On the new one clicking on ...

gives something different ![image](https://user-images.githubusercontent.com/37402138/117373290-dd065400-aec2-11eb-8298-35fefb596b46.png)

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

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

R.

@robertosussex
Copy link
Author

image

in the first case

image

in the second case

@robertosussex
Copy link
Author

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
Copy link
Author

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
Copy link
Member

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

@ThomasWaldmann
Copy link
Member

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

@robertosussex
Copy link
Author

robertosussex commented May 7, 2021 via email

@robertosussex
Copy link
Author

I think we can close this ticket now
Many thanks
Roberto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants