Hi guys, I am having the same pdf.js error after I installed the necessary files. Am I doing wrong something cause still doesn't work? Here is the screenshot http://postimg.org/image/gjsnv6t27/
axel
Mon, 07/27/2015 - 18:44
Hi
Hi
Did you check the ownership and permissions for pdf.js folder?
They should be readable by webserver
Best regards,
Canyasa
Mon, 07/27/2015 - 18:50
Yes here is the screen shot
Yes here is the screen shot of permissions http://postimg.org/image/lizoz5n7n/
Canyasa
Mon, 07/27/2015 - 19:53
I think I have found out why,
I think I have found out why, but couldn't find the solution;
- Under libraries folder pdf.js (all/libraries/pdf.js/build/...) folder says JS File as Filetype , it should be File folder as a filetype right?
axel
Mon, 07/27/2015 - 20:00
Yes.
Yes.
What Operating System are you using?
Could you reach the pdf.js file from your browser by going at:
I am using rackspace's cloud sites and when put that link, I got this code:
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*jshint globalstrict: false */
/* globals PDFJS */
// Initializing PDFJS global object (if still undefined)
if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.1.114';
PDFJS.build = '3fd44fd';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
'use strict';
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
.
.
.
etc. it goes liek that very long
axel
Mon, 07/27/2015 - 20:56
So it's readable by the
So it's readable by the webserver
Did you clear your Opigno cache?
If you still have the error, do you have any special messages related to pdf.js in:
http://<your domain>/admin/reports/status
and in
http://<your domain>/admin/reports/dblog
Canyasa
Mon, 07/27/2015 - 21:15
Ok I have installed pdf
Ok I have installed pdf reader module and uninstalled it, now its showing my dashboard inside an iframe and says access denies, you are not authorized to access this page. :/
axel
Mon, 07/27/2015 - 22:22
Are you sure that all your
Are you sure that all your file permissions are correct?
Is it a Linux or Windows hosting?
Canyasa
Mon, 07/27/2015 - 22:27
Yes I checked them all and
Yes I checked them all and they are correct, it is Linux but I don't get that error anymore instead it is showing my whole page in an iframe and says access denied, should I remove the all site and re-install?
axel
Mon, 07/27/2015 - 22:52
The PDF should be working out
The PDF should be working out of the box without any additional configuration (except adding the library).
Something is incorrect with your installation. If you have no content then you can try to reinstall everything.
Otherwise it's probably perfectly possible to fix the existing installation, but you will need to provide us with detailed logs, otherwise we won't be able to help you. You have probably more logs in Drupal and Apache.
Canyasa
Tue, 07/28/2015 - 17:40
axel thanks for your help,
axel thanks for your help,
Ok I have re installed everything, I uploaded pdf.js files as it should be and now I am getting internal server error :/ if you can tell me what should I do (getting error logs or somethingelse) step by step I can share the information with you. Thanks.
Here is the screenshot of the error: http://postimg.org/image/68pl50coz/
axel
Tue, 07/28/2015 - 17:44
You need to post the Apache
You need to post the Apache error logs
Canyasa
Tue, 07/28/2015 - 18:18
Ok I checked my logs folder
Ok I checked my logs folder and it was empty then I talked to rackspace cloud site specialist and he said it is about .htaccess issue and gave me this link (http://htaccess.madewithlove.be/) to test my htaccess file and here is the result : http://postimg.org/image/ellp6tz7n/
axel
Tue, 07/28/2015 - 18:54
If it's a matter of hosting
If it's a matter of hosting configuration it will be complicated to help you remotely.
But if you are using the default htaccess file provided with Opigno, I would be really surprised that it does not work (it's a default Drupal file that is working on quite every hosting)
Canyasa
Tue, 07/28/2015 - 19:02
I will talk to them again and
I will talk to them again and post here if I find a solution, btw is there a better solution to help me out with this issue? please let me know, my e-mail address is [email protected] in case you need it
Canyasa
Tue, 07/28/2015 - 20:34
Alright I talked to the
Alright I talked to the support guys again and they told me to remove the htaccess and try without it; here is the result:http://postimg.org/image/iu2i8u0fz/ and this is their response " That is most likely happening because there is a special rule contained in the .htaccess file that declares local settings for that file. Unfortunately it seems like the website has functionality dependent upon htaccess, and the htaccess file is likely responsible for the error in the first place. It does appear to be a configuration issue however."
axel
Tue, 07/28/2015 - 21:03
You should be able to reach
You should be able to reach this page from your browser
You should check the apache logs, this kind of error leaves for sure some error logs.
It's possible that the lack of htaccess file can cause it. Opigno cannot work properly without a htaccess
By the way there is only very classical instructions in the htaccess
Canyasa
Tue, 07/28/2015 - 21:44
They kept insisted about it
They kept insisted about it was about htacces and I played with it so, I uncommented RewriteBase / on htacces. At least I am not having any errors but it is saying Access denied now. I have checked with this link too http://www.foodmpstraining.com/sites/all/libraries/pdf.js/web/viewer.html still same "
Access denied
You are not authorized to access this page.
"
Canyasa
Tue, 07/28/2015 - 22:34
Here is my error logs "access
Here is my error logs "access denied" http://postimg.org/image/adxk2m4s9/ am I missing something? I am sure my pdf.js files are under libraries
Canyasa
Wed, 07/29/2015 - 22:30
SOLVED. I just deleted pdf.js
SOLVED. I just deleted pdf.js fodler from ftp and flushed all cache and then re created pdf.js folder and upload all the files (which i downloaded latest version from mozilla's site *pdf.js file) under pdf.js folder again and flushed all cache again, tadaa it worked :p I don't know how but I can see my pdf now.
hendrikob
Fri, 07/22/2016 - 07:55
My solution was a little crazy!!!!
Just:
cd /drupal/sites/all/libraries/pdf.jsmkdir buildcd srccp pdf.js pdf.worker.entry.js /drupal/sites/all/libraries/pdf.js/build
That's all
Hi
Hi
Did you check the ownership and permissions for pdf.js folder?
They should be readable by webserver
Best regards,
Yes here is the screen shot
I think I have found out why,
Yes.
Yes.
What Operating System are you using?
Could you reach the pdf.js file from your browser by going at:
http://<your domain>/sites/all/libraries/pdf.js/build/pdf.js
I am using rackspace's cloud
So it's readable by the
So it's readable by the webserver
Did you clear your Opigno cache?
If you still have the error, do you have any special messages related to pdf.js in:
http://<your domain>/admin/reports/status
and in
http://<your domain>/admin/reports/dblog
Ok I have installed pdf
Are you sure that all your
Are you sure that all your file permissions are correct?
Is it a Linux or Windows hosting?
Yes I checked them all and
The PDF should be working out
The PDF should be working out of the box without any additional configuration (except adding the library).
Something is incorrect with your installation. If you have no content then you can try to reinstall everything.
Otherwise it's probably perfectly possible to fix the existing installation, but you will need to provide us with detailed logs, otherwise we won't be able to help you. You have probably more logs in Drupal and Apache.
axel thanks for your help,
You need to post the Apache
You need to post the Apache error logs
Ok I checked my logs folder
If it's a matter of hosting
If it's a matter of hosting configuration it will be complicated to help you remotely.
But if you are using the default htaccess file provided with Opigno, I would be really surprised that it does not work (it's a default Drupal file that is working on quite every hosting)
I will talk to them again and
Alright I talked to the
You should be able to reach
You should be able to reach this page from your browser
http://<your domain>/sites/all/libraries/pdf.js/web/viewer.html
I checked and you get a 500 Internal Server Error
You should check the apache logs, this kind of error leaves for sure some error logs.
It's possible that the lack of htaccess file can cause it. Opigno cannot work properly without a htaccess
By the way there is only very classical instructions in the htaccess
They kept insisted about it
Here is my error logs "access
SOLVED. I just deleted pdf.js
My solution was a little crazy!!!!
cd /drupal/sites/all/libraries/pdf.js
mkdir build
cd src
cp pdf.js pdf.worker.entry.js /drupal/sites/all/libraries/pdf.js/build
That's all