jwplayer / jw-showcase

DEPRECATED: JW Showcase has been deprecated and is no longer maintained. Please use the JW OTT Web App Instead: https://github.com/jwplayer/ott-web-app
https://www.jwplayer.com
Apache License 2.0
78 stars 35 forks source link

Error on page reload #199

Closed Gatera closed 6 years ago

Gatera commented 6 years ago

Expected Behavior

Video page to refresh when browser reload button is pressed

Actual Behavior

Page returns 'Internal Server Error'

Steps to reproduce

  1. Go to beta.journal.rw
  2. Play any video
  3. Click reload page

Environment

*I have tried the solution on this page https://github.com/jwplayer/jw-showcase/wiki/Deploying-JW-Showcase of inserting the text in a htaccess file. When I place the file in the root folder the whole site does not work. I get a '500 - Internal Server Error'.

The website is located in public_html/beta folder.*


This template is provided as a guide to filing bugs and feature requests. Please replace all text in italics with details describing your issue. When submitting a feature request, "Steps to reproduce" can be substituted with a user story or list of acceptance criteria.

pajter commented 6 years ago

Hi @Gatera

You're not running it in a subdirectory, so it should be fairly straightforward to set up. Did you change the paths in the .htaccess file to your own public_html/beta path?

Have you tried checking your server logs for any messages regarding this 500 error? There's probably something going on with the .htaccess file not being parsed properly. It's not something I can see from here though. You'll have to debug that on your server.

Let me know if I can be of help.

Gatera commented 6 years ago

Hi @pajter

I updated the .htaccess file the following way:

`<VirtualHost *:80> ServerName beta.journal.rw DocumentRoot /public_html/beta <Directory /public_html/beta>

RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.html [L]

`

and the server logs returned the following:

but I still get the same '500 - Internal Server Error'

pajter commented 6 years ago

The .htaccess file looks okay to me. Your server log line seems like it's from the access instead of the server log. The 500 error would probably get dumped somewhere else. Maybe it's related to a missing or disabled Apache mod_rewrite module. All I can do is guess though...

Gatera commented 6 years ago

Could this be the error log?

[Wed Jul 18 16:23:05.196833 2018] [core:alert] [pid 30024] [client 105.178.112.19:55840] /home/stjourna/public_html/beta/.htaccess: <VirtualHost not allowed here

pajter commented 6 years ago

Yeah that's the one. Seems your Apache configuration does not like that .htaccess override. You could try putting the contents of that VirtualHost block into your Apache vhost config file instead of in the .htaccess.

Gatera commented 6 years ago

I just tried something that worked. I was looking at the .htaccess file I have in my /public_html folder where I am running Wordpress. It starts from <ifModule mod_rewrite.c> and ends with </ifModule>. So I deleted everything else and only kept the following:

<ifModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.html [L] </ifModule>

and it works!

pajter commented 6 years ago

Good to hear! 👍

Gatera commented 6 years ago

Thanks for your help