Announcement

#1 2020-10-05 14:38:13

zeltus
Member
2019-10-17
13

Multiple admin errors, inc. missing checksums

Hello/Hi/Greetings,

I'm having fun and games trying to get my site working. It was. Now it isn't. Not properly anyway.

Editing photos - Linked albums, Album thumbnail, Keywords,
                             all just show an unusable up- and down-arrow symbol
Viewing photos - the full-screen option doesn't work
All pages -  The top-right tools icon doesn't do anything
Photos - batch manager - shows 983 checksums to add, but "compute missing checksums" doesn't do anything

I've seen older posts hinting this might be some sort of js error. But I consistently get this on all browsers I've tried it on - gotta be a server-side issue then, shurelee?

Any help/advice gratefully received :-(

Thanks

Bill
                 


Piwigo version: 2.10.2
PHP version: 7.2.24
MySQL version: 14.14
OS: Ubuntu 19.04
Piwigo URL: http://zeltus.fun

Offline

 

#2 2020-10-05 14:47:21

erAck
Only trying to help
2015-09-06
2026

Re: Multiple admin errors, inc. missing checksums

That's probably all broken by the CSP you set:

Code:

Content-Security-Policy: default-src 'self'; font-src 'self'; img-src 'self' s7.addthis.com; script-src 'self' s7.addthis.com

which doesn't allow pretty much portions of Piwigo to execute but likes addthis.com ...


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2020-10-05 15:03:04

zeltus
Member
2019-10-17
13

Re: Multiple admin errors, inc. missing checksums

Thanks! I remember setting this fairly urgently some time ago when a security company contacted me. Almost certainly I used a very-secure setting without bothering to test much thereafter.

I'll report back if changing it fixes anything. Or not. :-)

Offline

 

#4 2020-10-05 15:04:35

erAck
Only trying to help
2015-09-06
2026

Re: Multiple admin errors, inc. missing checksums

Fwiw, here's mine for Apache .htacess in Piwigo's directory, whether that suits your needs or allows too much or too little is up to you. It's the basic set needed to make Piwigo fully functional including its admin code.

Code:

<IfModule mod_headers.c>
    # Several elements don't work without 'unsafe-inline'.
    # Piwigo user editor doesn't work without script-src 'unsafe-eval'.
    # Piwigo theme screenshot previews in img-src.
    # Piwigo VideoJS needs font-src data: and media-src 'self'.
    Header set Content-Security-Policy " default-src 'none'; connect-src 'self'; font-src 'self' data:; img-src 'self' data: https://piwigo.org; media-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-ancestors 'self'; base-uri 'self'; form-action 'self'"
</IfModule>

If you also want the tools/ws.htm to be functional then append this to the CSP in tools/.htaccess:

Code:

script-src https://cdn.jsdelivr.net/tiptip/1.3/ https://code.jquery.com/jquery-1.9.1.min.js; style-src https://cdn.jsdelivr.net/tiptip/1.3/

(whether that works for you in a Header append directive or you have to use Header set repeating all the above and adding these depends on the Apache version)


Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2020-10-05 15:08:53

erAck
Only trying to help
2015-09-06
2026

Re: Multiple admin errors, inc. missing checksums

zeltus wrote:

a very-secure setting

I wouldn't call anything secure that allows all shit from addthis.com


Running Piwigo at https://erack.net/gallery/

Offline

 

#6 2020-10-05 15:16:11

zeltus
Member
2019-10-17
13

Re: Multiple admin errors, inc. missing checksums

Aaahhh, well, I did say I did it in a hurry :-) - must go back and look at my t'other website to see why I did that...

Thanks for the examples, much appreciated.

Offline

 

#7 2020-10-05 15:29:52

zeltus
Member
2019-10-17
13

Re: Multiple admin errors, inc. missing checksums

Looking good.

CSP is a new thing for someone as old school as me, I'm still unclear as to what (your) directive is doing, but as this is pretty much a server/website dedicated to piwigo, I'm happy to trust you :-)

But I do have to do some homework on this so's I understand and can recognise this sort of issue if I see it again elsewhere.

Who knows, I might be able to answer a forum question eventually! :-)

Again, many thanks.

Bill

Offline

 

#8 2020-10-05 17:10:41

erAck
Only trying to help
2015-09-06
2026

Re: Multiple admin errors, inc. missing checksums

You can find some pointers related to CSP there if you want.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact