Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profit organisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

PDF not appearing on item page in Slides

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
slides
28 Antwoorden
15037 Weergaven
Avatar
andy graybeal

My PDF shows up on front of the Public Slides, and in the Menu for the public slides.  It doesn't show up when I'm on the page for the actual PDF though.

It's fine here: https://nixtamalized.com/slides

and it's fine here: https://nixtamalized.com/slides/public-channel-1

but not here: https://nixtamalized.com/slides/slide/knivesandchives-llc-receipt-1

How do I fix this?


Thank you!

1
Avatar
Annuleer
Avatar
Otniel Pesel
Beste antwoord

You can just add the following line in the <head> section of your website:

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"/>
This fixed it for me.
2
Avatar
Annuleer
Thanadet Rattanadilok Na Phuket

thank you try many thing but this solution work for me just edit

web.layout

Marius Pana

indeed many thanks!

Avatar
Ermin Trevisan
Beste antwoord

 https://www.odoo.com/de_DE/groups/community-59/community-13327850?mode=thread 

It looks like you have the same problem I do (see https://www.odoo.com/de_DE/forum/hilfe-1/question/8-0-website-slides-uploading-a-presentation-keeps-loading-forever-93332).

If you look into your console in the browser's development tools you see the following:

Blocked loading mixed active content "http://www.twanda.ch/slides/embed/6?page=1"[Learn More]

This is because the PDF is loaded from a http link instead of an https link. So far I have no idea how to correct this. My system parameter web.base.url is properly set to https.


Solution:

In the configuration of your virtual host on your proxy server the following parameter must be set:

(Apache version)

RequestHeader set "X-Forwarded-Proto" "https" 

See examples here:

https://www.odoo.com/de_DE/groups/community-59/community-13327850?mode=thread 

2
Avatar
Annuleer
andy graybeal
Auteur

Thank you for the response! I will look at my browsers dev console.

andy graybeal
Auteur

Okay. Chrome says this: knivesandchives-llc-receipt-1:414 Mixed Content: The page at 'https://nixtamalized.com/slides/slide/knivesandchives-llc-receipt-1' was loaded over HTTPS, but requested an insecure resource 'http://nixtamalized.com/slides/embed/1?page=1'. This request has been blocked; the content must be served over HTTPS. Firefox says this: Blocked loading mixed active content "http://nixtamalized.com/slides/embed/1?page=1"[Learn More]

andy graybeal
Auteur

Ermin, Where do I find the system parameter website.url ? I bet I haven't set it to https. Is it under "Website Admin" -> "Configuration" -> "Website name" ? I have this set to "nixtamalized.com", and neither http or https

andy graybeal
Auteur

I found a setting under "General Settings" with "Website" and it was configured "http://nixtamalized.com" so i changed that to https

Ermin Trevisan

But, in my case at least, it does not help...(I have deleted the PDF and uploaded it anew).

Ermin Trevisan

I get a new error: UnexpectedResponseException: Unexpected server response (301) while retrieving PDF "https://www.twanda.ch/slides/slide/7/pdf_content"

andy graybeal
Auteur

that didn't change anything. i uploaded a new pdf and that didn't work. PNG's appear to be working though! I can make my PDFs into PNGs for now.

andy graybeal
Auteur

Under "Website Admin" -> "Slides - Channels" -> "Public Channel" -> each message that logs what i've done in this Slide Channel has http and not https for the item.

Ermin Trevisan

I'm still trying to find a way, but I suppose it is a bug, in version 9.0 it works flawlessly. It is also not possible to create a slide in the backend, this results in a 500 server error :-(

andy graybeal
Auteur

I'm on version 9 :(

andy graybeal
Auteur

Where exactly is the system parameter website.url ?

Ermin Trevisan

Well, you are right, in my case it only works for 9.0 because it is a test server, which is not yet SSL secured. You can find the parameter web.base.url under Settings/Technical/Parameters/System Parameters. You need to activate the developer mode in order to access these settings.

Ermin Trevisan

Maybe this could point to a solution: https://github.com/mozilla/pdf.js/issues/6446

andy graybeal
Auteur

Ermin, You are the best!! That fixed it right up. Changing web.base.url to be https!!

andy graybeal
Auteur

My nginx configuration already has that setting in it -- here it reads in nginx: location / { proxy_pass http://openerp; # force timeouts if the backend dies proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_redirect off; # set headers proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; }

Ermin Trevisan

Your site still tries to load from http:// instead of https://. So I assume that something in your proxy conf does not work properly. Try to check with other nginx configurations on the internet. I have Apache and after the change in my virtual hosts configuration, a restart of Apache and a reload of the website it worked immediately and all contents are now loading from https://.

Ermin Trevisan

I don't know how it could make a difference, if any, but I have dbfilter activated in my odoo-server.conf and installed the module https://www.odoo.com/apps/modules/8.0/dbfilter_from_header/

Ermin Trevisan

Andy, just a stupid question (but I had a conversation with somebody, who had this problem): have you set "proxy_mode = True" in your Odoo config file?

Avatar
Lucas Huber
Beste antwoord

Solution for NGINX:

    location / {      
    proxy_pass http://moneygrid-net;       
    # force timeouts if the backend dies     
     proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
     proxy_redirect off;
     # set headers
     proxy_set_header Host $host;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header X-Forwarded-Host $host;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     proxy_set_header X-Forwarded-Proto $scheme;

}

1
Avatar
Annuleer
Avatar
Gustavo Almeida
Beste antwoord

I went to parameter website.url under "Website Admin" -> "Configuration" -> "Website name" ? and updated to https.

Fixed the issue for Firefox, but still does not load pdfs using Chrome.

Please help. Thanks

0
Avatar
Annuleer
Avatar
andy graybeal
Auteur Beste antwoord

well, i spoke to soon.. it is acting differently.  it shows the PDF on the item page now.  It also still throws a warning about Mixed Content and how it still wants to show an http bound file.

I also have a display widget showing that it is "loading".. i'm assuming indefinetly because it is still "loading" after some time.

When I click on the "full screen" button, it only shows me what is in the item preview display, not the whole document.


hmm i didn't mean to post like this.

0
Avatar
Annuleer
andy graybeal
Auteur

Chrome's error message is now: Mixed Content: The page at 'https://nixtamalized.com/slides/embed/6?page=1' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://nixtamalized.com/slides/slide/ein-number-6/pdf_content'. This request has been blocked; the content must be served over HTTPS. 6:1 Uncaught (in promise) UnexpectedResponseException {name: "UnexpectedResponseException", message: "Unexpected server response (0) while retrieving PD…s://nixtamalized.com/slides/slide/6/pdf_content".", status: 0}

Ermin Trevisan

Andy, see my last comment, it seems to be a CORS (Cross Origin Ressource Sharing) issue. Besides the link I have already posted in this comment, this one should be helpful also: https://awesometoast.com/cors/ But I was not successful so far...

Ermin Trevisan

I GOT THE SOLUTION!!!! Forget about CORS. You need to set the RequestHeader set "X-Forwarded-Proto" "https" in your virtual host conf in your proxy server, see the following sample for Apache: https://www.odoo.com/de_DE/groups/community-59/community-13327850?mode=thread

Avatar
Matthew R Olden
Beste antwoord

I am experiencing nearly the same problem but on v11 CE.  Posted problem separately to this forum but no one is providing any suggestions.  https://www.odoo.com/forum/help-1/question/slides-module-not-showing-slides-cors-errors-126741 

0
Avatar
Annuleer
Avatar
Mohanraj
Beste antwoord

I GOT THE SOLUTION

Goto the Settings -> Activate Developer Mode -> Technical Menu -> Parameters -> System Parameters ->   "web.base.url" Field Value Changed "http://" to "https://"

0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
Slides and PDF Opgelost
slides
Avatar
Avatar
Avatar
3
mrt. 24
14232
Deleting a Presentation In employee channel Odoo V11
slides
Avatar
0
jul. 20
3349
How to increase the filesize in Slides? Opgelost
slides
Avatar
Avatar
1
nov. 15
5549
Replying to Comments on Slides
comments slides
Avatar
0
jun. 25
1101
Where is my Odoo mug?
master slides
Avatar
Avatar
Avatar
2
mei 24
2723
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now